@hypersocial/decks-cli 0.9.23 → 0.9.24
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 +113 -67
- package/skills/hyperdecks/chat.md +11 -8
- package/skills/hyperdecks/terminal.md +82 -0
- package/src/bars.mjs +268 -0
- package/src/brand.mjs +51 -8
- package/src/check.mjs +311 -15
- package/src/checkRules.mjs +616 -27
- package/src/commands.mjs +157 -28
- package/src/deckSlug.mjs +41 -0
- package/src/export-video.mjs +20 -3
- package/src/files.mjs +35 -0
- package/src/guide.mjs +91 -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 +92 -0
- package/src/layouts.mjs +4 -4
- package/src/mediaPreviews.mjs +3 -1
- package/src/narrate.mjs +31 -4
- package/src/opening.mjs +9 -3
- package/src/ops.mjs +49 -0
- package/src/photosGuide.mjs +47 -0
- package/src/picturesGuide.mjs +53 -0
- package/src/play.mjs +3 -2
- package/src/presenter.mjs +3 -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 +177 -36
- package/templates/layouts/bento.html +75 -0
- package/templates/layouts/chart.html +6 -4
- package/templates/layouts/closer.html +10 -3
- package/templates/layouts/compare.html +13 -4
- package/templates/layouts/cover-band.html +10 -8
- package/templates/layouts/cover-frame.html +9 -7
- package/templates/layouts/cover-poster.html +8 -5
- package/templates/layouts/cover-split.html +7 -6
- package/templates/layouts/cover-type.html +1 -0
- package/templates/layouts/features.html +9 -7
- package/templates/layouts/funnel.html +60 -0
- package/templates/layouts/hero.html +40 -22
- package/templates/layouts/lanes.html +63 -0
- package/templates/layouts/loop.html +81 -0
- package/templates/layouts/number.html +2 -1
- package/templates/layouts/phone-stage.html +68 -0
- package/templates/layouts/phones.html +1 -0
- package/templates/layouts/picture-full.html +48 -0
- package/templates/layouts/portrait.html +45 -0
- package/templates/layouts/product.html +7 -6
- package/templates/layouts/quote.html +2 -1
- package/templates/layouts/rail.html +71 -0
- package/templates/layouts/scorecard.html +70 -0
- package/templates/layouts/screens.html +85 -0
- package/templates/layouts/sentence.html +39 -0
- package/templates/layouts/split.html +22 -7
- package/templates/layouts/spotlight.html +77 -0
- package/templates/layouts/stack.html +83 -0
- package/templates/layouts/staircase.html +76 -0
- package/templates/layouts/strike.html +46 -0
- package/templates/layouts/tap-through.html +73 -0
- package/templates/layouts/team.html +3 -2
- package/templates/layouts/timeline.html +16 -6
- package/templates/layouts/two-bars.html +53 -0
- package/templates/layouts/two-by-two.html +71 -0
- package/templates/layouts/video-beats.html +66 -0
- package/templates/layouts/video-full.html +62 -0
- package/templates/layouts/wall.html +81 -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.24"
|
|
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` |
|
|
@@ -263,16 +264,26 @@ The deck contract (`check` enforces or warns on each line):
|
|
|
263
264
|
- Each slide keeps its `<div class="narration-slot"></div>` (where the
|
|
264
265
|
presenter's face and captions sit; the player glides the presenter there,
|
|
265
266
|
so put slots on different sides across slides, as the scaffold's
|
|
266
|
-
`.slot-left` does);
|
|
267
|
+
`.slot-left` does); a narrated deck's first slide has `data-intro` (a silent
|
|
268
|
+
deck's does not: nobody says it).
|
|
267
269
|
- The player script stays
|
|
268
270
|
`<script type="module" src="https://hyperdecks.ai/player/v1/player.js" data-manifest="…">`.
|
|
269
271
|
`narrate` fills `data-manifest`; do not edit it by hand.
|
|
270
272
|
- 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
|
-
|
|
273
|
+
walkthrough) says so: `data-silent` on the player script. To make one, scaffold
|
|
274
|
+
as for any deck (`deck new <slug> "<title>" --narrated`, or new_deck), add
|
|
275
|
+
`data-silent` to the player script, remove the cover's `data-intro` (its "Press
|
|
276
|
+
play" greeting is never spoken), and skip narrate; no `deck narrator` step is needed. `check` then warns
|
|
277
|
+
"no narration (silent deck)" instead of failing, warns rather than fails on a
|
|
278
|
+
script.md cue that matches nothing (the script is unused), release skips narrate, and
|
|
273
279
|
the player shows the slides, arrows, tabs and scroll mode with no Play
|
|
274
280
|
button, clock or caption bubble. Without `data-silent` a missing
|
|
275
281
|
`data-manifest` still fails, so a forgotten narrate is caught.
|
|
282
|
+
A silent deck shows no presenter either: `deck new` writes
|
|
283
|
+
`data-silent-presenter="hide"` on the player script, so the face is gone (the
|
|
284
|
+
opening card shows the title and progress only, and the link preview reads
|
|
285
|
+
"A deck on Hyperdecks") and the slides use its corner (check says nothing about the presenter's room).
|
|
286
|
+
To keep the face on a silent deck, set `data-silent-presenter="show"`.
|
|
276
287
|
- The `<style data-hd-loading>` block in `<head>` is boilerplate the tools
|
|
277
288
|
write: `deck new` includes it, `check --fix` inserts or refreshes it, and a
|
|
278
289
|
hosted `write_deck_source` of index.html puts it right on the way in.
|
|
@@ -349,7 +360,13 @@ doesn't fit the deck, turn it off with `data-loading="calm"` on the player tag
|
|
|
349
360
|
Size it per slide with `data-presenter-size="s|m|l|xl"` on the `<section>`
|
|
350
361
|
(0.7×, 1×, 1.3×, 1.6× the style's head; on the player tag it is the deck's
|
|
351
362
|
default): `xl` on a slide with empty space, `s` on a busy product slide. Phones
|
|
352
|
-
keep `l`/`xl` at their usual size.
|
|
363
|
+
keep `l`/`xl` at their usual size. `closer` and `split` make room for `l` and `xl`
|
|
364
|
+
set on the slide's own `<section>` (the player tag's default is not seen by a
|
|
365
|
+
layout): the closer's line moves right of the presenter, and split gives it the
|
|
366
|
+
left of the slide with the copy and picture beside it (sized for `stage`). On
|
|
367
|
+
other layouts a large presenter needs a slide with the corner free; `check
|
|
368
|
+
--layout` warns when it would cover the title and names what clears it (the size
|
|
369
|
+
on the slide, `stage`, or a smaller size). A slide's CSS `--hd-presenter-scale: 1.15`
|
|
353
370
|
fine-tunes it. `check` warns on an unknown size. In `corner`, `[look]` turns
|
|
354
371
|
the head; `[go]` highlights the target and looks at it but the head stays in
|
|
355
372
|
its corner.
|
|
@@ -482,7 +499,7 @@ new sizes:
|
|
|
482
499
|
|
|
483
500
|
| Token | Stage (1600×900) | Phone | For |
|
|
484
501
|
|---|---|---|---|
|
|
485
|
-
| `--t-display` | 128px | 54px | one hero line
|
|
502
|
+
| `--t-display` | 128px | 54px | one hero line, at most once per slide |
|
|
486
503
|
| `--t-title` | 84px | 38px | the slide's title |
|
|
487
504
|
| `--t-sub` | 56px | 28px | a title beside a visual, a number's label |
|
|
488
505
|
| `--t-lead` | 30px | 17px | one supporting sentence |
|
|
@@ -501,10 +518,12 @@ label at full contrast. Set the palette and fonts once, in `:root`.
|
|
|
501
518
|
|
|
502
519
|
**Start from the brand.** The account keeps a brand: colours, fonts, a logo,
|
|
503
520
|
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
|
|
521
|
+
`new_deck` (with no theme named) put its tokens in `:root` and its logo on the first slide, so read
|
|
505
522
|
it first (`hyperdecks brand show --json`, `get_brand`) and write in its voice.
|
|
506
523
|
An explicit request for this deck wins over the brand; `--no-brand`
|
|
507
|
-
(`brand: false`) starts from the template's look.
|
|
524
|
+
(`brand: false`) starts from the template's look. **A named theme wins too:**
|
|
525
|
+
`--theme soft` (`theme: "soft"`) gives Soft's own colours and fonts and no
|
|
526
|
+
logo; add `--brand` (`brand: true`) only when they want the brand on it. No brand yet? Offer to
|
|
508
527
|
import it: `hyperdecks brand import <url|file.pptx|file.pdf|deck-slug>`
|
|
509
528
|
(`import_brand`) reads the real colours, fonts and logo (a PowerPoint's theme
|
|
510
529
|
exactly) and returns a preview link of a sample slide and a token. Show them
|
|
@@ -522,34 +541,56 @@ saves one.
|
|
|
522
541
|
<!-- font pairings -->
|
|
523
542
|
|
|
524
543
|
**Textures, icons, pictures:** the `look` topic (one texture, one icon set
|
|
525
|
-
from `search_icons
|
|
544
|
+
from `search_icons`, a picture on every other slide).
|
|
526
545
|
|
|
527
|
-
**Pick the layout from what the slide says
|
|
528
|
-
|
|
546
|
+
**Pick the layout from what the slide says**; read its detail by name in
|
|
547
|
+
the `layouts` topic.
|
|
529
548
|
|
|
530
549
|
**Open on a cover, the title on a solid ground**; with a strong picture,
|
|
531
550
|
`cover-frame` or `cover-split`. A picture faded under the title is hard to
|
|
532
551
|
read (`check` warns).
|
|
533
552
|
|
|
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
|
-
| `
|
|
553
|
+
| Layout | Use it for |
|
|
554
|
+
|---|---|
|
|
555
|
+
| `hero` | the default cover: the subject framed beside the title |
|
|
556
|
+
| `cover-frame` | a strong picture, framed under the title |
|
|
557
|
+
| `cover-split` | a big picture: a hard 50/50 |
|
|
558
|
+
| `cover-band` | the picture fills the slide, title on a panel |
|
|
559
|
+
| `cover-poster` | a wide scene on top, title below |
|
|
560
|
+
| `cover-type` | no picture: type only |
|
|
561
|
+
| `number` | one number with its source: proof, traction, a delta |
|
|
562
|
+
| `product` | a screenshot in a browser frame (`.frame.card`: a phone) |
|
|
563
|
+
| `split` | a real picture beside three ticks |
|
|
564
|
+
| `phones` | a phone app's flow: a fanned row of phone cards |
|
|
565
|
+
| `phone-stage` | one phone screen, notes lit in turn |
|
|
566
|
+
| `tap-through` | a prototype viewers tap through |
|
|
567
|
+
| `screens` | screens or pictures in order |
|
|
568
|
+
| `zoom` | a screenshot, one part enlarged |
|
|
569
|
+
| `video-full` | a recording fills the slide |
|
|
570
|
+
| `video-beats` | a recording and its moments |
|
|
571
|
+
| `picture-full` | one photo, words on a panel |
|
|
572
|
+
| `wall` | 3 to 5 real photos |
|
|
573
|
+
| `portrait` | one tall picture beside the title |
|
|
574
|
+
| `quote` | a customer in their own words, quoted exactly |
|
|
575
|
+
| `compare` | before/after, them/us, three parallel lines each |
|
|
576
|
+
| `timeline` | four milestones: history, a roadmap, a process |
|
|
577
|
+
| `features` | three things it does, an icon each |
|
|
578
|
+
| `sentence` | the point, set large |
|
|
579
|
+
| `strike` | a myth, then the truth |
|
|
580
|
+
| `spotlight` | one option picked out |
|
|
581
|
+
| `funnel` | stages that narrow |
|
|
582
|
+
| `scorecard` | measures, a state each |
|
|
583
|
+
| `bento` | one big point, two small |
|
|
584
|
+
| `two-by-two` | four on two axes |
|
|
585
|
+
| `staircase` | steps that build |
|
|
586
|
+
| `rail` | stops along a line |
|
|
587
|
+
| `loop` | a cycle |
|
|
588
|
+
| `lanes` | who does what |
|
|
589
|
+
| `two-bars` | two numbers |
|
|
590
|
+
| `stack` | layers |
|
|
591
|
+
| `chart` | real numbers drawn with `chart`, a takeaway |
|
|
592
|
+
| `team` | up to four people, faces only with permission |
|
|
593
|
+
| `closer` | the end: one line and one action (a command, a link) |
|
|
553
594
|
|
|
554
595
|
**Phones and backgrounds.** One phone: `product`'s `.frame.card`; a flow of
|
|
555
596
|
two to four: `phones` (`--tilt`, `--shadow` on a card). A few slides at most:
|
|
@@ -587,14 +628,13 @@ visual is the point; `glass` on a dark or busy picture. `quote`, `split`,
|
|
|
587
628
|
never needed for a deck to work. A `muted loop` video plays while its slide
|
|
588
629
|
is current, no cue needed; a `data-hd-manual` one waits for `[play]`. A clip that
|
|
589
630
|
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
|
-
|
|
631
|
+
ends on the same frame, so there is no jump at the seam (`--image` loops a
|
|
632
|
+
still you have).
|
|
592
633
|
- Moving cut-outs: `--transparent` (`transparent: true`) mattes the
|
|
593
634
|
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
|
|
635
|
+
product turning, over the slide's own background. Use it
|
|
636
|
+
with `--loop` and a subject on a plain background. It returns a WebM
|
|
637
|
+
with alpha and a stacked-alpha MP4 the hosted player draws in Safari and iOS. The
|
|
598
638
|
job's `markup` is the tag to paste, as is:
|
|
599
639
|
|
|
600
640
|
```html
|
|
@@ -602,9 +642,8 @@ visual is the point; `glass` on a dark or busy picture. `quote`, `split`,
|
|
|
602
642
|
src="(video.url)" data-alpha-stacked="(video.stacked.url)"></video>
|
|
603
643
|
```
|
|
604
644
|
|
|
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.
|
|
645
|
+
Keep `crossorigin` and `data-alpha-stacked`: the player needs both. A
|
|
646
|
+
transparent clip costs 2 credits a second more than an opaque one.
|
|
608
647
|
- People: real photos only with permission; initials otherwise.
|
|
609
648
|
|
|
610
649
|
**Motion.** The presenter's moves are the deck's motion; keep everything else
|
|
@@ -626,8 +665,8 @@ still.
|
|
|
626
665
|
<!-- topic: look -->
|
|
627
666
|
#### Look: textures, icons, pictures
|
|
628
667
|
|
|
629
|
-
|
|
630
|
-
|
|
668
|
+
Decide these three once per deck, before the slides; say them in your
|
|
669
|
+
plan.
|
|
631
670
|
|
|
632
671
|
**1. A picture on at least every other slide**, the most real one you have:
|
|
633
672
|
|
|
@@ -635,11 +674,19 @@ slides, and say them in your plan.
|
|
|
635
674
|
screen recording or photo the person gives you (`upload_deck_asset`);
|
|
636
675
|
2. their people, logos and app icons (with permission);
|
|
637
676
|
3. real data drawn with `render_chart`;
|
|
638
|
-
4. only then
|
|
639
|
-
|
|
677
|
+
4. only then a found or made picture of a concrete subject (a place, an
|
|
678
|
+
object, a mood): `search_photos` then `add_photo` (Unsplash), or
|
|
679
|
+
`generate_image`; never a metaphor, or a stand-in for their own
|
|
680
|
+
product, team or event.
|
|
681
|
+
|
|
682
|
+
Found photos and GIFs (`search_photos`, `add_photo`, `search_gifs`): read
|
|
683
|
+
`deck_guide { topic: "photos" }` (CLI: `hyperdecks guide photos`) first; it
|
|
684
|
+
says which markup each layout takes and where the credit line goes.
|
|
640
685
|
|
|
641
|
-
|
|
642
|
-
|
|
686
|
+
An upload's `bars:` note: upload it again with `--trim` (`trim: true`).
|
|
687
|
+
|
|
688
|
+
No product? Picture what it is about (4.) or chart its numbers (3.);
|
|
689
|
+
icons and stickers are not pictures.
|
|
643
690
|
|
|
644
691
|
**2. Plain grounds; texture only behind objects.** Alternate plain,
|
|
645
692
|
`on-tint`, `on-tint-2`, `on-tint-3`, `on-accent`, `on-ink`. On the section:
|
|
@@ -658,11 +705,11 @@ and the kit below: a `number` slide, stickers, ticks on a `panel`.
|
|
|
658
705
|
- Your own is fine in the deck's `<style>`: tokens only, behind the content
|
|
659
706
|
in an isolated slide, off with nothing to back.
|
|
660
707
|
|
|
661
|
-
**3. One icon set
|
|
662
|
-
|
|
663
|
-
`
|
|
664
|
-
(`line`, `duotone`, `sticker`, `clay
|
|
665
|
-
|
|
708
|
+
**3. One icon set, if any.** Icons are optional (`pictures` topic). One
|
|
709
|
+
source per deck: a set and weight from `icon_sets`, set with
|
|
710
|
+
`use_icon_set` (`search_icons { query, for }` stays in it); one `generate_icon_set`
|
|
711
|
+
`preset` (`line`, `duotone`, `sticker`, `clay`); or the product's own
|
|
712
|
+
icons. `check` warns on a mix.
|
|
666
713
|
Put an icon or logo in a `.sticker` (tilted tile, hard shadow) on openers
|
|
667
714
|
and product slides; use `.ticks` (accent squares) for lists, not icons.
|
|
668
715
|
|
|
@@ -674,7 +721,11 @@ an app icon or a face), `.ticks`, `.panel`, `.pill`, `.frame.card` (a phone),
|
|
|
674
721
|
`<concrete subject>, <setting>, <medium: e.g. editorial photo, soft daylight>,
|
|
675
722
|
palette <ink hex> <accent hex> <paper hex>, no text, no logos`
|
|
676
723
|
(`generate_image { brand: true }` adds the palette and the "no text" for
|
|
677
|
-
you)
|
|
724
|
+
you), in one batch.
|
|
725
|
+
|
|
726
|
+
**Picture shapes.** 3:1 to 3:4: `hero` (its frame takes the shape).
|
|
727
|
+
Strip: `cover-poster`. Landscape: `cover-frame`, `cover-band`. Square:
|
|
728
|
+
`cover-split`. Never `contain` a framed picture (check warns).
|
|
678
729
|
|
|
679
730
|
**Slide recipes.** Opener: `on-accent` + `bg-corner`, the logo
|
|
680
731
|
or a few app-icon stickers, one display line. Product or feature: `split`
|
|
@@ -682,19 +733,13 @@ with a real screen. Proof: `number` (huge, sourced) or `chart`. Plan:
|
|
|
682
733
|
`timeline` on a tint. People: `team` with real faces. Closer: `on-ink`, the
|
|
683
734
|
one action, stickers again.
|
|
684
735
|
|
|
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).
|
|
736
|
+
**No presenter.** With no face and no captions, or after
|
|
737
|
+
`setPresenterOff(true)`, the player puts `hd-no-presenter` on `<html>` and
|
|
738
|
+
hides `.narration-slot`: compare and chart widen; each layout's detail says
|
|
739
|
+
its variant. A deck with captions keeps the slot. A custom slide's presenter
|
|
740
|
+
corner is its `.narration-slot`, never a
|
|
741
|
+
hard-coded gutter (`padding-right: 400px`); override one in
|
|
742
|
+
`:root.hd-no-presenter .l-yours …` (check warns until you do).
|
|
698
743
|
|
|
699
744
|
<!-- topic: script -->
|
|
700
745
|
### 3. Write slides and script
|
|
@@ -945,11 +990,12 @@ illustrated set that matches.
|
|
|
945
990
|
### 7. Release
|
|
946
991
|
|
|
947
992
|
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.
|
|
993
|
+
release matches a commit. A folder outside any git repository needs one first:
|
|
994
|
+
`git init && git add -A && git commit -m "deck"` inside it.
|
|
949
995
|
|
|
950
996
|
```bash
|
|
951
997
|
git add decks/<slug> && git commit -m "deck: <slug>" # include narration/ and any images
|
|
952
|
-
hyperdecks release decks/<slug> --
|
|
998
|
+
hyperdecks release decks/<slug> --qa # prints a QA link for you: untracked, no email
|
|
953
999
|
hyperdecks release decks/<slug> --to "Ana Diaz" --email ana@x.com --to "Sam"
|
|
954
1000
|
```
|
|
955
1001
|
|
|
@@ -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,82 @@
|
|
|
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`, `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`.
|
|
42
|
+
|
|
43
|
+
4. **Narrate.**
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
hyperdecks narrate <dir> --dry-run # what would render, and what it costs
|
|
47
|
+
hyperdecks narrate <dir> # renders changed slides, sets data-manifest
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
One narration runs per account at a time: a second one waits for the first
|
|
51
|
+
(up to five minutes), then starts. Rerunning is always safe; cached slides are free.
|
|
52
|
+
|
|
53
|
+
5. **Check.**
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
hyperdecks check <dir> --layout
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Fix every error; read every warning.
|
|
60
|
+
|
|
61
|
+
6. **Look at it, at both widths.** `hyperdecks play <dir>` plays the folder with
|
|
62
|
+
the real face and voice. Screenshot every slide at 1440×900 and 390×844
|
|
63
|
+
(`#scene=<id>`) and fix what is clipped or covered.
|
|
64
|
+
|
|
65
|
+
7. **Release.** It needs the folder in a git repository, committed, so a release
|
|
66
|
+
matches a commit. Outside a repository, first run in `<dir>`:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
git init && git add -A && git commit -m "deck"
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
hyperdecks release <dir> --qa # prints a QA link for you (untracked, no email)
|
|
74
|
+
hyperdecks release <dir> --to "Ana Diaz" --email ana@x.com
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
If narration changed the folder, release stops: check, commit, release again.
|
|
78
|
+
|
|
79
|
+
8. **Report who watched.** `hyperdecks deck stats <slug>`, `hyperdecks activity --deck <slug>`.
|
|
80
|
+
|
|
81
|
+
9. **Video.** `hyperdecks export <slug> --video --size 720p` records the released
|
|
82
|
+
copy; `hyperdecks export <dir> --video` records the working copy.
|