@lincyaw/skills 1.0.0-rc.2 → 1.0.0-rc.21

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 (38) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -3
  3. package/skills/index.json +9 -18
  4. package/skills/presmium-animate/SKILL.md +4 -2
  5. package/skills/presmium-animate/gallery/algorithms/lecture.json +171 -115
  6. package/skills/presmium-animate/gallery/anime/scenes/kmeans-seeded.ts +2 -1
  7. package/skills/presmium-animate/gallery/craft/lecture.json +109 -57
  8. package/skills/presmium-animate/gallery/data/lecture.json +711 -175
  9. package/skills/presmium-animate/gallery/emphasis/lecture.json +321 -79
  10. package/skills/presmium-animate/gallery/films/lecture.json +36 -10
  11. package/skills/presmium-animate/gallery/lengths/lecture.json +23 -88
  12. package/skills/presmium-animate/gallery/math-ml/lecture.json +238 -159
  13. package/skills/presmium-animate/gallery/paths-3d/lecture.json +74 -64
  14. package/skills/presmium-animate/gallery/product/lecture.json +27 -3
  15. package/skills/presmium-animate/gallery/story/lecture.json +23 -90
  16. package/skills/presmium-animate/gallery/structure/lecture.json +104 -65
  17. package/skills/presmium-animate/gallery/text/lecture.json +115 -63
  18. package/skills/presmium-animate/gallery/timeline/lecture.json +106 -187
  19. package/skills/presmium-animate/gallery/timeline/scenes/bubble.ts +1 -1
  20. package/skills/presmium-animate/gallery/transitions/lecture.json +103 -52
  21. package/skills/presmium-animate/references/lengths.md +1 -1
  22. package/skills/presmium-animate/references/libraries.md +12 -6
  23. package/skills/presmium-animate/references/procedural.md +1 -0
  24. package/skills/presmium-animate/references/story.md +21 -7
  25. package/skills/presmium-animate/references/team.md +176 -0
  26. package/skills/presmium-author/SKILL.md +53 -19
  27. package/skills/presmium-author/references/assistance.md +3 -1
  28. package/skills/{presmium-present → presmium-author}/references/classroom.md +2 -2
  29. package/skills/presmium-author/references/document.md +1 -1
  30. package/skills/{presmium-present → presmium-author}/references/lecture.md +3 -1
  31. package/skills/presmium-author/references/publishing.md +161 -13
  32. package/skills/presmium-author/references/writing.md +170 -7
  33. package/src/cli.ts +4 -4
  34. package/src/install.ts +42 -5
  35. package/src/messages.ts +5 -5
  36. package/src/resources.ts +5 -4
  37. package/skills/presmium-present/SKILL.md +0 -35
  38. package/skills/presmium-present/references/delivery.md +0 -122
@@ -223,7 +223,7 @@
223
223
  "children": [
224
224
  {
225
225
  "type": "text",
226
- "text": "每一节用同一个场景:一排圆点,每一步亮起一个,所以看画面就知道走到了第几步。在放映视图中逐步前进,演讲者窗口显示每一步对应的讲解;给文稿加上 "
226
+ "text": "讲解和动画按步骤对齐:每一步开始时,这一步的讲解和动画同时开始,这一步持续到两者中较晚结束的一个。下面每一节用同一个场景演示一种对齐方式:一排圆点,每一步亮起一个,看亮到第几个点就知道走到了第几步。在放映视图中逐步前进时,演讲者窗口显示每一步的讲解;给文稿加上 "
227
227
  },
228
228
  {
229
229
  "type": "text",
@@ -236,7 +236,7 @@
236
236
  },
237
237
  {
238
238
  "type": "text",
239
- "text": " 渲染端与语音后构建,"
239
+ "text": " 渲染端并生成配音后构建,"
240
240
  },
241
241
  {
242
242
  "type": "text",
@@ -274,7 +274,7 @@
274
274
  "children": [
275
275
  {
276
276
  "type": "text",
277
- "text": "第一步,第一个点亮起。讲解的第一个字一出来,这一步的动画就开始演。"
277
+ "text": "最常用的写法是每一步挂一段讲解。第一步的讲解一开口,第一个点的动画就开始播放。"
278
278
  }
279
279
  ]
280
280
  }
@@ -290,7 +290,7 @@
290
290
  "children": [
291
291
  {
292
292
  "type": "text",
293
- "text": "第二步,第二个点。块后面的第二段讲解属于第二步。"
293
+ "text": "第二步挂第二段讲解,第二个点随它亮起。"
294
294
  }
295
295
  ]
296
296
  }
@@ -306,7 +306,7 @@
306
306
  "children": [
307
307
  {
308
308
  "type": "text",
309
- "text": "第三步,第三个点。讲解比动画长,动画演完就停在那里等着。"
309
+ "text": "第三步的讲解比动画长:第三个点亮完后停住,等讲解说完再进入下一步。"
310
310
  }
311
311
  ]
312
312
  }
@@ -331,7 +331,7 @@
331
331
  "children": [
332
332
  {
333
333
  "type": "text",
334
- "text": "第一个点。"
334
+ "text": "步骤多于讲解时,没有讲解的步骤照常播放。前两步各有一段讲解,各亮起一个点。"
335
335
  }
336
336
  ]
337
337
  }
@@ -347,7 +347,7 @@
347
347
  "children": [
348
348
  {
349
349
  "type": "text",
350
- "text": "第二个点。下一步没有讲解,只停到动画演完。"
350
+ "text": "第三步没有讲解:第三个点亮起,动画播完就进入下一步。"
351
351
  }
352
352
  ]
353
353
  }
@@ -372,7 +372,20 @@
372
372
  "children": [
373
373
  {
374
374
  "type": "text",
375
- "text": "第一个点。"
375
+ "text": "一步可以挂多段讲解,按步骤的 "
376
+ },
377
+ {
378
+ "type": "text",
379
+ "text": "narrationIds",
380
+ "marks": [
381
+ {
382
+ "type": "code"
383
+ }
384
+ ]
385
+ },
386
+ {
387
+ "type": "text",
388
+ "text": " 顺序依次说完。第一步挂一段讲解,亮起第一个点。"
376
389
  }
377
390
  ]
378
391
  }
@@ -388,7 +401,7 @@
388
401
  "children": [
389
402
  {
390
403
  "type": "text",
391
- "text": "第二个点。"
404
+ "text": "第二步挂两段讲解,第二个点在第一段开始时亮起。"
392
405
  }
393
406
  ]
394
407
  }
@@ -404,7 +417,7 @@
404
417
  "children": [
405
418
  {
406
419
  "type": "text",
407
- "text": "这一段已经超出了步数,也算在最后一步,画面不再变化。"
420
+ "text": "第二段讲解期间画面不再变化,适合放不需要新画面的补充说明。"
408
421
  }
409
422
  ]
410
423
  }
@@ -429,7 +442,7 @@
429
442
  "children": [
430
443
  {
431
444
  "type": "text",
432
- "text": "很短的一句。"
445
+ "text": "动画比讲解长时,这一步持续到动画播完。这里每个点用 3 秒亮起,每步的讲解只有一句短话。"
433
446
  }
434
447
  ]
435
448
  }
@@ -445,7 +458,7 @@
445
458
  "children": [
446
459
  {
447
460
  "type": "text",
448
- "text": "又一句。"
461
+ "text": "第二步也是讲解先说完,画面继续播放,直到第二个点完全亮起。"
449
462
  }
450
463
  ]
451
464
  }
@@ -470,49 +483,20 @@
470
483
  "children": [
471
484
  {
472
485
  "type": "text",
473
- "text": "先看第一个点,"
474
- },
475
- {
476
- "type": "extension",
477
- "kind": "presmium.mdast",
478
- "schemaVersion": 1,
479
- "data": {
480
- "node": {
481
- "type": "presmiumRole",
482
- "plugin": "presmium.lecture",
483
- "name": "cue",
484
- "options": {
485
- "value": "next"
486
- },
487
- "children": []
488
- }
489
- },
490
- "fallback": ""
486
+ "text": "一段讲解之内也可以推进步骤:讲解中放一个 "
491
487
  },
492
488
  {
493
489
  "type": "text",
494
- "text": " 说到这里第二个亮起,"
495
- },
496
- {
497
- "type": "extension",
498
- "kind": "presmium.mdast",
499
- "schemaVersion": 1,
500
- "data": {
501
- "node": {
502
- "type": "presmiumRole",
503
- "plugin": "presmium.lecture",
504
- "name": "cue",
505
- "options": {
506
- "value": "next"
507
- },
508
- "children": []
490
+ "text": "next",
491
+ "marks": [
492
+ {
493
+ "type": "code"
509
494
  }
510
- },
511
- "fallback": ""
495
+ ]
512
496
  },
513
497
  {
514
498
  "type": "text",
515
- "text": " 说到这里第三个也亮了。"
499
+ "text": " 提示标记,语音读到标记处就进入下一步。这里一句讲解带两个标记,三个点在这一句话里依次亮起,后两步本身没有讲解。"
516
500
  }
517
501
  ]
518
502
  }
@@ -537,28 +521,16 @@
537
521
  "children": [
538
522
  {
539
523
  "type": "text",
540
- "text": "马上 "
541
- },
542
- {
543
- "type": "extension",
544
- "kind": "presmium.mdast",
545
- "schemaVersion": 1,
546
- "data": {
547
- "node": {
548
- "type": "presmiumRole",
549
- "plugin": "presmium.lecture",
550
- "name": "cue",
551
- "options": {
552
- "value": "next"
553
- },
554
- "children": []
524
+ "text": "next",
525
+ "marks": [
526
+ {
527
+ "type": "code"
555
528
  }
556
- },
557
- "fallback": ""
529
+ ]
558
530
  },
559
531
  {
560
532
  "type": "text",
561
- "text": " 推进,构建会在这一段给出警告。"
533
+ "text": " 提示标记放得太早,上一步的动画没播完就被打断。这里每个点要 2.5 秒才亮完,讲解一开头就推进,构建会对这一段给出警告。"
562
534
  }
563
535
  ]
564
536
  }
@@ -583,7 +555,7 @@
583
555
  "children": [
584
556
  {
585
557
  "type": "text",
586
- "text": "前一个场景的第一步。"
558
+ "text": "一节里放两个场景时,后一个场景在前两步不可见,等前一个演完才出现。第一步,前一个场景亮起第一个点。"
587
559
  }
588
560
  ]
589
561
  }
@@ -599,7 +571,7 @@
599
571
  "children": [
600
572
  {
601
573
  "type": "text",
602
- "text": "前一个场景的第二步。"
574
+ "text": "第二步,前一个场景亮起第二个点。"
603
575
  }
604
576
  ]
605
577
  }
@@ -624,7 +596,7 @@
624
596
  "children": [
625
597
  {
626
598
  "type": "text",
627
- "text": "后一个场景的第一步。"
599
+ "text": "第三步,后一个场景出现并亮起第一个点,前一个场景停在最后的状态。"
628
600
  }
629
601
  ]
630
602
  }
@@ -640,7 +612,7 @@
640
612
  "children": [
641
613
  {
642
614
  "type": "text",
643
- "text": "后一个场景的第二步。"
615
+ "text": "第四步,后一个场景亮起第二个点。"
644
616
  }
645
617
  ]
646
618
  }
@@ -665,28 +637,29 @@
665
637
  "children": [
666
638
  {
667
639
  "type": "text",
668
- "text": "说完这半句,"
640
+ "text": "pause",
641
+ "marks": [
642
+ {
643
+ "type": "code"
644
+ }
645
+ ]
646
+ },
647
+ {
648
+ "type": "text",
649
+ "text": " 提示标记让语音在句中停顿,时长写在 "
669
650
  },
670
651
  {
671
- "type": "extension",
672
- "kind": "presmium.mdast",
673
- "schemaVersion": 1,
674
- "data": {
675
- "node": {
676
- "type": "presmiumRole",
677
- "plugin": "presmium.lecture",
678
- "name": "cue",
679
- "options": {
680
- "value": "pause 1s"
681
- },
682
- "children": []
652
+ "type": "text",
653
+ "text": "production.cueTimings",
654
+ "marks": [
655
+ {
656
+ "type": "code"
683
657
  }
684
- },
685
- "fallback": ""
658
+ ]
686
659
  },
687
660
  {
688
661
  "type": "text",
689
- "text": " 停一秒再说下半句。"
662
+ "text": ",这里是 1 秒。第一步的讲解说完半句,停一秒再说下半句。"
690
663
  }
691
664
  ]
692
665
  }
@@ -702,29 +675,16 @@
702
675
  "children": [
703
676
  {
704
677
  "type": "text",
705
- "text": "第二步,"
706
- },
707
- {
708
- "type": "extension",
709
- "kind": "presmium.mdast",
710
- "schemaVersion": 1,
711
- "data": {
712
- "node": {
713
- "type": "presmiumRole",
714
- "plugin": "presmium.lecture",
715
- "name": "cue",
716
- "options": {
717
- "to": "pause-scene",
718
- "value": "spot"
719
- },
720
- "children": []
678
+ "text": "spot",
679
+ "marks": [
680
+ {
681
+ "type": "code"
721
682
  }
722
- },
723
- "fallback": ""
683
+ ]
724
684
  },
725
685
  {
726
686
  "type": "text",
727
- "text": " 聚光落在这个场景上。"
687
+ "text": " 提示标记给目标加聚光:第二步的讲解读到标记处,聚光落在场景上。"
728
688
  }
729
689
  ]
730
690
  }
@@ -755,7 +715,20 @@
755
715
  "children": [
756
716
  {
757
717
  "type": "text",
758
- "text": "代码和场景放在同一节:场景占五步,讲解逐段对应,提示标记指向代码。先看这五个数。"
718
+ "text": "代码和场景可以在同一节里一起推进:场景占五步,每步一段讲解,"
719
+ },
720
+ {
721
+ "type": "text",
722
+ "text": "spot",
723
+ "marks": [
724
+ {
725
+ "type": "code"
726
+ }
727
+ ]
728
+ },
729
+ {
730
+ "type": "text",
731
+ "text": " 提示标记高亮当前的代码行。第一步展示待排序的五个数 5、2、4、1、3。"
759
732
  }
760
733
  ]
761
734
  }
@@ -771,30 +744,7 @@
771
744
  "children": [
772
745
  {
773
746
  "type": "text",
774
- "text": "第一次比较 5 和 2,"
775
- },
776
- {
777
- "type": "extension",
778
- "kind": "presmium.mdast",
779
- "schemaVersion": 1,
780
- "data": {
781
- "node": {
782
- "type": "presmiumRole",
783
- "plugin": "presmium.lecture",
784
- "name": "cue",
785
- "options": {
786
- "to": "sort-code",
787
- "lines": "3",
788
- "value": "spot"
789
- },
790
- "children": []
791
- }
792
- },
793
- "fallback": ""
794
- },
795
- {
796
- "type": "text",
797
- "text": " 这一行做比较。"
747
+ "text": "第二步比较 5 和 2,聚光落在做比较的第 3 行。"
798
748
  }
799
749
  ]
800
750
  }
@@ -810,30 +760,7 @@
810
760
  "children": [
811
761
  {
812
762
  "type": "text",
813
- "text": "5 比 2 大,"
814
- },
815
- {
816
- "type": "extension",
817
- "kind": "presmium.mdast",
818
- "schemaVersion": 1,
819
- "data": {
820
- "node": {
821
- "type": "presmiumRole",
822
- "plugin": "presmium.lecture",
823
- "name": "cue",
824
- "options": {
825
- "to": "sort-code",
826
- "lines": "4",
827
- "value": "spot"
828
- },
829
- "children": []
830
- }
831
- },
832
- "fallback": ""
833
- },
834
- {
835
- "type": "text",
836
- "text": " 这一行交换它们。"
763
+ "text": "第三步,5 比 2 大,聚光移到做交换的第 4 行,两个数交换位置。"
837
764
  }
838
765
  ]
839
766
  }
@@ -849,7 +776,7 @@
849
776
  "children": [
850
777
  {
851
778
  "type": "text",
852
- "text": "再比较 5 和 4,又是前面大,再交换。"
779
+ "text": "第四步比较 5 和 4,前面的数仍然更大,再交换一次。"
853
780
  }
854
781
  ]
855
782
  }
@@ -865,28 +792,20 @@
865
792
  "children": [
866
793
  {
867
794
  "type": "text",
868
- "text": "5 继续往后,越过 1 和 3,"
795
+ "text": "第五步,5 越过 1 和 3 停在末尾,这一趟冒泡结束;结尾前的 "
869
796
  },
870
797
  {
871
- "type": "extension",
872
- "kind": "presmium.mdast",
873
- "schemaVersion": 1,
874
- "data": {
875
- "node": {
876
- "type": "presmiumRole",
877
- "plugin": "presmium.lecture",
878
- "name": "cue",
879
- "options": {
880
- "value": "pause 300ms"
881
- },
882
- "children": []
798
+ "type": "text",
799
+ "text": "pause",
800
+ "marks": [
801
+ {
802
+ "type": "code"
883
803
  }
884
- },
885
- "fallback": ""
804
+ ]
886
805
  },
887
806
  {
888
807
  "type": "text",
889
- "text": " 停在最后,这一趟结束。"
808
+ "text": " 标记让讲解停顿 0.3 秒。"
890
809
  }
891
810
  ]
892
811
  }
@@ -1611,7 +1530,7 @@
1611
1530
  "content": [
1612
1531
  {
1613
1532
  "type": "text",
1614
- "text": "每一节用同一个场景:一排圆点,每一步亮起一个,所以看画面就知道走到了第几步。在放映视图中逐步前进,演讲者窗口显示每一步对应的讲解;给文稿加上 lecture 渲染端与语音后构建,dist/lecture/script/track.json 列出每一步开始的时刻。"
1533
+ "text": "每一节都用同一个场景:一排圆点,每一步亮起一个。看亮到第几个点,就知道走到了第几步。"
1615
1534
  }
1616
1535
  ]
1617
1536
  },
@@ -1620,7 +1539,7 @@
1620
1539
  "content": [
1621
1540
  {
1622
1541
  "type": "text",
1623
- "text": "第一步,第一个点亮起。讲解的第一个字一出来,这一步的动画就开始演。"
1542
+ "text": "第一步,第一个点亮起。讲解一开口,这一步的动画就开始播放。"
1624
1543
  }
1625
1544
  ]
1626
1545
  },
@@ -1629,7 +1548,7 @@
1629
1548
  "content": [
1630
1549
  {
1631
1550
  "type": "text",
1632
- "text": "第二步,第二个点。块后面的第二段讲解属于第二步。"
1551
+ "text": "第二步,第二段讲解开始,第二个点跟着亮起。"
1633
1552
  }
1634
1553
  ]
1635
1554
  },
@@ -1638,7 +1557,7 @@
1638
1557
  "content": [
1639
1558
  {
1640
1559
  "type": "text",
1641
- "text": "第三步,第三个点。讲解比动画长,动画演完就停在那里等着。"
1560
+ "text": "第三步,第三个点亮起。这段讲解比动画长,动画播完就停住,等讲解说完。"
1642
1561
  }
1643
1562
  ]
1644
1563
  },
@@ -1647,7 +1566,7 @@
1647
1566
  "content": [
1648
1567
  {
1649
1568
  "type": "text",
1650
- "text": "第一个点。"
1569
+ "text": "第一步,第一个点亮起。"
1651
1570
  }
1652
1571
  ]
1653
1572
  },
@@ -1656,7 +1575,7 @@
1656
1575
  "content": [
1657
1576
  {
1658
1577
  "type": "text",
1659
- "text": "第二个点。下一步没有讲解,只停到动画演完。"
1578
+ "text": "第二步,第二个点亮起。下一步没有讲解,动画播完就继续。"
1660
1579
  }
1661
1580
  ]
1662
1581
  },
@@ -1665,7 +1584,7 @@
1665
1584
  "content": [
1666
1585
  {
1667
1586
  "type": "text",
1668
- "text": "第一个点。"
1587
+ "text": "第一步,第一个点亮起。"
1669
1588
  }
1670
1589
  ]
1671
1590
  },
@@ -1674,7 +1593,7 @@
1674
1593
  "content": [
1675
1594
  {
1676
1595
  "type": "text",
1677
- "text": "第二个点。"
1596
+ "text": "第二步,第二个点亮起。"
1678
1597
  }
1679
1598
  ]
1680
1599
  },
@@ -1683,7 +1602,7 @@
1683
1602
  "content": [
1684
1603
  {
1685
1604
  "type": "text",
1686
- "text": "这一段已经超出了步数,也算在最后一步,画面不再变化。"
1605
+ "text": "这一段也属于第二步,画面不再变化。"
1687
1606
  }
1688
1607
  ]
1689
1608
  },
@@ -1710,7 +1629,7 @@
1710
1629
  "content": [
1711
1630
  {
1712
1631
  "type": "text",
1713
- "text": "先看第一个点,"
1632
+ "text": "先看第一个点。"
1714
1633
  },
1715
1634
  {
1716
1635
  "id": "cue-cue-next-1",
@@ -1719,7 +1638,7 @@
1719
1638
  },
1720
1639
  {
1721
1640
  "type": "text",
1722
- "text": " 说到这里第二个亮起,"
1641
+ "text": "说到这里,第二个点亮起。"
1723
1642
  },
1724
1643
  {
1725
1644
  "id": "cue-cue-next-3",
@@ -1728,7 +1647,7 @@
1728
1647
  },
1729
1648
  {
1730
1649
  "type": "text",
1731
- "text": " 说到这里第三个也亮了。"
1650
+ "text": "说到这里,第三个也亮了。"
1732
1651
  }
1733
1652
  ]
1734
1653
  },
@@ -1737,7 +1656,7 @@
1737
1656
  "content": [
1738
1657
  {
1739
1658
  "type": "text",
1740
- "text": "马上 "
1659
+ "text": "马上"
1741
1660
  },
1742
1661
  {
1743
1662
  "id": "cue-early-1",
@@ -1746,7 +1665,7 @@
1746
1665
  },
1747
1666
  {
1748
1667
  "type": "text",
1749
- "text": " 推进,构建会在这一段给出警告。"
1668
+ "text": "推进,构建会对这一段给出警告。"
1750
1669
  }
1751
1670
  ]
1752
1671
  },
@@ -1800,7 +1719,7 @@
1800
1719
  },
1801
1720
  {
1802
1721
  "type": "text",
1803
- "text": " 停一秒再说下半句。"
1722
+ "text": "停一秒,再说下半句。"
1804
1723
  }
1805
1724
  ]
1806
1725
  },
@@ -1830,7 +1749,7 @@
1830
1749
  "content": [
1831
1750
  {
1832
1751
  "type": "text",
1833
- "text": "代码和场景放在同一节:场景占五步,讲解逐段对应,提示标记指向代码。先看这五个数。"
1752
+ "text": "代码和场景放在同一节,场景占五步,每步一段讲解。先看这五个数。"
1834
1753
  }
1835
1754
  ]
1836
1755
  },
@@ -33,6 +33,6 @@ export default gsapScene(({ root, gsap, at, color }) => {
33
33
  tl.to(bar(1), { left: slot(2), duration: 0.5 }, s(4))
34
34
  tl.to(bar(5), { left: slot(4), duration: 0.5 }, s(4) + 0.6)
35
35
  tl.to(bar(3), { left: slot(3), duration: 0.5 }, s(4) + 0.6)
36
- tl.to(bar(5), { backgroundColor: '#2e8b57', duration: 0.3 }, s(4) + 1.1)
36
+ tl.to(bar(5), { backgroundColor: color('ok'), duration: 0.3 }, s(4) + 1.1)
37
37
  return tl
38
38
  })