@hypersocial/decks-cli 0.9.23 → 0.9.25
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/package.json +1 -1
- package/skills/hyperdecks/SKILL.md +124 -67
- package/skills/hyperdecks/chat.md +11 -8
- package/skills/hyperdecks/terminal.md +83 -0
- package/src/bars.mjs +268 -0
- package/src/brand.mjs +51 -8
- package/src/check.mjs +333 -20
- package/src/checkRules.mjs +677 -27
- package/src/commands.mjs +171 -31
- package/src/deckSlug.mjs +41 -0
- package/src/embedCapture.mjs +126 -0
- package/src/embedSources.mjs +252 -0
- package/src/embedsGuide.mjs +36 -0
- package/src/export-video.mjs +20 -3
- package/src/files.mjs +36 -0
- package/src/guide.mjs +93 -13
- package/src/hosted.mjs +18 -8
- package/src/iconAliasNames.mjs +70 -0
- package/src/iconChoice.mjs +97 -0
- package/src/iconSets.mjs +89 -0
- package/src/iconSlots.mjs +48 -0
- package/src/icons.mjs +285 -45
- package/src/iconsCli.mjs +76 -0
- package/src/layoutRoutes.mjs +97 -0
- package/src/layouts.mjs +9 -4
- package/src/mediaPreviews.mjs +3 -1
- package/src/narrate.mjs +31 -4
- package/src/opening.mjs +9 -3
- package/src/ops.mjs +125 -0
- package/src/photosGuide.mjs +47 -0
- package/src/picturesGuide.mjs +54 -0
- package/src/play.mjs +3 -2
- package/src/presenter.mjs +3 -1
- package/src/preview-capture.mjs +70 -1
- package/src/release.mjs +13 -5
- package/src/runtime.mjs +9 -2
- package/src/scaffold.mjs +73 -13
- package/src/source.mjs +86 -14
- package/src/stockMedia.mjs +299 -0
- package/src/themeCli.mjs +41 -0
- package/src/themes.mjs +345 -0
- package/templates/icons/material.LICENSE +202 -0
- package/templates/icons/material.json.gz +0 -0
- package/templates/icons/phosphor.LICENSE +21 -0
- package/templates/icons/phosphor.json.gz +0 -0
- package/templates/icons/tabler.LICENSE +21 -0
- package/templates/icons/tabler.json.gz +0 -0
- package/templates/layouts/_deck.html +231 -41
- package/templates/layouts/bento.html +76 -0
- package/templates/layouts/chart.html +6 -4
- package/templates/layouts/closer.html +13 -4
- package/templates/layouts/compare.html +13 -4
- package/templates/layouts/cover-band.html +13 -9
- package/templates/layouts/cover-frame.html +13 -7
- package/templates/layouts/cover-poster.html +9 -5
- package/templates/layouts/cover-split.html +19 -7
- package/templates/layouts/cover-type.html +2 -1
- package/templates/layouts/embed.html +93 -0
- package/templates/layouts/features.html +18 -10
- package/templates/layouts/funnel.html +62 -0
- package/templates/layouts/hero.html +41 -23
- package/templates/layouts/lanes.html +63 -0
- package/templates/layouts/loop.html +81 -0
- package/templates/layouts/number.html +3 -2
- package/templates/layouts/phone-stage.html +78 -0
- package/templates/layouts/phones.html +1 -0
- package/templates/layouts/picture-full.html +58 -0
- package/templates/layouts/portrait.html +53 -0
- package/templates/layouts/product.html +7 -6
- package/templates/layouts/quote.html +5 -3
- package/templates/layouts/rail.html +74 -0
- package/templates/layouts/scorecard.html +71 -0
- package/templates/layouts/screens.html +85 -0
- package/templates/layouts/sentence.html +39 -0
- package/templates/layouts/split.html +35 -7
- package/templates/layouts/spotlight.html +80 -0
- package/templates/layouts/stack.html +84 -0
- package/templates/layouts/staircase.html +78 -0
- package/templates/layouts/strike.html +46 -0
- package/templates/layouts/tap-through.html +73 -0
- package/templates/layouts/team.html +21 -6
- package/templates/layouts/timeline.html +21 -8
- package/templates/layouts/two-bars.html +53 -0
- package/templates/layouts/two-by-two.html +75 -0
- package/templates/layouts/video-beats.html +66 -0
- package/templates/layouts/video-full.html +62 -0
- package/templates/layouts/wall.html +109 -0
- package/templates/layouts/zoom.html +144 -0
- package/templates/narrated-deck.html +12 -7
- package/templates/script.md +2 -2
- /package/templates/icons/{LICENSE → lucide.LICENSE} +0 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: hyperdecks
|
|
3
3
|
description: Use when asked to make, narrate, check or ship a deck ("make me a narrated deck", "turn this into a deck and send it"), or when working with Hypersocial Decks, Hyperdecks CLI, production deck analytics, recipient share links, deck activity, MCP deck tools, or real-world/customer-facing deck checks. Prefer production for real activity and analytics; use development only for local implementation/testing when explicitly requested.
|
|
4
4
|
metadata:
|
|
5
|
-
version: "0.9.
|
|
5
|
+
version: "0.9.25"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Hyperdecks
|
|
@@ -153,7 +153,8 @@ Hyperdecks server; use the CLI where you have a shell and the tool otherwise.
|
|
|
153
153
|
| Video clips | `hyperdecks gen-video "<prompt>" --slug <slug>` | `generate_video` |
|
|
154
154
|
| Product screenshot | `hyperdecks screenshot <url> --slug <slug>` | `capture_url` |
|
|
155
155
|
| Chart from numbers | `hyperdecks chart <spec.json> --slug <slug>` | `render_chart` |
|
|
156
|
-
|
|
|
156
|
+
| A photo (Unsplash) / a GIF (GIPHY), free (`guide photos`) | `hyperdecks photos search <words>`, `photos add <id> --for <layout>` / `hyperdecks gifs search <words> --for <layout>` | `search_photos`, `add_photo` / `search_gifs` |
|
|
157
|
+
| Real icons, 4 sets | `hyperdecks icons search <word> --for <layout>`; `icons sets`; `icons use` | `search_icons`; `icon_sets`; `use_icon_set` |
|
|
157
158
|
| Illustrated icon set | `hyperdecks icons <subject...> --style "<style>" --slug <slug>` | `generate_icon_set` |
|
|
158
159
|
| Outside review (required before release) | `hyperdecks review <slug> --script decks/<slug>/script.md` | `review_deck` |
|
|
159
160
|
| Your voice (once) | `hyperdecks voice clone <file...> --name <name>` | `clone_voice` |
|
|
@@ -235,6 +236,12 @@ hyperdecks deck new <slug> "<title>" --narrated [--presenter-style stage|bubble|
|
|
|
235
236
|
Both write `decks/<slug>/` and register a draft you own. Prefer `--layouts`:
|
|
236
237
|
pick the layouts from the story (see **Design** below), in order; repeat one
|
|
237
238
|
for more of the same (`number,number` gives slides `number` and `number-2`).
|
|
239
|
+
Alternate sides between neighbours: the side-panel layouts (wall, split,
|
|
240
|
+
cover-split, picture-full, portrait) take `data-flip` on the section, which
|
|
241
|
+
mirrors the slide with its panel and presenter on the other side. When the same
|
|
242
|
+
layout comes twice in a row, the second comes flipped (`wall,wall` gives the
|
|
243
|
+
second `data-flip`), and check warns when two neighbouring slides of one layout
|
|
244
|
+
keep the panel on the same side.
|
|
238
245
|
|
|
239
246
|
Files, all in `decks/<slug>/`:
|
|
240
247
|
|
|
@@ -263,16 +270,26 @@ The deck contract (`check` enforces or warns on each line):
|
|
|
263
270
|
- Each slide keeps its `<div class="narration-slot"></div>` (where the
|
|
264
271
|
presenter's face and captions sit; the player glides the presenter there,
|
|
265
272
|
so put slots on different sides across slides, as the scaffold's
|
|
266
|
-
`.slot-left` does);
|
|
273
|
+
`.slot-left` does); a narrated deck's first slide has `data-intro` (a silent
|
|
274
|
+
deck's does not: nobody says it).
|
|
267
275
|
- The player script stays
|
|
268
276
|
`<script type="module" src="https://hyperdecks.ai/player/v1/player.js" data-manifest="…">`.
|
|
269
277
|
`narrate` fills `data-manifest`; do not edit it by hand.
|
|
270
278
|
- A deck with no narration (a product tour, an imported design deck, a silent
|
|
271
|
-
walkthrough) says so: `data-silent` on the player script.
|
|
272
|
-
|
|
279
|
+
walkthrough) says so: `data-silent` on the player script. To make one, scaffold
|
|
280
|
+
as for any deck (`deck new <slug> "<title>" --narrated`, or new_deck), add
|
|
281
|
+
`data-silent` to the player script, remove the cover's `data-intro` (its "Press
|
|
282
|
+
play" greeting is never spoken), and skip narrate; no `deck narrator` step is needed. `check` then warns
|
|
283
|
+
"no narration (silent deck)" instead of failing, warns rather than fails on a
|
|
284
|
+
script.md cue that matches nothing (the script is unused), release skips narrate, and
|
|
273
285
|
the player shows the slides, arrows, tabs and scroll mode with no Play
|
|
274
286
|
button, clock or caption bubble. Without `data-silent` a missing
|
|
275
287
|
`data-manifest` still fails, so a forgotten narrate is caught.
|
|
288
|
+
A silent deck shows no presenter either: `deck new` writes
|
|
289
|
+
`data-silent-presenter="hide"` on the player script, so the face is gone (the
|
|
290
|
+
opening card shows the title and progress only, and the link preview reads
|
|
291
|
+
"A deck on Hyperdecks") and the slides use its corner (check says nothing about the presenter's room).
|
|
292
|
+
To keep the face on a silent deck, set `data-silent-presenter="show"`.
|
|
276
293
|
- The `<style data-hd-loading>` block in `<head>` is boilerplate the tools
|
|
277
294
|
write: `deck new` includes it, `check --fix` inserts or refreshes it, and a
|
|
278
295
|
hosted `write_deck_source` of index.html puts it right on the way in.
|
|
@@ -349,7 +366,14 @@ doesn't fit the deck, turn it off with `data-loading="calm"` on the player tag
|
|
|
349
366
|
Size it per slide with `data-presenter-size="s|m|l|xl"` on the `<section>`
|
|
350
367
|
(0.7×, 1×, 1.3×, 1.6× the style's head; on the player tag it is the deck's
|
|
351
368
|
default): `xl` on a slide with empty space, `s` on a busy product slide. Phones
|
|
352
|
-
keep `l`/`xl` at their usual size.
|
|
369
|
+
keep `l`/`xl` at their usual size. `closer` and `split` make room for `l` and `xl`
|
|
370
|
+
set on the slide's own `<section>` (the player tag's default is not seen by a
|
|
371
|
+
layout): the closer's line moves right of the presenter, and split gives it the
|
|
372
|
+
left of the slide with the copy and picture beside it (sized for `stage`; the
|
|
373
|
+
right of the slide on a split with `data-flip`). On
|
|
374
|
+
other layouts a large presenter needs a slide with the corner free; `check
|
|
375
|
+
--layout` warns when it would cover the title and names what clears it (the size
|
|
376
|
+
on the slide, `stage`, or a smaller size). A slide's CSS `--hd-presenter-scale: 1.15`
|
|
353
377
|
fine-tunes it. `check` warns on an unknown size. In `corner`, `[look]` turns
|
|
354
378
|
the head; `[go]` highlights the target and looks at it but the head stays in
|
|
355
379
|
its corner.
|
|
@@ -482,7 +506,7 @@ new sizes:
|
|
|
482
506
|
|
|
483
507
|
| Token | Stage (1600×900) | Phone | For |
|
|
484
508
|
|---|---|---|---|
|
|
485
|
-
| `--t-display` | 128px | 54px | one hero line
|
|
509
|
+
| `--t-display` | 128px | 54px | one hero line, at most once per slide |
|
|
486
510
|
| `--t-title` | 84px | 38px | the slide's title |
|
|
487
511
|
| `--t-sub` | 56px | 28px | a title beside a visual, a number's label |
|
|
488
512
|
| `--t-lead` | 30px | 17px | one supporting sentence |
|
|
@@ -501,10 +525,12 @@ label at full contrast. Set the palette and fonts once, in `:root`.
|
|
|
501
525
|
|
|
502
526
|
**Start from the brand.** The account keeps a brand: colours, fonts, a logo,
|
|
503
527
|
a presenter style and a design.md (voice, do and don't). `deck new` and
|
|
504
|
-
`new_deck` put its tokens in `:root` and its logo on the first slide, so read
|
|
528
|
+
`new_deck` (with no theme named) put its tokens in `:root` and its logo on the first slide, so read
|
|
505
529
|
it first (`hyperdecks brand show --json`, `get_brand`) and write in its voice.
|
|
506
530
|
An explicit request for this deck wins over the brand; `--no-brand`
|
|
507
|
-
(`brand: false`) starts from the template's look.
|
|
531
|
+
(`brand: false`) starts from the template's look. **A named theme wins too:**
|
|
532
|
+
`--theme soft` (`theme: "soft"`) gives Soft's own colours and fonts and no
|
|
533
|
+
logo; add `--brand` (`brand: true`) only when they want the brand on it. No brand yet? Offer to
|
|
508
534
|
import it: `hyperdecks brand import <url|file.pptx|file.pdf|deck-slug>`
|
|
509
535
|
(`import_brand`) reads the real colours, fonts and logo (a PowerPoint's theme
|
|
510
536
|
exactly) and returns a preview link of a sample slide and a token. Show them
|
|
@@ -522,34 +548,57 @@ saves one.
|
|
|
522
548
|
<!-- font pairings -->
|
|
523
549
|
|
|
524
550
|
**Textures, icons, pictures:** the `look` topic (one texture, one icon set
|
|
525
|
-
from `search_icons
|
|
551
|
+
from `search_icons`, a picture on every other slide).
|
|
526
552
|
|
|
527
|
-
**Pick the layout from what the slide says
|
|
528
|
-
|
|
553
|
+
**Pick the layout from what the slide says**; read its detail by name in
|
|
554
|
+
the `layouts` topic.
|
|
529
555
|
|
|
530
556
|
**Open on a cover, the title on a solid ground**; with a strong picture,
|
|
531
557
|
`cover-frame` or `cover-split`. A picture faded under the title is hard to
|
|
532
558
|
read (`check` warns).
|
|
533
559
|
|
|
534
|
-
| Layout | Use it for |
|
|
535
|
-
|
|
536
|
-
| `hero` | the default cover: the subject framed beside the title |
|
|
537
|
-
| `cover-frame` | a strong picture, framed under the title |
|
|
538
|
-
| `cover-split` | a big picture: a hard 50/50 |
|
|
539
|
-
| `cover-band` | the picture fills the slide, title on a panel |
|
|
540
|
-
| `cover-poster` | a wide scene on top, title below |
|
|
541
|
-
| `cover-type` | no picture: type only |
|
|
542
|
-
| `number` | one number with its source: proof, traction, a delta |
|
|
543
|
-
| `product` | a screenshot in a browser frame (`.frame.card
|
|
544
|
-
| `split` |
|
|
545
|
-
| `phones` | a phone app's flow: a fanned row of phone cards |
|
|
546
|
-
| `
|
|
547
|
-
| `
|
|
548
|
-
| `
|
|
549
|
-
| `
|
|
550
|
-
| `
|
|
551
|
-
| `
|
|
552
|
-
| `
|
|
560
|
+
| Layout | Use it for |
|
|
561
|
+
|---|---|
|
|
562
|
+
| `hero` | the default cover: the subject framed beside the title |
|
|
563
|
+
| `cover-frame` | a strong picture, framed under the title |
|
|
564
|
+
| `cover-split` | a big picture: a hard 50/50 |
|
|
565
|
+
| `cover-band` | the picture fills the slide, title on a panel |
|
|
566
|
+
| `cover-poster` | a wide scene on top, title below |
|
|
567
|
+
| `cover-type` | no picture: type only |
|
|
568
|
+
| `number` | one number with its source: proof, traction, a delta |
|
|
569
|
+
| `product` | a screenshot in a browser frame (`.frame.card`: a phone) |
|
|
570
|
+
| `split` | a real picture beside three ticks |
|
|
571
|
+
| `phones` | a phone app's flow: a fanned row of phone cards |
|
|
572
|
+
| `phone-stage` | one phone screen, notes lit in turn |
|
|
573
|
+
| `tap-through` | a prototype viewers tap through |
|
|
574
|
+
| `screens` | screens or pictures in order |
|
|
575
|
+
| `zoom` | a screenshot, one part enlarged |
|
|
576
|
+
| `video-full` | a recording fills the slide |
|
|
577
|
+
| `video-beats` | a recording and its moments |
|
|
578
|
+
| `picture-full` | one photo, words on a panel |
|
|
579
|
+
| `wall` | 3 to 5 real photos |
|
|
580
|
+
| `portrait` | one tall picture beside the title |
|
|
581
|
+
| `embed` | a map or booking, live |
|
|
582
|
+
| `quote` | a customer in their own words, quoted exactly |
|
|
583
|
+
| `compare` | before/after, them/us, three parallel lines each |
|
|
584
|
+
| `timeline` | four milestones: history, a roadmap, a process |
|
|
585
|
+
| `features` | three things it does, an icon each |
|
|
586
|
+
| `sentence` | the point, set large |
|
|
587
|
+
| `strike` | a myth, then the truth |
|
|
588
|
+
| `spotlight` | one option picked out |
|
|
589
|
+
| `funnel` | stages that narrow |
|
|
590
|
+
| `scorecard` | measures, a state each |
|
|
591
|
+
| `bento` | one big point, two small |
|
|
592
|
+
| `two-by-two` | four on two axes |
|
|
593
|
+
| `staircase` | steps that build |
|
|
594
|
+
| `rail` | stops along a line |
|
|
595
|
+
| `loop` | a cycle |
|
|
596
|
+
| `lanes` | who does what |
|
|
597
|
+
| `two-bars` | two numbers |
|
|
598
|
+
| `stack` | layers |
|
|
599
|
+
| `chart` | real numbers drawn with `chart`, a takeaway |
|
|
600
|
+
| `team` | up to four people, faces only with permission |
|
|
601
|
+
| `closer` | the end: one line and one action (a command, a link) |
|
|
553
602
|
|
|
554
603
|
**Phones and backgrounds.** One phone: `product`'s `.frame.card`; a flow of
|
|
555
604
|
two to four: `phones` (`--tilt`, `--shadow` on a card). A few slides at most:
|
|
@@ -587,14 +636,13 @@ visual is the point; `glass` on a dark or busy picture. `quote`, `split`,
|
|
|
587
636
|
never needed for a deck to work. A `muted loop` video plays while its slide
|
|
588
637
|
is current, no cue needed; a `data-hd-manual` one waits for `[play]`. A clip that
|
|
589
638
|
plays on repeat should be made with `--loop` (`loop: true`): it starts and
|
|
590
|
-
ends on the same frame, so there is no jump at the seam
|
|
591
|
-
|
|
639
|
+
ends on the same frame, so there is no jump at the seam (`--image` loops a
|
|
640
|
+
still you have).
|
|
592
641
|
- Moving cut-outs: `--transparent` (`transparent: true`) mattes the
|
|
593
642
|
background out, the moving version of a `gen-image --transparent` PNG: a
|
|
594
|
-
|
|
595
|
-
with `--loop` and a subject on a plain background. It returns a
|
|
596
|
-
with alpha
|
|
597
|
-
player draws on a canvas in Safari and on iOS, which ignore WebM alpha. The
|
|
643
|
+
product turning, over the slide's own background. Use it
|
|
644
|
+
with `--loop` and a subject on a plain background. It returns a WebM
|
|
645
|
+
with alpha and a stacked-alpha MP4 the hosted player draws in Safari and iOS. The
|
|
598
646
|
job's `markup` is the tag to paste, as is:
|
|
599
647
|
|
|
600
648
|
```html
|
|
@@ -602,9 +650,8 @@ visual is the point; `glass` on a dark or busy picture. `quote`, `split`,
|
|
|
602
650
|
src="(video.url)" data-alpha-stacked="(video.stacked.url)"></video>
|
|
603
651
|
```
|
|
604
652
|
|
|
605
|
-
Keep `crossorigin` and `data-alpha-stacked`: the player needs both. A
|
|
606
|
-
|
|
607
|
-
clip costs 2 credits a second more than an opaque one.
|
|
653
|
+
Keep `crossorigin` and `data-alpha-stacked`: the player needs both. A
|
|
654
|
+
transparent clip costs 2 credits a second more than an opaque one.
|
|
608
655
|
- People: real photos only with permission; initials otherwise.
|
|
609
656
|
|
|
610
657
|
**Motion.** The presenter's moves are the deck's motion; keep everything else
|
|
@@ -626,8 +673,8 @@ still.
|
|
|
626
673
|
<!-- topic: look -->
|
|
627
674
|
#### Look: textures, icons, pictures
|
|
628
675
|
|
|
629
|
-
|
|
630
|
-
|
|
676
|
+
Decide these three once per deck, before the slides; say them in your
|
|
677
|
+
plan.
|
|
631
678
|
|
|
632
679
|
**1. A picture on at least every other slide**, the most real one you have:
|
|
633
680
|
|
|
@@ -635,11 +682,19 @@ slides, and say them in your plan.
|
|
|
635
682
|
screen recording or photo the person gives you (`upload_deck_asset`);
|
|
636
683
|
2. their people, logos and app icons (with permission);
|
|
637
684
|
3. real data drawn with `render_chart`;
|
|
638
|
-
4. only then
|
|
639
|
-
|
|
685
|
+
4. only then a found or made picture of a concrete subject (a place, an
|
|
686
|
+
object, a mood): `search_photos` then `add_photo` (Unsplash), or
|
|
687
|
+
`generate_image`; never a metaphor, or a stand-in for their own
|
|
688
|
+
product, team or event.
|
|
689
|
+
|
|
690
|
+
Found photos and GIFs (`search_photos`, `add_photo`, `search_gifs`): read
|
|
691
|
+
`deck_guide { topic: "photos" }` (CLI: `hyperdecks guide photos`) first; it
|
|
692
|
+
says which markup each layout takes and where the credit line goes.
|
|
640
693
|
|
|
641
|
-
|
|
642
|
-
|
|
694
|
+
An upload's `bars:` note: upload it again with `--trim` (`trim: true`).
|
|
695
|
+
|
|
696
|
+
No product? Picture what it is about (4.) or chart its numbers (3.);
|
|
697
|
+
icons and stickers are not pictures.
|
|
643
698
|
|
|
644
699
|
**2. Plain grounds; texture only behind objects.** Alternate plain,
|
|
645
700
|
`on-tint`, `on-tint-2`, `on-tint-3`, `on-accent`, `on-ink`. On the section:
|
|
@@ -658,11 +713,11 @@ and the kit below: a `number` slide, stickers, ticks on a `panel`.
|
|
|
658
713
|
- Your own is fine in the deck's `<style>`: tokens only, behind the content
|
|
659
714
|
in an isolated slide, off with nothing to back.
|
|
660
715
|
|
|
661
|
-
**3. One icon set
|
|
662
|
-
|
|
663
|
-
`
|
|
664
|
-
(`line`, `duotone`, `sticker`, `clay
|
|
665
|
-
|
|
716
|
+
**3. One icon set, if any.** Icons are optional (`pictures` topic). One
|
|
717
|
+
source per deck: a set and weight from `icon_sets`, set with
|
|
718
|
+
`use_icon_set` (`search_icons { query, for }` stays in it); one `generate_icon_set`
|
|
719
|
+
`preset` (`line`, `duotone`, `sticker`, `clay`); or the product's own
|
|
720
|
+
icons. `check` warns on a mix.
|
|
666
721
|
Put an icon or logo in a `.sticker` (tilted tile, hard shadow) on openers
|
|
667
722
|
and product slides; use `.ticks` (accent squares) for lists, not icons.
|
|
668
723
|
|
|
@@ -674,7 +729,11 @@ an app icon or a face), `.ticks`, `.panel`, `.pill`, `.frame.card` (a phone),
|
|
|
674
729
|
`<concrete subject>, <setting>, <medium: e.g. editorial photo, soft daylight>,
|
|
675
730
|
palette <ink hex> <accent hex> <paper hex>, no text, no logos`
|
|
676
731
|
(`generate_image { brand: true }` adds the palette and the "no text" for
|
|
677
|
-
you)
|
|
732
|
+
you), in one batch.
|
|
733
|
+
|
|
734
|
+
**Picture shapes.** 3:1 to 3:4: `hero` (its frame takes the shape).
|
|
735
|
+
Strip: `cover-poster`. Landscape: `cover-frame`, `cover-band`. Square:
|
|
736
|
+
`cover-split`. Never `contain` a framed picture (check warns).
|
|
678
737
|
|
|
679
738
|
**Slide recipes.** Opener: `on-accent` + `bg-corner`, the logo
|
|
680
739
|
or a few app-icon stickers, one display line. Product or feature: `split`
|
|
@@ -682,19 +741,13 @@ with a real screen. Proof: `number` (huge, sourced) or `chart`. Plan:
|
|
|
682
741
|
`timeline` on a tint. People: `team` with real faces. Closer: `on-ink`, the
|
|
683
742
|
one action, stickers again.
|
|
684
743
|
|
|
685
|
-
**No presenter.**
|
|
686
|
-
`
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
closer and a hero without art re-centre. Type sizes stay. A deck with
|
|
693
|
-
captions keeps the slot (the bubble lives there). For a custom slide, keep it
|
|
694
|
-
compatible: the presenter's corner is the slide's `.narration-slot`, never a
|
|
695
|
-
hard-coded gutter (`padding-right: 400px`); if it needs one, override it in a
|
|
696
|
-
`:root.hd-no-presenter .l-yours …` rule (check warns on a right gutter until
|
|
697
|
-
you do).
|
|
744
|
+
**No presenter.** With no face and no captions, or after
|
|
745
|
+
`setPresenterOff(true)`, the player puts `hd-no-presenter` on `<html>` and
|
|
746
|
+
hides `.narration-slot`: compare and chart widen; each layout's detail says
|
|
747
|
+
its variant. A deck with captions keeps the slot. A custom slide's presenter
|
|
748
|
+
corner is its `.narration-slot`, never a
|
|
749
|
+
hard-coded gutter (`padding-right: 400px`); override one in
|
|
750
|
+
`:root.hd-no-presenter .l-yours …` (check warns until you do).
|
|
698
751
|
|
|
699
752
|
<!-- topic: script -->
|
|
700
753
|
### 3. Write slides and script
|
|
@@ -891,6 +944,9 @@ with the player's `hyperdecks.ai` script tag. Messages and what to do:
|
|
|
891
944
|
| `fly is for the deck's one big moment` | keep `fly` on one slide; use drift or push on the others |
|
|
892
945
|
| ⚠ `N kinds of transition besides the default` | use one or two kinds, each for its own job |
|
|
893
946
|
| `slide <id>: its content runs …px past the slide on a 390×844 phone` | trim that slide on phones: smaller type, fewer items, or hide decoration in its `@media (max-width: 650px)` rules (an `#id` rule outranks them; restate it there) |
|
|
947
|
+
| ⚠ `slides <a> and <b> are two <layout> slides in a row with the panel on the same side` | put `data-flip` on the second one's section (or, when both have it, take it off one) so the two alternate |
|
|
948
|
+
| ⚠ `slide <id> has data-flip, but <layout> does not flip` | take `data-flip` off; only wall, split, cover-split, picture-full and portrait flip |
|
|
949
|
+
| ⚠ `slide <id> has data-flip="<value>"` | any value flips: write plain `data-flip`, or take it off |
|
|
894
950
|
| ⚠ `slide <id>: the … presenter would overlap the title` | move that slide's `.narration-slot`, pad the text away from it, or use `corner` |
|
|
895
951
|
|
|
896
952
|
**Review before release (required).** After `check` passes and the deck is
|
|
@@ -945,11 +1001,12 @@ illustrated set that matches.
|
|
|
945
1001
|
### 7. Release
|
|
946
1002
|
|
|
947
1003
|
Only after `check` passes and the last review has no `fix` finding. Commit the deck folder first: release refuses uncommitted changes so every
|
|
948
|
-
release matches a commit.
|
|
1004
|
+
release matches a commit. A folder outside any git repository needs one first:
|
|
1005
|
+
`git init && git add -A && git commit -m "deck"` inside it.
|
|
949
1006
|
|
|
950
1007
|
```bash
|
|
951
1008
|
git add decks/<slug> && git commit -m "deck: <slug>" # include narration/ and any images
|
|
952
|
-
hyperdecks release decks/<slug> --
|
|
1009
|
+
hyperdecks release decks/<slug> --qa # prints a QA link for you: untracked, no email
|
|
953
1010
|
hyperdecks release decks/<slug> --to "Ana Diaz" --email ana@x.com --to "Sam"
|
|
954
1011
|
```
|
|
955
1012
|
|
|
@@ -43,13 +43,13 @@ makes the hello deck; continue from step 5 below.
|
|
|
43
43
|
`revise_brand { instruction }` gives a draft and preview the same way.
|
|
44
44
|
Any brand change can be undone: `brand_history`, then `undo_brand`.
|
|
45
45
|
(`deck_guide { topic: "design" }` lists the font pairings.)
|
|
46
|
-
2. `new_deck { slug, title, layouts }
|
|
46
|
+
2. `new_deck { slug, title, layouts, theme }` (themes: `deck_guide`) registers your draft and returns the
|
|
47
47
|
full text of every file plus a `previewUrl` (the draft, untracked; once
|
|
48
48
|
narrated it plays with the face its release would have, so the person can
|
|
49
49
|
watch it before anything ships). It
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
3. Images: `generate_image`, `render_chart`, `capture_url`, or
|
|
50
|
+
is in the saved brand, or a named `theme`'s own look (`brand: true` adds
|
|
51
|
+
the brand; `brand` in the result says what it took).
|
|
52
|
+
3. Images: `generate_image`, `render_chart`, `capture_url`, `add_photo`, or
|
|
53
53
|
`upload_deck_asset` for a picture the user gave you (a URL, or a file they
|
|
54
54
|
uploaded). Each returns a hosted URL: put that URL in the HTML. A hosted deck
|
|
55
55
|
has no folder, so a relative path like `img/a.png` is an error. The
|
|
@@ -60,13 +60,14 @@ makes the hello deck; continue from step 5 below.
|
|
|
60
60
|
`cover-poster` or `cover-type`, deck_guide topic layouts); with a strong
|
|
61
61
|
picture, `cover-frame` or `cover-split`. Keep the title and lead on a solid
|
|
62
62
|
ground: a picture faded into the ground under the title is hard to read.
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
Which picture fits a slide, and icons: `deck_guide { topic: "pictures" }`;
|
|
64
|
+
`search_icons { query, for }` fills a layout's icon slot. Set: `use_icon_set`.
|
|
65
65
|
For motion, `generate_video` (poll `check_video_job`): `loop: true` for a
|
|
66
66
|
clip that repeats with no jump, `transparent: true` for a moving cut-out
|
|
67
67
|
over the slide. Paste the finished job's `markup` as is (a transparent
|
|
68
68
|
clip's `<video>` names a second file in `data-alpha-stacked`, which the
|
|
69
69
|
player shows in Safari and on iOS).
|
|
70
|
+
GIFs: `search_gifs`, rarely (look).
|
|
70
71
|
`deck_guide { topic: "design" }` says when each fits.
|
|
71
72
|
4. `write_deck_source` to change a file: `edits: [{ find, replace }]` with
|
|
72
73
|
exact text that occurs once (copy it from `get_deck_source`), or `content`
|
|
@@ -117,7 +118,9 @@ makes the hello deck; continue from step 5 below.
|
|
|
117
118
|
https://decks.hypersocial.ai/v/<token>/md) returns the deck as markdown
|
|
118
119
|
(slide text, image descriptions and the narration), honouring the link's
|
|
119
120
|
gates; owners can turn it off with `set_deck_view { slug, aiReadable: false }`.
|
|
120
|
-
`set_share_notify` to mute a link's "opened" alerts;
|
|
121
|
+
`set_share_notify` to mute a link's "opened" alerts; `set_share_count_on
|
|
122
|
+
{ token, countOn: "play" }` (or `create_share { countOnPlay: true }`) for a
|
|
123
|
+
deck embedded in a web page, so only a viewer pressing play counts an open;
|
|
121
124
|
`set_recipient_archived` to tidy the activity feed; `credits` for the
|
|
122
125
|
balance. `tag_deck { slug, add, remove }` labels a deck for its owner
|
|
123
126
|
(investors, fizz-fm…; recipients never see tags): tag the decks you make,
|
|
@@ -164,7 +167,7 @@ their picks; `release_deck` puts them on the links.
|
|
|
164
167
|
`<style data-hd-loading>` block is written for you on each write of index.html.
|
|
165
168
|
- A deck with no narration (a product tour, a silent walkthrough): put
|
|
166
169
|
`data-silent` on the player script and skip narrate_deck; check warns, release
|
|
167
|
-
goes through, and the player shows no Play
|
|
170
|
+
goes through, and the player shows no Play, clock or presenter.
|
|
168
171
|
- When the deck is released, tell the person what cost you time, ranked by
|
|
169
172
|
cost: a rule you worked around, a layout you hand-wrote, a tool or check that
|
|
170
173
|
said the wrong thing, something missing from `deck_guide`. One concrete line
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# Make a narrated deck from the terminal
|
|
2
|
+
|
|
3
|
+
The steps other topics refer to ("step 5", "step 6"). `<dir>` is the deck's
|
|
4
|
+
folder: any name, anywhere. `deck new` records the slug in `<dir>/.hyperdecks.json`,
|
|
5
|
+
so no command below needs `--slug`. Read a topic before its step:
|
|
6
|
+
`hyperdecks guide format`, `script`, `design`, `look`, `pictures`, `embeds`, `layouts`,
|
|
7
|
+
`presenter`, `transitions`, `check`.
|
|
8
|
+
|
|
9
|
+
1. **Ground it.** Collect the user's own material (their site, docs, numbers).
|
|
10
|
+
Every fact on a slide gets a row in `evidence.md`.
|
|
11
|
+
|
|
12
|
+
2. **Scaffold.**
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
hyperdecks deck new <slug> "<title>" --narrated --dir <dir> [--presenter dash] [--layouts hero,product,number,closer] [--theme <name>]
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Pick each slide's layout from the table at the top of `hyperdecks guide layouts`
|
|
19
|
+
(what the slide carries → its shapes), or `hyperdecks layouts suggest "<what it says>"`;
|
|
20
|
+
vary them, as check warns on one layout over and over.
|
|
21
|
+
|
|
22
|
+
`--theme` is a built-in look (`hyperdecks guide themes`; pick one from the
|
|
23
|
+
subject when the person names none, and say which). A named theme comes in
|
|
24
|
+
its own colours and fonts with no logo; `--brand` puts the saved brand on it.
|
|
25
|
+
|
|
26
|
+
The folder may exist if it is empty. Without `--presenter` the account's
|
|
27
|
+
default narrator presents; the output says who. `--presenter dash` makes it
|
|
28
|
+
D.A.S.H. (face and voice). Change it later with `hyperdecks deck narrator <slug> <name>`.
|
|
29
|
+
|
|
30
|
+
**A silent deck** (no narration: a product tour, a walkthrough) starts with
|
|
31
|
+
this same command (every deck is scaffolded `--narrated`). Then add
|
|
32
|
+
`data-silent` to the player script in `<dir>/index.html` and skip step 4.
|
|
33
|
+
It plays with no Play button, clock or presenter (`hyperdecks guide format`).
|
|
34
|
+
|
|
35
|
+
3. **Write slides and script.** Slides in `<dir>/index.html`, one `## <slide-id>`
|
|
36
|
+
block per slide in `<dir>/script.md`. Each sentence is one caption of 4 to 85
|
|
37
|
+
characters. Images: `hyperdecks gen-image "<prompt>" --size 1536x1024`,
|
|
38
|
+
`hyperdecks screenshot <url>`, `hyperdecks asset add <slug> <file>` (prints the
|
|
39
|
+
file name with its URL). Which kind of picture fits which slide, and icons
|
|
40
|
+
for a layout's icon slot (`hyperdecks icons search <word> --for <layout>`):
|
|
41
|
+
`hyperdecks guide pictures`. A live map, video, Figma file or booking page the
|
|
42
|
+
viewer will use: the embed layout, `hyperdecks guide embeds`.
|
|
43
|
+
|
|
44
|
+
4. **Narrate.**
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
hyperdecks narrate <dir> --dry-run # what would render, and what it costs
|
|
48
|
+
hyperdecks narrate <dir> # renders changed slides, sets data-manifest
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
One narration runs per account at a time: a second one waits for the first
|
|
52
|
+
(up to five minutes), then starts. Rerunning is always safe; cached slides are free.
|
|
53
|
+
|
|
54
|
+
5. **Check.**
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
hyperdecks check <dir> --layout
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Fix every error; read every warning.
|
|
61
|
+
|
|
62
|
+
6. **Look at it, at both widths.** `hyperdecks play <dir>` plays the folder with
|
|
63
|
+
the real face and voice. Screenshot every slide at 1440×900 and 390×844
|
|
64
|
+
(`#scene=<id>`) and fix what is clipped or covered.
|
|
65
|
+
|
|
66
|
+
7. **Release.** It needs the folder in a git repository, committed, so a release
|
|
67
|
+
matches a commit. Outside a repository, first run in `<dir>`:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
git init && git add -A && git commit -m "deck"
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
hyperdecks release <dir> --qa # prints a QA link for you (untracked, no email)
|
|
75
|
+
hyperdecks release <dir> --to "Ana Diaz" --email ana@x.com
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
If narration changed the folder, release stops: check, commit, release again.
|
|
79
|
+
|
|
80
|
+
8. **Report who watched.** `hyperdecks deck stats <slug>`, `hyperdecks activity --deck <slug>`.
|
|
81
|
+
|
|
82
|
+
9. **Video.** `hyperdecks export <slug> --video --size 720p` records the released
|
|
83
|
+
copy; `hyperdecks export <dir> --video` records the working copy.
|