@almadar/std 16.241.0 → 16.243.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/behaviors/behaviors-registry.json +4650 -535
  2. package/behaviors/lolo/agent/atoms/std-agent-memory.lolo +38 -1
  3. package/behaviors/lolo/agent/atoms/std-agent-session.lolo +1074 -47
  4. package/behaviors/lolo/agent/atoms/std-agent-tool-loop.lolo +8 -7
  5. package/behaviors/lolo/agent/organisms/std-agent-assistant.lolo +56 -37
  6. package/behaviors/lolo/infra/atoms/std-page-open.lolo +59 -0
  7. package/behaviors/lolo/infra/atoms/std-page-search.lolo +136 -0
  8. package/behaviors/lolo/infra/atoms/std-page-treat.lolo +59 -0
  9. package/behaviors/lolo/infra/atoms/std-page-watch.lolo +88 -0
  10. package/behaviors/lolo/ui/core/atoms/std-book-reader.lolo +25 -1
  11. package/behaviors/lolo/ui/core/atoms/std-card-grid.lolo +9 -0
  12. package/behaviors/lolo/ui/core/atoms/std-doc-page.lolo +153 -0
  13. package/behaviors/lolo/ui/learning/atoms/std-learn-arrangement.lolo +124 -92
  14. package/behaviors/lolo/ui/learning/atoms/std-learn-classify.lolo +114 -55
  15. package/behaviors/lolo/ui/learning/atoms/std-learn-compare.lolo +40 -14
  16. package/behaviors/lolo/ui/learning/atoms/std-learn-coupled-sim.lolo +363 -123
  17. package/behaviors/lolo/ui/learning/atoms/std-learn-derivation.lolo +93 -48
  18. package/behaviors/lolo/ui/learning/atoms/std-learn-diagram.lolo +60 -28
  19. package/behaviors/lolo/ui/learning/atoms/std-learn-doser.lolo +193 -96
  20. package/behaviors/lolo/ui/learning/atoms/std-learn-estimate.lolo +75 -32
  21. package/behaviors/lolo/ui/learning/atoms/std-learn-goal-seek.lolo +142 -86
  22. package/behaviors/lolo/ui/learning/atoms/std-learn-grid-sim.lolo +266 -98
  23. package/behaviors/lolo/ui/learning/atoms/std-learn-hotspot.lolo +103 -65
  24. package/behaviors/lolo/ui/learning/atoms/std-learn-live-sim.lolo +223 -109
  25. package/behaviors/lolo/ui/learning/atoms/std-learn-measure.lolo +232 -64
  26. package/behaviors/lolo/ui/learning/atoms/std-learn-param-explorer.lolo +69 -29
  27. package/behaviors/lolo/ui/learning/atoms/std-learn-perturb.lolo +363 -123
  28. package/behaviors/lolo/ui/learning/atoms/std-learn-predict.lolo +73 -41
  29. package/behaviors/lolo/ui/learning/atoms/std-learn-sample-accumulator.lolo +96 -38
  30. package/behaviors/lolo/ui/learning/atoms/std-learn-sandbox.lolo +65 -45
  31. package/behaviors/lolo/ui/learning/atoms/std-learn-scatter-fit.lolo +243 -117
  32. package/behaviors/lolo/ui/learning/atoms/std-learn-scenario.lolo +76 -28
  33. package/behaviors/lolo/ui/learning/atoms/std-learn-sim-3d.lolo +228 -109
  34. package/behaviors/lolo/ui/learning/atoms/std-learn-speed-drill.lolo +95 -44
  35. package/behaviors/lolo/ui/learning/atoms/std-learn-stepper.lolo +199 -125
  36. package/behaviors/lolo/ui/learning/atoms/std-learn-tour-3d.lolo +92 -48
  37. package/behaviors/lolo/ui/learning/atoms/std-learn-trace-player.lolo +239 -78
  38. package/behaviors/lolo/ui/learning/atoms/std-learn-transport.lolo +147 -38
  39. package/behaviors/lolo/ui/learning/atoms/std-learn-tree.lolo +123 -58
  40. package/behaviors/lolo/ui/learning/atoms/ui-algo-graph-canvas.lolo +22 -0
  41. package/behaviors/lolo/ui/learning/atoms/ui-algorithm-canvas.lolo +26 -0
  42. package/behaviors/lolo/ui/learning/atoms/ui-biology-canvas.lolo +26 -0
  43. package/behaviors/lolo/ui/learning/atoms/ui-chemistry-canvas.lolo +27 -1
  44. package/behaviors/lolo/ui/learning/atoms/ui-learning-canvas.lolo +27 -1
  45. package/behaviors/lolo/ui/learning/atoms/ui-math-canvas.lolo +29 -9
  46. package/behaviors/lolo/ui/learning/atoms/ui-physics-canvas.lolo +26 -0
  47. package/behaviors/lolo-behavior-contracts.json +1 -1
  48. package/behaviors/registry/agent/atoms/std-agent-memory.orb +372 -2
  49. package/behaviors/registry/agent/atoms/std-agent-session.orb +4752 -348
  50. package/behaviors/registry/agent/atoms/std-agent-tool-loop.orb +54 -42
  51. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +356 -122
  52. package/behaviors/registry/factory-signatures.json +1 -1
  53. package/behaviors/registry/infra/atoms/std-page-open.orb +435 -0
  54. package/behaviors/registry/infra/atoms/std-page-search.orb +885 -0
  55. package/behaviors/registry/infra/atoms/std-page-treat.orb +494 -0
  56. package/behaviors/registry/infra/atoms/std-page-watch.orb +572 -0
  57. package/behaviors/registry/ui/core/atoms/std-book-reader.orb +119 -0
  58. package/behaviors/registry/ui/core/atoms/std-card-grid.orb +61 -0
  59. package/behaviors/registry/ui/core/atoms/std-doc-page.orb +594 -0
  60. package/behaviors/registry/ui/learning/atoms/std-learn-arrangement.orb +903 -369
  61. package/behaviors/registry/ui/learning/atoms/std-learn-classify.orb +1002 -232
  62. package/behaviors/registry/ui/learning/atoms/std-learn-compare.orb +253 -74
  63. package/behaviors/registry/ui/learning/atoms/std-learn-coupled-sim.orb +3624 -921
  64. package/behaviors/registry/ui/learning/atoms/std-learn-derivation.orb +685 -144
  65. package/behaviors/registry/ui/learning/atoms/std-learn-diagram.orb +404 -52
  66. package/behaviors/registry/ui/learning/atoms/std-learn-doser.orb +1787 -210
  67. package/behaviors/registry/ui/learning/atoms/std-learn-estimate.orb +699 -71
  68. package/behaviors/registry/ui/learning/atoms/std-learn-goal-seek.orb +1102 -578
  69. package/behaviors/registry/ui/learning/atoms/std-learn-grid-sim.orb +2760 -872
  70. package/behaviors/registry/ui/learning/atoms/std-learn-hotspot.orb +689 -152
  71. package/behaviors/registry/ui/learning/atoms/std-learn-live-sim.orb +1431 -633
  72. package/behaviors/registry/ui/learning/atoms/std-learn-measure.orb +2485 -512
  73. package/behaviors/registry/ui/learning/atoms/std-learn-param-explorer.orb +501 -197
  74. package/behaviors/registry/ui/learning/atoms/std-learn-perturb.orb +3642 -928
  75. package/behaviors/registry/ui/learning/atoms/std-learn-predict.orb +705 -125
  76. package/behaviors/registry/ui/learning/atoms/std-learn-sample-accumulator.orb +624 -114
  77. package/behaviors/registry/ui/learning/atoms/std-learn-sandbox.orb +405 -153
  78. package/behaviors/registry/ui/learning/atoms/std-learn-scatter-fit.orb +1911 -611
  79. package/behaviors/registry/ui/learning/atoms/std-learn-scenario.orb +436 -128
  80. package/behaviors/registry/ui/learning/atoms/std-learn-sim-3d.orb +2482 -485
  81. package/behaviors/registry/ui/learning/atoms/std-learn-speed-drill.orb +896 -192
  82. package/behaviors/registry/ui/learning/atoms/std-learn-stepper.orb +2001 -759
  83. package/behaviors/registry/ui/learning/atoms/std-learn-tour-3d.orb +734 -228
  84. package/behaviors/registry/ui/learning/atoms/std-learn-trace-player.orb +2501 -764
  85. package/behaviors/registry/ui/learning/atoms/std-learn-transport.orb +1591 -173
  86. package/behaviors/registry/ui/learning/atoms/std-learn-tree.orb +883 -122
  87. package/behaviors/registry/ui/learning/atoms/ui-algo-graph-canvas.orb +176 -0
  88. package/behaviors/registry/ui/learning/atoms/ui-algorithm-canvas.orb +211 -0
  89. package/behaviors/registry/ui/learning/atoms/ui-biology-canvas.orb +211 -0
  90. package/behaviors/registry/ui/learning/atoms/ui-chemistry-canvas.orb +212 -1
  91. package/behaviors/registry/ui/learning/atoms/ui-learning-canvas.orb +212 -1
  92. package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +203 -9
  93. package/behaviors/registry/ui/learning/atoms/ui-physics-canvas.orb +211 -0
  94. package/behaviors/signatures.lolo +325 -655
  95. package/dist/behaviors/exports-reader.js +16092 -9747
  96. package/dist/behaviors/functions/index.d.ts +1052 -136
  97. package/dist/behaviors/functions/index.js +16063 -9745
  98. package/dist/behaviors/index.d.ts +1 -1
  99. package/dist/behaviors/index.js +16093 -9748
  100. package/dist/behaviors/query.js +16092 -9747
  101. package/dist/behaviors-embeddings.hash.json +3 -3
  102. package/dist/behaviors-embeddings.json +45 -25
  103. package/dist/behaviors-registry.json +4650 -535
  104. package/dist/index.d.ts +1 -1
  105. package/dist/index.js +16093 -9748
  106. package/dist/knob-embeddings.hash.json +3 -3
  107. package/dist/knob-embeddings.json +607 -263
  108. package/dist/registry/factory-signatures.json +1 -1
  109. package/package.json +3 -3
@@ -409,6 +409,17 @@
409
409
  "tier": "presentation",
410
410
  "type": "string"
411
411
  },
412
+ "opensAt": {
413
+ "default": "cover",
414
+ "description": "Where the reader opens: the cover, or straight into the first chapter (an article read in place)",
415
+ "label": "Opens at",
416
+ "tier": "presentation",
417
+ "type": "string",
418
+ "values": [
419
+ "cover",
420
+ "reading"
421
+ ]
422
+ },
412
423
  "previousLabel": {
413
424
  "default": "Previous",
414
425
  "label": "Previous button label",
@@ -425,6 +436,29 @@
425
436
  {
426
437
  "align": "start",
427
438
  "children": [
439
+ {
440
+ "className": "text-balance",
441
+ "content": "@config.title",
442
+ "type": "typography",
443
+ "variant": "h5",
444
+ "weight": "semibold"
445
+ },
446
+ {
447
+ "className": [
448
+ "if",
449
+ [
450
+ "==",
451
+ "@config.author",
452
+ ""
453
+ ],
454
+ "hidden",
455
+ "pb-2"
456
+ ],
457
+ "color": "muted",
458
+ "content": "@config.author",
459
+ "type": "typography",
460
+ "variant": "caption"
461
+ },
428
462
  {
429
463
  "action": "BACK_TO_COVER",
430
464
  "label": "@config.coverLabel",
@@ -767,8 +801,93 @@
767
801
  "event": "INIT",
768
802
  "eventId": "evt_01M3B9EHG2JYGWZ0NEKDDJ06CR",
769
803
  "from": "cover",
804
+ "guard": [
805
+ "==",
806
+ "@config.opensAt",
807
+ "cover"
808
+ ],
770
809
  "to": "cover"
771
810
  },
811
+ {
812
+ "effects": [
813
+ [
814
+ "set",
815
+ "@entity.chapterIndex",
816
+ 0.0
817
+ ],
818
+ [
819
+ "set",
820
+ "@entity.chapterTitle",
821
+ [
822
+ "object/get",
823
+ [
824
+ "array/nth",
825
+ "@config.chapters",
826
+ 0.0
827
+ ],
828
+ "title",
829
+ ""
830
+ ]
831
+ ],
832
+ [
833
+ "set",
834
+ "@entity.chapterContent",
835
+ [
836
+ "object/get",
837
+ [
838
+ "array/nth",
839
+ "@config.chapters",
840
+ 0.0
841
+ ],
842
+ "content",
843
+ ""
844
+ ]
845
+ ],
846
+ [
847
+ "set",
848
+ "@entity.isFirst",
849
+ true
850
+ ],
851
+ [
852
+ "set",
853
+ "@entity.isLast",
854
+ [
855
+ "<=",
856
+ [
857
+ "array/len",
858
+ "@config.chapters"
859
+ ],
860
+ 1.0
861
+ ]
862
+ ],
863
+ [
864
+ "set",
865
+ "@entity.progressLabel",
866
+ [
867
+ "str/concat",
868
+ "1 / ",
869
+ [
870
+ "array/len",
871
+ "@config.chapters"
872
+ ]
873
+ ]
874
+ ],
875
+ [
876
+ "render-ui",
877
+ "main",
878
+ "@config.readingContent"
879
+ ]
880
+ ],
881
+ "event": "INIT",
882
+ "eventId": "evt_01M3B9EHG2JYGWZ0NEKDDJ06CR",
883
+ "from": "cover",
884
+ "guard": [
885
+ "==",
886
+ "@config.opensAt",
887
+ "reading"
888
+ ],
889
+ "to": "reading"
890
+ },
772
891
  {
773
892
  "effects": [
774
893
  [
@@ -549,6 +549,21 @@
549
549
  "center",
550
550
  "left"
551
551
  ],
552
+ "className": [
553
+ "if",
554
+ [
555
+ "==",
556
+ [
557
+ "object/get",
558
+ "@item",
559
+ "href",
560
+ ""
561
+ ],
562
+ ""
563
+ ],
564
+ "",
565
+ "hidden"
566
+ ],
552
567
  "content": [
553
568
  "object/get",
554
569
  "@item",
@@ -559,6 +574,52 @@
559
574
  "variant": "h4",
560
575
  "weight": "semibold"
561
576
  },
577
+ {
578
+ "action": "CARD_OPEN",
579
+ "actionPayload": {
580
+ "href": [
581
+ "object/get",
582
+ "@item",
583
+ "href",
584
+ ""
585
+ ],
586
+ "title": [
587
+ "object/get",
588
+ "@item",
589
+ "title",
590
+ ""
591
+ ]
592
+ },
593
+ "className": [
594
+ "if",
595
+ [
596
+ "==",
597
+ [
598
+ "object/get",
599
+ "@item",
600
+ "href",
601
+ ""
602
+ ],
603
+ ""
604
+ ],
605
+ "hidden",
606
+ "text-lg font-semibold text-foreground whitespace-normal text-start"
607
+ ],
608
+ "href": [
609
+ "object/get",
610
+ "@item",
611
+ "href",
612
+ ""
613
+ ],
614
+ "label": [
615
+ "object/get",
616
+ "@item",
617
+ "title",
618
+ ""
619
+ ],
620
+ "type": "button",
621
+ "variant": "link"
622
+ },
562
623
  {
563
624
  "align": [
564
625
  "if",