@slidevideo/cli 0.1.2 → 0.2.1

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/IMPRESSUM.md +18 -4
  3. package/LICENSE-TERMS.md +46 -13
  4. package/README.md +5 -5
  5. package/addons/slidevideo/geometry.ts +63 -30
  6. package/addons/slidevideo/global-top.vue +41 -9
  7. package/addons/slidevideo/playback-entries.ts +17 -6
  8. package/addons/slidevideo/preview.ts +27 -15
  9. package/dist/adapters/browser-runtime.d.ts +3 -0
  10. package/dist/adapters/elevenlabs.d.ts +1 -0
  11. package/dist/adapters/elevenlabs.js +8 -4
  12. package/dist/adapters/powerpoint.d.ts +7 -4
  13. package/dist/adapters/powerpoint.js +123 -34
  14. package/dist/adapters/slidev-inspection.d.ts +5 -2
  15. package/dist/adapters/slidev-inspection.js +5 -6
  16. package/dist/adapters/slidev-server.js +136 -15
  17. package/dist/adapters/slidev.d.ts +12 -4
  18. package/dist/adapters/slidev.js +356 -70
  19. package/dist/annotation-paint.d.ts +65 -11
  20. package/dist/annotation-paint.js +290 -10
  21. package/dist/annotations.d.ts +13 -8
  22. package/dist/annotations.js +620 -89
  23. package/dist/assembly.d.ts +48 -40
  24. package/dist/assembly.js +72 -28
  25. package/dist/calibration.js +5 -4
  26. package/dist/cli.js +180 -39
  27. package/dist/compositor.d.ts +38 -6
  28. package/dist/compositor.js +299 -46
  29. package/dist/contracts.d.ts +96 -35
  30. package/dist/contracts.js +2 -1
  31. package/dist/executables.d.ts +2 -0
  32. package/dist/executables.js +27 -8
  33. package/dist/media.d.ts +12 -1
  34. package/dist/media.js +53 -4
  35. package/dist/pipeline.d.ts +36 -10
  36. package/dist/pipeline.js +163 -46
  37. package/dist/preview/contracts.d.ts +3 -3
  38. package/dist/preview/player.js +20 -15
  39. package/dist/preview/server.d.ts +2 -1
  40. package/dist/preview/server.js +8 -7
  41. package/dist/run.d.ts +1 -1
  42. package/dist/run.js +8 -3
  43. package/dist/setup-install.d.ts +1 -0
  44. package/dist/setup-install.js +8 -1
  45. package/dist/setup.d.ts +29 -8
  46. package/dist/setup.js +183 -76
  47. package/dist/skill-install.d.ts +35 -0
  48. package/dist/skill-install.js +132 -0
  49. package/dist/speech.js +10 -6
  50. package/dist/storyboard.js +12 -6
  51. package/dist/timing.js +2 -2
  52. package/package.json +4 -3
  53. package/schemas/annotation-geometry.v1.json +260 -28
  54. package/schemas/run-manifest.v1.json +31 -0
  55. package/schemas/schedule.v1.json +655 -1
  56. package/schemas/storyboard.v1.json +558 -33
  57. package/skills/slidevideo/SKILL.md +11 -9
  58. package/skills/slidevideo/references/decks.md +228 -0
  59. package/skills/slidevideo/references/production.md +17 -12
  60. package/skills/slidevideo/references/storyboard.md +71 -38
  61. package/tools/powerpoint/powerpoint.ps1 +52 -41
  62. package/tools/powerpoint/preview.ps1 +5 -5
  63. package/schemas/schedule.v2.json +0 -496
  64. package/schemas/storyboard.v2.json +0 -802
@@ -32,37 +32,6 @@
32
32
  "voice"
33
33
  ]
34
34
  },
35
- "output": {
36
- "type": "object",
37
- "additionalProperties": false,
38
- "properties": {
39
- "width": {
40
- "type": "integer",
41
- "minimum": 640,
42
- "maximum": 3840,
43
- "multipleOf": 2
44
- },
45
- "height": {
46
- "type": "integer",
47
- "minimum": 360,
48
- "maximum": 2160,
49
- "multipleOf": 2
50
- },
51
- "fps": {
52
- "enum": [
53
- 15,
54
- 24,
55
- 30,
56
- 60
57
- ]
58
- }
59
- },
60
- "required": [
61
- "width",
62
- "height",
63
- "fps"
64
- ]
65
- },
66
35
  "media": {
67
36
  "type": "array",
68
37
  "items": {
@@ -447,15 +416,571 @@
447
416
  "action"
448
417
  ]
449
418
  }
419
+ },
420
+ "annotations": {
421
+ "type": "array",
422
+ "items": {
423
+ "oneOf": [
424
+ {
425
+ "type": "object",
426
+ "additionalProperties": false,
427
+ "properties": {
428
+ "id": {
429
+ "type": "string",
430
+ "pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$"
431
+ },
432
+ "scene": {
433
+ "type": "string",
434
+ "pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$"
435
+ },
436
+ "target": {
437
+ "oneOf": [
438
+ {
439
+ "type": "object",
440
+ "additionalProperties": false,
441
+ "properties": {
442
+ "type": {
443
+ "const": "region"
444
+ },
445
+ "units": {
446
+ "const": "normalized"
447
+ },
448
+ "x": {
449
+ "type": "number",
450
+ "minimum": 0,
451
+ "maximum": 1
452
+ },
453
+ "y": {
454
+ "type": "number",
455
+ "minimum": 0,
456
+ "maximum": 1
457
+ },
458
+ "width": {
459
+ "type": "number",
460
+ "exclusiveMinimum": 0,
461
+ "maximum": 1
462
+ },
463
+ "height": {
464
+ "type": "number",
465
+ "exclusiveMinimum": 0,
466
+ "maximum": 1
467
+ }
468
+ },
469
+ "required": [
470
+ "type",
471
+ "units",
472
+ "x",
473
+ "y",
474
+ "width",
475
+ "height"
476
+ ]
477
+ },
478
+ {
479
+ "type": "object",
480
+ "additionalProperties": false,
481
+ "properties": {
482
+ "type": {
483
+ "const": "element"
484
+ },
485
+ "selector": {
486
+ "type": "string",
487
+ "minLength": 1
488
+ }
489
+ },
490
+ "required": [
491
+ "type",
492
+ "selector"
493
+ ]
494
+ },
495
+ {
496
+ "type": "object",
497
+ "additionalProperties": false,
498
+ "properties": {
499
+ "type": {
500
+ "const": "shape"
501
+ },
502
+ "id": {
503
+ "type": "integer",
504
+ "minimum": 1
505
+ }
506
+ },
507
+ "required": [
508
+ "type",
509
+ "id"
510
+ ]
511
+ }
512
+ ]
513
+ },
514
+ "effect": {
515
+ "const": "highlight"
516
+ },
517
+ "appearance": {
518
+ "type": "object",
519
+ "additionalProperties": false,
520
+ "properties": {
521
+ "color": {
522
+ "type": "string",
523
+ "pattern": "^#[0-9a-fA-F]{6}$"
524
+ },
525
+ "opacity": {
526
+ "type": "number",
527
+ "exclusiveMinimum": 0,
528
+ "maximum": 1
529
+ },
530
+ "blend": {
531
+ "enum": [
532
+ "source-over",
533
+ "darken"
534
+ ]
535
+ },
536
+ "padding": {
537
+ "type": "object",
538
+ "additionalProperties": false,
539
+ "properties": {
540
+ "units": {
541
+ "const": "normalized"
542
+ },
543
+ "x": {
544
+ "type": "number",
545
+ "minimum": 0,
546
+ "maximum": 1
547
+ },
548
+ "y": {
549
+ "type": "number",
550
+ "minimum": 0,
551
+ "maximum": 1
552
+ }
553
+ },
554
+ "required": [
555
+ "units",
556
+ "x",
557
+ "y"
558
+ ]
559
+ },
560
+ "bottom_border": {
561
+ "type": "object",
562
+ "additionalProperties": false,
563
+ "properties": {
564
+ "color": {
565
+ "type": "string",
566
+ "pattern": "^#[0-9a-fA-F]{6}$"
567
+ },
568
+ "opacity": {
569
+ "type": "number",
570
+ "exclusiveMinimum": 0,
571
+ "maximum": 1
572
+ },
573
+ "units": {
574
+ "const": "normalized"
575
+ },
576
+ "height": {
577
+ "type": "number",
578
+ "exclusiveMinimum": 0,
579
+ "maximum": 1
580
+ }
581
+ },
582
+ "required": [
583
+ "color",
584
+ "opacity",
585
+ "units",
586
+ "height"
587
+ ]
588
+ }
589
+ },
590
+ "required": [
591
+ "color",
592
+ "opacity",
593
+ "padding"
594
+ ]
595
+ },
596
+ "at": {
597
+ "type": "object",
598
+ "additionalProperties": false,
599
+ "properties": {
600
+ "segment": {
601
+ "type": "string",
602
+ "pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$"
603
+ },
604
+ "phrase": {
605
+ "type": "string",
606
+ "minLength": 1
607
+ },
608
+ "occurrence": {
609
+ "type": "integer",
610
+ "minimum": 1
611
+ },
612
+ "boundary": {
613
+ "enum": [
614
+ "start",
615
+ "end"
616
+ ]
617
+ },
618
+ "offset_ms": {
619
+ "type": "number"
620
+ }
621
+ },
622
+ "required": [
623
+ "segment",
624
+ "phrase",
625
+ "boundary",
626
+ "offset_ms"
627
+ ]
628
+ },
629
+ "duration_ms": {
630
+ "type": "number",
631
+ "exclusiveMinimum": 0
632
+ }
633
+ },
634
+ "required": [
635
+ "id",
636
+ "scene",
637
+ "target",
638
+ "effect",
639
+ "appearance",
640
+ "at",
641
+ "duration_ms"
642
+ ]
643
+ },
644
+ {
645
+ "type": "object",
646
+ "additionalProperties": false,
647
+ "properties": {
648
+ "id": {
649
+ "type": "string",
650
+ "pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$"
651
+ },
652
+ "scene": {
653
+ "type": "string",
654
+ "pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$"
655
+ },
656
+ "target": {
657
+ "oneOf": [
658
+ {
659
+ "type": "object",
660
+ "additionalProperties": false,
661
+ "properties": {
662
+ "type": {
663
+ "const": "region"
664
+ },
665
+ "units": {
666
+ "const": "normalized"
667
+ },
668
+ "x": {
669
+ "type": "number",
670
+ "minimum": 0,
671
+ "maximum": 1
672
+ },
673
+ "y": {
674
+ "type": "number",
675
+ "minimum": 0,
676
+ "maximum": 1
677
+ },
678
+ "width": {
679
+ "type": "number",
680
+ "exclusiveMinimum": 0,
681
+ "maximum": 1
682
+ },
683
+ "height": {
684
+ "type": "number",
685
+ "exclusiveMinimum": 0,
686
+ "maximum": 1
687
+ }
688
+ },
689
+ "required": [
690
+ "type",
691
+ "units",
692
+ "x",
693
+ "y",
694
+ "width",
695
+ "height"
696
+ ]
697
+ },
698
+ {
699
+ "type": "object",
700
+ "additionalProperties": false,
701
+ "properties": {
702
+ "type": {
703
+ "const": "element"
704
+ },
705
+ "selector": {
706
+ "type": "string",
707
+ "minLength": 1
708
+ }
709
+ },
710
+ "required": [
711
+ "type",
712
+ "selector"
713
+ ]
714
+ },
715
+ {
716
+ "type": "object",
717
+ "additionalProperties": false,
718
+ "properties": {
719
+ "type": {
720
+ "const": "shape"
721
+ },
722
+ "id": {
723
+ "type": "integer",
724
+ "minimum": 1
725
+ }
726
+ },
727
+ "required": [
728
+ "type",
729
+ "id"
730
+ ]
731
+ }
732
+ ]
733
+ },
734
+ "effect": {
735
+ "const": "underline"
736
+ },
737
+ "appearance": {
738
+ "type": "object",
739
+ "additionalProperties": false,
740
+ "properties": {
741
+ "color": {
742
+ "type": "string",
743
+ "pattern": "^#[0-9a-fA-F]{6}$"
744
+ },
745
+ "opacity": {
746
+ "type": "number",
747
+ "exclusiveMinimum": 0,
748
+ "maximum": 1
749
+ },
750
+ "blend": {
751
+ "enum": [
752
+ "source-over",
753
+ "darken"
754
+ ]
755
+ },
756
+ "style": {
757
+ "enum": [
758
+ "solid",
759
+ "dashed"
760
+ ]
761
+ },
762
+ "units": {
763
+ "const": "normalized"
764
+ },
765
+ "width": {
766
+ "type": "number",
767
+ "exclusiveMinimum": 0,
768
+ "maximum": 1
769
+ },
770
+ "offset": {
771
+ "type": "number",
772
+ "minimum": -1,
773
+ "maximum": 1
774
+ },
775
+ "padding_x": {
776
+ "type": "number",
777
+ "minimum": 0,
778
+ "maximum": 1
779
+ }
780
+ },
781
+ "required": [
782
+ "color",
783
+ "opacity",
784
+ "units",
785
+ "width"
786
+ ]
787
+ },
788
+ "motion": {
789
+ "type": "object",
790
+ "additionalProperties": false,
791
+ "properties": {
792
+ "type": {
793
+ "const": "wipe"
794
+ },
795
+ "in_ms": {
796
+ "type": "number",
797
+ "minimum": 0
798
+ },
799
+ "out_ms": {
800
+ "type": "number",
801
+ "minimum": 0
802
+ }
803
+ },
804
+ "required": [
805
+ "type"
806
+ ]
807
+ },
808
+ "at": {
809
+ "type": "object",
810
+ "additionalProperties": false,
811
+ "properties": {
812
+ "segment": {
813
+ "type": "string",
814
+ "pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$"
815
+ },
816
+ "phrase": {
817
+ "type": "string",
818
+ "minLength": 1
819
+ },
820
+ "occurrence": {
821
+ "type": "integer",
822
+ "minimum": 1
823
+ },
824
+ "boundary": {
825
+ "enum": [
826
+ "start",
827
+ "end"
828
+ ]
829
+ },
830
+ "offset_ms": {
831
+ "type": "number"
832
+ }
833
+ },
834
+ "required": [
835
+ "segment",
836
+ "phrase",
837
+ "boundary",
838
+ "offset_ms"
839
+ ]
840
+ },
841
+ "duration_ms": {
842
+ "type": "number",
843
+ "exclusiveMinimum": 0
844
+ }
845
+ },
846
+ "required": [
847
+ "id",
848
+ "scene",
849
+ "target",
850
+ "effect",
851
+ "appearance",
852
+ "at",
853
+ "duration_ms"
854
+ ]
855
+ }
856
+ ]
857
+ }
858
+ },
859
+ "overlays": {
860
+ "type": "array",
861
+ "items": {
862
+ "type": "object",
863
+ "additionalProperties": false,
864
+ "properties": {
865
+ "id": {
866
+ "type": "string",
867
+ "pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$"
868
+ },
869
+ "src": {
870
+ "type": "string",
871
+ "minLength": 1
872
+ },
873
+ "box": {
874
+ "type": "object",
875
+ "additionalProperties": false,
876
+ "properties": {
877
+ "x": {
878
+ "type": "number",
879
+ "minimum": 0,
880
+ "maximum": 1
881
+ },
882
+ "y": {
883
+ "type": "number",
884
+ "minimum": 0,
885
+ "maximum": 1
886
+ },
887
+ "width": {
888
+ "type": "number",
889
+ "exclusiveMinimum": 0,
890
+ "maximum": 1
891
+ },
892
+ "height": {
893
+ "type": "number",
894
+ "exclusiveMinimum": 0,
895
+ "maximum": 1
896
+ }
897
+ },
898
+ "required": [
899
+ "x",
900
+ "y",
901
+ "width",
902
+ "height"
903
+ ]
904
+ },
905
+ "opacity": {
906
+ "type": "number",
907
+ "minimum": 0,
908
+ "maximum": 1
909
+ },
910
+ "scene": {
911
+ "type": "string",
912
+ "pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$"
913
+ },
914
+ "hide_in_scenes": {
915
+ "type": "array",
916
+ "items": {
917
+ "type": "string",
918
+ "pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$"
919
+ },
920
+ "uniqueItems": true,
921
+ "minItems": 1
922
+ },
923
+ "visible": {
924
+ "type": "array",
925
+ "items": {
926
+ "type": "object",
927
+ "additionalProperties": false,
928
+ "properties": {
929
+ "start": {
930
+ "anyOf": [
931
+ {
932
+ "type": "number",
933
+ "minimum": 0
934
+ },
935
+ {
936
+ "$ref": "#/properties/cues/items/properties/at"
937
+ }
938
+ ]
939
+ },
940
+ "end": {
941
+ "anyOf": [
942
+ {
943
+ "type": "number",
944
+ "minimum": 0
945
+ },
946
+ {
947
+ "$ref": "#/properties/cues/items/properties/at"
948
+ }
949
+ ]
950
+ },
951
+ "fade_in_ms": {
952
+ "type": "number",
953
+ "minimum": 0
954
+ },
955
+ "fade_out_ms": {
956
+ "type": "number",
957
+ "minimum": 0
958
+ }
959
+ },
960
+ "required": [
961
+ "start",
962
+ "end"
963
+ ]
964
+ },
965
+ "minItems": 1
966
+ }
967
+ },
968
+ "required": [
969
+ "id",
970
+ "src",
971
+ "box",
972
+ "opacity"
973
+ ]
974
+ }
450
975
  }
451
976
  },
452
977
  "required": [
453
978
  "version",
454
979
  "deck",
455
- "output",
456
980
  "media",
457
981
  "narration",
458
982
  "scenes",
459
- "cues"
983
+ "cues",
984
+ "annotations"
460
985
  ]
461
986
  }
@@ -1,15 +1,17 @@
1
1
  ---
2
2
  name: slidevideo
3
- description: Draft, explain, review and revise slidevideo.yaml storyboards for existing Slidev or PowerPoint presentations, then operate the SlideVideo CLI to produce narrated videos. Use for narration, reveals, phrase cues, marker highlights, image overlays, pauses, media, voice settings and production feedback. Creating or redesigning the input deck is outside this skill.
3
+ description: Draft, explain, review, and revise slidevideo.yaml storyboards for Slidev or PowerPoint presentations, create or adapt SlideVideo-compatible slides when requested, and operate the SlideVideo CLI to produce narrated videos. Use for narration, reveals, phrase cues, marker highlights, underlines, image overlays, pauses, media, voice settings, deck compatibility, and production feedback.
4
4
  ---
5
5
 
6
6
  # Author and produce a SlideVideo
7
7
 
8
- Own the storyboard and the workflow from an existing presentation to a narrated MP4. Treat `slidevideo.yaml` as the creator's editable production intent. The CLI generates speech, alignment, schedules, captures and assembly artifacts from that intent.
8
+ Own the storyboard and the workflow from a presentation to a narrated MP4. Treat `slidevideo.yaml` as the creator's editable production intent. The CLI generates speech, alignment, schedules, captures and assembly artifacts from that intent.
9
9
 
10
- Work in the folder containing the creator's presentation. The installed CLI supplies this skill and its references offline. Use `slidevideo skill --json` for the installed Markdown file's path and contents. Resolve relative links from that file.
10
+ Work in the folder containing the creator's presentation. The installed CLI supplies this skill and its references offline. Run `slidevideo skill --install` to link the skill into `~/.agents/skills/slidevideo`, plus `~/.claude/skills/slidevideo` when Claude Code is present, or add `--project` to link it in the current project. Use `slidevideo skill --json` for the installed Markdown file's path and contents, and resolve relative links from that file.
11
11
 
12
- Run `slidevideo skill storyboard` for the [storyboard reference](references/storyboard.md) when drafting or revising YAML. It covers versions 1 and 2, timing, marker highlights, image overlays, voice options and presentation limits. The bundled [version 1 schema](../../schemas/storyboard.v1.json) and [version 2 schema](../../schemas/storyboard.v2.json) define the fields. Use `slidevideo validate` to check the draft against the actual deck.
12
+ Run `slidevideo skill storyboard` for the [storyboard reference](references/storyboard.md) when drafting or revising YAML. It covers timing, marker highlights, underline annotations, image overlays, voice options, and presentation limits. The bundled [storyboard schema](../../schemas/storyboard.v1.json) defines the fields. Use `slidevideo validate` to check the draft against the actual deck.
13
+
14
+ Run `slidevideo skill decks` for the [deck compatibility reference](references/decks.md) when creating, adapting, or troubleshooting `slides.md` or `.pptx` presentations.
13
15
 
14
16
  Run `slidevideo skill production` for the [production workflow](references/production.md) when setting up, recording or diagnosing a video. Start a new storyboard from the [minimal example](references/storyboard.md#minimal-authored-example) and use the actual slide names from the supplied presentation.
15
17
 
@@ -17,9 +19,9 @@ Run `slidevideo skill production` for the [production workflow](references/produ
17
19
 
18
20
  Read the supplied deck, existing storyboard, brief and supporting material. Identify the intended audience, narration language, tone, length and voice from the request. Ask only for missing information that affects a useful draft. Keep reasonable draft assumptions visible for review.
19
21
 
20
- Inspect actual slide targets, reveal steps, effect durations and embedded-media names using the existing adapter inspection or an available presentation reader. For Slidev, account for imports and the effective slide order. For PowerPoint, use native slide names or actual SlideID aliases and video Shape.Name values. Do not invent targets or claim unknown animation bounds are verified.
22
+ Inspect actual slide targets, reveal steps, effect durations, and embedded-media names with `slidevideo inspect --deck <file> --json` before a storyboard exists, or `slidevideo inspect --storyboard <file> --json` when revising one. For Slidev, account for imports and the effective slide order. For PowerPoint, use native slide names or actual SlideID aliases, native click-group durations, and video `Shape.Name` values. Do not invent targets or claim unknown animation bounds are verified.
21
23
 
22
- Creating, redesigning or repairing the input `.md` or `.pptx` presentation is outside this skill. Preserve the supplied deck. If requested narration or actions need a deck change, explain the specific dependency and let the creator supply an updated deck or request separate deck-authoring work. Do not regenerate a supplied deck with an example authoring script.
24
+ Preserve an existing supplied `.md` or `.pptx` deck by default so storyboard work never rewrites the creator's slides unprompted. Create or edit slides when the creator asks to build a deck from notes, screenshots, or clips, requests slide changes, or approves adding stable `name` fields or element `id` attributes needed by requested storyboard actions or `annotations`. Follow the [deck compatibility reference](references/decks.md) when creating or editing slides, and never overwrite a supplied deck with an unrelated example script.
23
25
 
24
26
  ## Draft the storyboard
25
27
 
@@ -29,13 +31,13 @@ Write narration supported by the sources and appropriate for spoken delivery. Na
29
31
 
30
32
  Map the narrative to real slide and reveal targets. Choose sequential actions for ordered speech, holds and media. Choose phrase cues when a visual action should occur during speech. Account for native effect duration and complete media playback. Distinguish an estimated target length from the duration that actual synthesized speech will establish.
31
33
 
32
- Use stable IDs and paths relative to the storyboard. Include all required root fields, even when their lists are empty. Use Edge TTS for new drafts unless the creator chooses another provider. Preserve an existing, explicitly selected voice when revising that production.
34
+ Use stable IDs and paths relative to the storyboard. Include all required root fields, even when their lists are empty. Output dimensions and frame rate belong on the CLI with `--width`, `--height`, and `--fps`, defaulting to `1920` by `1080` at `30 fps`, not in `slidevideo.yaml`. Use Edge TTS for new drafts unless the creator chooses another provider. Preserve an existing, explicitly selected voice when revising that production.
33
35
 
34
36
  ## Review and revise with the creator
35
37
 
36
- For marker highlights, run `slidevideo inspect --storyboard <file> --json` to discover existing audience-slide selectors or native shape IDs. Inspect the deck and returned visibility/click information before choosing a target. Regions need no element metadata. Never invent an element ID, edit the deck to create a target, infer words inside an image or claim whole-shape bounds establish word geometry.
38
+ For marker highlights, run `slidevideo inspect --deck <file> --json` or `slidevideo inspect --storyboard <file> --json` to discover existing audience-slide selectors or native shape IDs. Inspect the deck and returned visibility/click information before choosing a target. Regions need no element metadata. Never reference a nonexistent element ID in `slidevideo.yaml`, infer words inside an image, or claim whole-shape bounds establish word geometry. When a Slidev slide lacks a stable selector for a requested highlight and normalized regions are a poor fit, add a targeted `id` attribute only when slide creation or editing is part of the request or approved by the creator.
37
39
 
38
- Use version 2 and its `annotations` array for highlights. The [marker example and target fields](references/storyboard.md#version-2-marker-highlights) cover Slidev and PowerPoint. Bind each highlight to an existing narration phrase and scene, with a positive duration inside one settled slide visit and reveal state. Choose normalized regions, Slidev element selectors or native PowerPoint shape IDs as appropriate. Color, opacity, normalized x/y padding, optional `blend` and optional `bottom_border` belong to `appearance`. Other effects and moving targets are unsupported.
40
+ Use the `annotations` array for `highlight` and `underline` effects. The [marker reference](references/storyboard.md#marker-highlights) and [underline reference](references/storyboard.md#underline-annotations) cover Slidev and PowerPoint. Bind each annotation to an existing narration phrase and scene, with a positive duration inside one settled slide visit and reveal state. Choose normalized regions, Slidev element selectors, or native PowerPoint shape IDs as appropriate. Keep highlight padding and optional `bottom_border` under `highlight`, and use `underline` for standalone solid or dashed strokes with normalized `width`, optional `offset` and `padding_x`, and optional `motion: { type: wipe }`. Moving targets and unimplemented effects are unsupported.
39
41
 
40
42
  Add, change or remove only the requested annotation and preserve unrelated annotations, narration, scene actions, media, IDs and settings. A new video after an annotation-only edit needs a new run and can reuse matching speech. Validate the draft through the real CLI. Required phrase alignment and actual target geometry are checked during resolution and capture. Highlights are composited into the final MP4, so ordinary deck playback and the raw recording remain unannotated.
41
43