@almadar/std 16.212.0 → 16.213.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 (37) hide show
  1. package/behaviors/lolo/agent/organisms/std-agent-rabit.lolo +1 -0
  2. package/behaviors/lolo/infra/atoms/std-notification-center.lolo +19 -1
  3. package/behaviors/lolo/ui/core/atoms/std-rating-review.lolo +214 -3
  4. package/behaviors/lolo/ui/core/molecules/ui-data-grid.lolo +13 -0
  5. package/behaviors/lolo/ui/core/molecules/ui-data-list.lolo +13 -0
  6. package/behaviors/lolo/ui/core/molecules/ui-table-view.lolo +13 -0
  7. package/behaviors/lolo/ui/core/organisms/ui-entity-table.lolo +13 -0
  8. package/behaviors/lolo/ui/game/atoms/ui-canvas-2d.lolo +2 -2
  9. package/behaviors/lolo/ui/game/atoms/ui-canvas.lolo +2 -2
  10. package/behaviors/lolo/ui/game/atoms/ui-control-grid.lolo +2 -2
  11. package/behaviors/lolo/ui/learning/atoms/ui-math-canvas.lolo +2 -2
  12. package/behaviors/registry/agent/organisms/std-agent-rabit.orb +8 -0
  13. package/behaviors/registry/infra/atoms/std-notification-center.orb +176 -1
  14. package/behaviors/registry/ui/core/atoms/std-rating-review.orb +443 -2
  15. package/behaviors/registry/ui/core/molecules/ui-data-grid.orb +58 -0
  16. package/behaviors/registry/ui/core/molecules/ui-data-list.orb +58 -0
  17. package/behaviors/registry/ui/core/molecules/ui-table-view.orb +58 -0
  18. package/behaviors/registry/ui/core/organisms/ui-entity-table.orb +58 -0
  19. package/behaviors/registry/ui/game/atoms/ui-canvas-2d.orb +2 -2
  20. package/behaviors/registry/ui/game/atoms/ui-canvas.orb +2 -2
  21. package/behaviors/registry/ui/game/atoms/ui-control-grid.orb +2 -2
  22. package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +2 -2
  23. package/dist/behaviors/exports-reader.js +626 -6
  24. package/dist/behaviors/functions/index.d.ts +27 -13
  25. package/dist/behaviors/functions/index.js +624 -7
  26. package/dist/behaviors/index.d.ts +1 -1
  27. package/dist/behaviors/index.js +627 -7
  28. package/dist/behaviors/query.js +626 -6
  29. package/dist/behaviors-embeddings.hash.json +3 -3
  30. package/dist/behaviors-embeddings.json +1 -1
  31. package/dist/behaviors-registry.json +293 -309
  32. package/dist/index.d.ts +1 -1
  33. package/dist/index.js +627 -7
  34. package/dist/knob-embeddings.hash.json +3 -3
  35. package/dist/knob-embeddings.json +1 -1
  36. package/dist/registry/factory-signatures.json +1 -1
  37. package/package.json +2 -2
@@ -181,6 +181,24 @@
181
181
  "parent": "trt_01KXG04H76D176PFTAKJ1PSJSJ",
182
182
  "renames": []
183
183
  },
184
+ "evt_01M2BCSHJ549GYP8Y28K0K95VW": {
185
+ "bakedName": "OPEN_REVIEW_FORM",
186
+ "curName": "OPEN_REVIEW_FORM",
187
+ "id": "evt_01M2BCSHJ549GYP8Y28K0K95VW",
188
+ "kind": "event",
189
+ "owner": "workspace",
190
+ "parent": "trt_01M2BCSHJ5JVERT7630C32RZS4",
191
+ "renames": []
192
+ },
193
+ "evt_01M2BCSHJ5TAC7JB5QFH4W4BXC": {
194
+ "bakedName": "INIT",
195
+ "curName": "INIT",
196
+ "id": "evt_01M2BCSHJ5TAC7JB5QFH4W4BXC",
197
+ "kind": "event",
198
+ "owner": "workspace",
199
+ "parent": "trt_01M2BCSHJ5JVERT7630C32RZS4",
200
+ "renames": []
201
+ },
184
202
  "orb_01KXG04H769YBDQ0YZNSNB9NB2": {
185
203
  "bakedName": "RatingReviewOrbital",
186
204
  "curName": "RatingReviewOrbital",
@@ -220,6 +238,14 @@
220
238
  "kind": "trait",
221
239
  "owner": "workspace",
222
240
  "renames": []
241
+ },
242
+ "trt_01M2BCSHJ5JVERT7630C32RZS4": {
243
+ "bakedName": "RatingReviewPageNav",
244
+ "curName": "RatingReviewPageNav",
245
+ "id": "trt_01M2BCSHJ5JVERT7630C32RZS4",
246
+ "kind": "trait",
247
+ "owner": "workspace",
248
+ "renames": []
223
249
  }
224
250
  },
225
251
  "schemaVersion": 1
@@ -413,6 +439,10 @@
413
439
  {
414
440
  "ref": "RatingReviewBoard",
415
441
  "refId": "trt_01KXG04H76D176PFTAKJ1PSJSJ"
442
+ },
443
+ {
444
+ "ref": "RatingReviewPageNav",
445
+ "refId": "trt_01M2BCSHJ5JVERT7630C32RZS4"
416
446
  }
417
447
  ]
418
448
  },
@@ -2595,12 +2625,337 @@
2595
2625
  },
2596
2626
  {
2597
2627
  "effects": [
2628
+ [
2629
+ "set",
2630
+ "@entity.reviews",
2631
+ [
2632
+ "array/map",
2633
+ "@entity.reviews",
2634
+ [
2635
+ "fn",
2636
+ "row",
2637
+ [
2638
+ "if",
2639
+ [
2640
+ "=",
2641
+ [
2642
+ "object/get",
2643
+ "@row",
2644
+ "id",
2645
+ ""
2646
+ ],
2647
+ "@payload.id"
2648
+ ],
2649
+ [
2650
+ "object/merge",
2651
+ "@row",
2652
+ {
2653
+ "helpful": [
2654
+ "+",
2655
+ [
2656
+ "object/get",
2657
+ "@row",
2658
+ "helpful",
2659
+ 0.0
2660
+ ],
2661
+ 1.0
2662
+ ]
2663
+ }
2664
+ ],
2665
+ "@row"
2666
+ ]
2667
+ ]
2668
+ ]
2669
+ ],
2670
+ [
2671
+ "set",
2672
+ "@entity.reviewsSource",
2673
+ [
2674
+ "array/map",
2675
+ "@entity.reviewsSource",
2676
+ [
2677
+ "fn",
2678
+ "row",
2679
+ [
2680
+ "if",
2681
+ [
2682
+ "=",
2683
+ [
2684
+ "object/get",
2685
+ "@row",
2686
+ "id",
2687
+ ""
2688
+ ],
2689
+ "@payload.id"
2690
+ ],
2691
+ [
2692
+ "object/merge",
2693
+ "@row",
2694
+ {
2695
+ "helpful": [
2696
+ "+",
2697
+ [
2698
+ "object/get",
2699
+ "@row",
2700
+ "helpful",
2701
+ 0.0
2702
+ ],
2703
+ 1.0
2704
+ ]
2705
+ }
2706
+ ],
2707
+ "@row"
2708
+ ]
2709
+ ]
2710
+ ]
2711
+ ],
2598
2712
  [
2599
2713
  "render-ui",
2600
2714
  "main",
2601
2715
  {
2602
- "title": "Recording…",
2603
- "type": "loading-state"
2716
+ "children": [
2717
+ {
2718
+ "align": "center",
2719
+ "children": [
2720
+ {
2721
+ "children": [
2722
+ {
2723
+ "align": "center",
2724
+ "children": [
2725
+ {
2726
+ "name": "star",
2727
+ "type": "icon"
2728
+ },
2729
+ {
2730
+ "content": "Reviews",
2731
+ "type": "typography",
2732
+ "variant": "h3"
2733
+ },
2734
+ {
2735
+ "color": "muted",
2736
+ "content": "·",
2737
+ "type": "typography"
2738
+ },
2739
+ {
2740
+ "content": "@entity.averageRating",
2741
+ "type": "typography",
2742
+ "variant": "h3"
2743
+ },
2744
+ {
2745
+ "color": "warning",
2746
+ "name": "star",
2747
+ "type": "icon"
2748
+ },
2749
+ {
2750
+ "color": "muted",
2751
+ "content": "·",
2752
+ "type": "typography"
2753
+ },
2754
+ {
2755
+ "color": "muted",
2756
+ "content": "@entity.totalReviews",
2757
+ "type": "typography",
2758
+ "variant": "h4"
2759
+ },
2760
+ {
2761
+ "color": "muted",
2762
+ "content": "reviews",
2763
+ "type": "typography",
2764
+ "variant": "h4"
2765
+ }
2766
+ ],
2767
+ "direction": "horizontal",
2768
+ "gap": "sm",
2769
+ "type": "stack"
2770
+ },
2771
+ {
2772
+ "color": "muted",
2773
+ "content": "@config.subjectTitle",
2774
+ "type": "typography",
2775
+ "variant": "caption"
2776
+ }
2777
+ ],
2778
+ "direction": "vertical",
2779
+ "gap": "xs",
2780
+ "type": "stack"
2781
+ },
2782
+ {
2783
+ "action": "WRITE_REVIEW",
2784
+ "icon": "edit",
2785
+ "label": "@config.writeLabel",
2786
+ "type": "button",
2787
+ "variant": "primary"
2788
+ }
2789
+ ],
2790
+ "direction": "horizontal",
2791
+ "gap": "md",
2792
+ "justify": "between",
2793
+ "type": "stack"
2794
+ },
2795
+ {
2796
+ "children": [
2797
+ {
2798
+ "children": [
2799
+ {
2800
+ "content": "Rating distribution",
2801
+ "type": "typography",
2802
+ "variant": "h4"
2803
+ },
2804
+ {
2805
+ "entity": "@entity.starDistribution",
2806
+ "fields": [],
2807
+ "gap": "sm",
2808
+ "renderItem": [
2809
+ "fn",
2810
+ "bar",
2811
+ {
2812
+ "align": "center",
2813
+ "children": [
2814
+ {
2815
+ "content": "@bar.label",
2816
+ "type": "typography",
2817
+ "variant": "caption"
2818
+ },
2819
+ {
2820
+ "max": 100.0,
2821
+ "type": "progress-bar",
2822
+ "value": "@bar.percentage",
2823
+ "variant": "primary"
2824
+ },
2825
+ {
2826
+ "color": "muted",
2827
+ "content": "@bar.percentage",
2828
+ "type": "typography",
2829
+ "variant": "caption"
2830
+ },
2831
+ {
2832
+ "color": "muted",
2833
+ "content": "%",
2834
+ "type": "typography",
2835
+ "variant": "caption"
2836
+ }
2837
+ ],
2838
+ "direction": "horizontal",
2839
+ "gap": "md",
2840
+ "type": "stack"
2841
+ }
2842
+ ],
2843
+ "type": "data-list"
2844
+ }
2845
+ ],
2846
+ "direction": "vertical",
2847
+ "gap": "sm",
2848
+ "type": "stack"
2849
+ }
2850
+ ],
2851
+ "look": "@config.cardLook",
2852
+ "type": "card"
2853
+ },
2854
+ {
2855
+ "activeTab": "@entity.currentSort",
2856
+ "tabChangeEvent": "CHANGE_SORT",
2857
+ "tabs": "@config.sortOptions",
2858
+ "type": "tabs"
2859
+ },
2860
+ {
2861
+ "entity": "@entity.reviews",
2862
+ "fields": [],
2863
+ "gap": "md",
2864
+ "renderItem": [
2865
+ "fn",
2866
+ "review",
2867
+ {
2868
+ "children": [
2869
+ {
2870
+ "children": [
2871
+ {
2872
+ "align": "center",
2873
+ "children": [
2874
+ {
2875
+ "name": "@review.avatarIcon",
2876
+ "type": "icon"
2877
+ },
2878
+ {
2879
+ "content": "@review.authorName",
2880
+ "type": "typography",
2881
+ "weight": "bold"
2882
+ },
2883
+ {
2884
+ "color": "muted",
2885
+ "content": "·",
2886
+ "type": "typography"
2887
+ },
2888
+ {
2889
+ "color": "warning",
2890
+ "name": "star",
2891
+ "type": "icon"
2892
+ },
2893
+ {
2894
+ "content": "@review.rating",
2895
+ "type": "typography",
2896
+ "weight": "bold"
2897
+ },
2898
+ {
2899
+ "color": "muted",
2900
+ "content": "·",
2901
+ "type": "typography"
2902
+ },
2903
+ {
2904
+ "color": "muted",
2905
+ "content": "@review.createdAt",
2906
+ "type": "typography",
2907
+ "variant": "caption"
2908
+ }
2909
+ ],
2910
+ "direction": "horizontal",
2911
+ "gap": "sm",
2912
+ "type": "stack"
2913
+ },
2914
+ {
2915
+ "content": "@review.comment",
2916
+ "type": "typography",
2917
+ "variant": "body"
2918
+ },
2919
+ {
2920
+ "align": "center",
2921
+ "children": [
2922
+ {
2923
+ "action": "MARK_HELPFUL",
2924
+ "actionPayload": {
2925
+ "id": "@review.id"
2926
+ },
2927
+ "icon": "thumbs-up",
2928
+ "label": "Helpful",
2929
+ "type": "button",
2930
+ "variant": "ghost"
2931
+ },
2932
+ {
2933
+ "color": "muted",
2934
+ "content": "@review.helpful",
2935
+ "type": "typography",
2936
+ "variant": "caption"
2937
+ }
2938
+ ],
2939
+ "direction": "horizontal",
2940
+ "gap": "sm",
2941
+ "type": "stack"
2942
+ }
2943
+ ],
2944
+ "direction": "vertical",
2945
+ "gap": "sm",
2946
+ "type": "stack"
2947
+ }
2948
+ ],
2949
+ "look": "@config.cardLook",
2950
+ "type": "card"
2951
+ }
2952
+ ],
2953
+ "type": "data-list"
2954
+ }
2955
+ ],
2956
+ "direction": "vertical",
2957
+ "gap": "lg",
2958
+ "type": "stack"
2604
2959
  }
2605
2960
  ]
2606
2961
  ],
@@ -3766,6 +4121,92 @@
3766
4121
  }
3767
4122
  ]
3768
4123
  }
4124
+ },
4125
+ {
4126
+ "category": "interaction",
4127
+ "effectRow": [
4128
+ {
4129
+ "kind": "navigate",
4130
+ "resource": "/reviews/new"
4131
+ },
4132
+ {
4133
+ "kind": "render-ui",
4134
+ "resource": "main"
4135
+ }
4136
+ ],
4137
+ "emits": [
4138
+ {
4139
+ "description": "Opens the standalone review-submission page.",
4140
+ "event": "OPEN_REVIEW_FORM",
4141
+ "eventId": "evt_01M2BCSHJ549GYP8Y28K0K95VW",
4142
+ "synonyms": "open form, new page, direct link",
4143
+ "tier": "presentation"
4144
+ }
4145
+ ],
4146
+ "entityRefIds": {
4147
+ "ReviewView": "ent_01KXG04H76C6R5TQKSKV251STQ"
4148
+ },
4149
+ "id": "trt_01M2BCSHJ5JVERT7630C32RZS4",
4150
+ "linkedEntity": "ReviewView",
4151
+ "linkedEntityId": "ent_01KXG04H76C6R5TQKSKV251STQ",
4152
+ "name": "RatingReviewPageNav",
4153
+ "scope": "instance",
4154
+ "stateMachine": {
4155
+ "events": [
4156
+ {
4157
+ "id": "evt_01M2BCSHJ5TAC7JB5QFH4W4BXC",
4158
+ "key": "INIT",
4159
+ "name": "Initialize"
4160
+ },
4161
+ {
4162
+ "description": "Opens the standalone review-submission page.",
4163
+ "id": "evt_01M2BCSHJ549GYP8Y28K0K95VW",
4164
+ "key": "OPEN_REVIEW_FORM",
4165
+ "name": "Open Review Form",
4166
+ "synonyms": "open form, new page, direct link",
4167
+ "tier": "presentation"
4168
+ }
4169
+ ],
4170
+ "states": [
4171
+ {
4172
+ "isInitial": true,
4173
+ "name": "ready"
4174
+ }
4175
+ ],
4176
+ "transitions": [
4177
+ {
4178
+ "effects": [
4179
+ [
4180
+ "render-ui",
4181
+ "main",
4182
+ {
4183
+ "action": "OPEN_REVIEW_FORM",
4184
+ "icon": "external-link",
4185
+ "label": "Open review form",
4186
+ "type": "button",
4187
+ "variant": "ghost"
4188
+ }
4189
+ ]
4190
+ ],
4191
+ "event": "INIT",
4192
+ "eventId": "evt_01M2BCSHJ5TAC7JB5QFH4W4BXC",
4193
+ "from": "ready",
4194
+ "to": "ready"
4195
+ },
4196
+ {
4197
+ "effects": [
4198
+ [
4199
+ "navigate",
4200
+ "/reviews/new"
4201
+ ]
4202
+ ],
4203
+ "event": "OPEN_REVIEW_FORM",
4204
+ "eventId": "evt_01M2BCSHJ549GYP8Y28K0K95VW",
4205
+ "from": "ready",
4206
+ "to": "ready"
4207
+ }
4208
+ ]
4209
+ }
3769
4210
  }
3770
4211
  ],
3771
4212
  "types": {
@@ -437,6 +437,41 @@
437
437
  "tier": "presentation",
438
438
  "type": "string"
439
439
  },
440
+ "relationsData": {
441
+ "default": {},
442
+ "description": "Relation display data: { fieldName: [{value, label}] } — injected server-side by the runtime (relation-option injection) or bound by compiled codegen; resolves stored foreign ids to display names for a field whose type is relation. Same contract DetailPanel takes.",
443
+ "items": {
444
+ "items": {
445
+ "properties": {
446
+ "description": {
447
+ "name": "description",
448
+ "required": false,
449
+ "type": "string"
450
+ },
451
+ "disabled": {
452
+ "name": "disabled",
453
+ "required": false,
454
+ "type": "boolean"
455
+ },
456
+ "label": {
457
+ "name": "label",
458
+ "required": true,
459
+ "type": "string"
460
+ },
461
+ "value": {
462
+ "name": "value",
463
+ "required": true,
464
+ "type": "string"
465
+ }
466
+ },
467
+ "type": "object"
468
+ },
469
+ "type": "array"
470
+ },
471
+ "label": "Relations Data",
472
+ "tier": "presentation",
473
+ "type": "Map<string,[DataGridRelationsDataValueItem]>"
474
+ },
440
475
  "reorderEvent": {
441
476
  "description": "Bus event fired on in-container reorder. Payload: { id, oldIndex, newIndex }",
442
477
  "label": "Reorder Event",
@@ -682,6 +717,7 @@
682
717
  "minCardWidth": "@config.minCardWidth",
683
718
  "pageSize": "@config.pageSize",
684
719
  "positionEvent": "@config.positionEvent",
720
+ "relationsData": "@config.relationsData",
685
721
  "reorderEvent": "@config.reorderEvent",
686
722
  "scrollX": "@config.scrollX",
687
723
  "selectable": "@config.selectable",
@@ -726,6 +762,7 @@
726
762
  "minCardWidth": "@config.minCardWidth",
727
763
  "pageSize": "@config.pageSize",
728
764
  "positionEvent": "@config.positionEvent",
765
+ "relationsData": "@config.relationsData",
729
766
  "reorderEvent": "@config.reorderEvent",
730
767
  "scrollX": "@config.scrollX",
731
768
  "selectable": "@config.selectable",
@@ -773,6 +810,7 @@
773
810
  "minCardWidth": "@config.minCardWidth",
774
811
  "pageSize": "@config.pageSize",
775
812
  "positionEvent": "@config.positionEvent",
813
+ "relationsData": "@config.relationsData",
776
814
  "reorderEvent": "@config.reorderEvent",
777
815
  "scrollX": "@config.scrollX",
778
816
  "selectable": "@config.selectable",
@@ -887,6 +925,26 @@
887
925
  "name": "variant",
888
926
  "type": "string"
889
927
  }
928
+ ],
929
+ "DataGridRelationsDataValueItem": [
930
+ {
931
+ "name": "value",
932
+ "required": true,
933
+ "type": "string"
934
+ },
935
+ {
936
+ "name": "label",
937
+ "required": true,
938
+ "type": "string"
939
+ },
940
+ {
941
+ "name": "description",
942
+ "type": "string"
943
+ },
944
+ {
945
+ "name": "disabled",
946
+ "type": "boolean"
947
+ }
890
948
  ]
891
949
  }
892
950
  }
@@ -464,6 +464,41 @@
464
464
  "tier": "presentation",
465
465
  "type": "string"
466
466
  },
467
+ "relationsData": {
468
+ "default": {},
469
+ "description": "Relation display data: { fieldName: [{value, label}] } — injected server-side by the runtime (relation-option injection) or bound by compiled codegen; resolves stored foreign ids to display names for a field whose type is relation. Same contract DetailPanel takes.",
470
+ "items": {
471
+ "items": {
472
+ "properties": {
473
+ "description": {
474
+ "name": "description",
475
+ "required": false,
476
+ "type": "string"
477
+ },
478
+ "disabled": {
479
+ "name": "disabled",
480
+ "required": false,
481
+ "type": "boolean"
482
+ },
483
+ "label": {
484
+ "name": "label",
485
+ "required": true,
486
+ "type": "string"
487
+ },
488
+ "value": {
489
+ "name": "value",
490
+ "required": true,
491
+ "type": "string"
492
+ }
493
+ },
494
+ "type": "object"
495
+ },
496
+ "type": "array"
497
+ },
498
+ "label": "Relations Data",
499
+ "tier": "presentation",
500
+ "type": "Map<string,[DataListRelationsDataValueItem]>"
501
+ },
467
502
  "reorderEvent": {
468
503
  "default": "REORDER",
469
504
  "description": "Event emitted on reorder: UI:{reorderEvent} with { fromIndex, toIndex }",
@@ -889,6 +924,7 @@
889
924
  "maxInlineActions": "@config.maxInlineActions",
890
925
  "pageSize": "@config.pageSize",
891
926
  "positionEvent": "@config.positionEvent",
927
+ "relationsData": "@config.relationsData",
892
928
  "reorderEvent": "@config.reorderEvent",
893
929
  "reorderable": "@config.reorderable",
894
930
  "senderField": "@config.senderField",
@@ -942,6 +978,7 @@
942
978
  "maxInlineActions": "@config.maxInlineActions",
943
979
  "pageSize": "@config.pageSize",
944
980
  "positionEvent": "@config.positionEvent",
981
+ "relationsData": "@config.relationsData",
945
982
  "reorderEvent": "@config.reorderEvent",
946
983
  "reorderable": "@config.reorderable",
947
984
  "senderField": "@config.senderField",
@@ -998,6 +1035,7 @@
998
1035
  "maxInlineActions": "@config.maxInlineActions",
999
1036
  "pageSize": "@config.pageSize",
1000
1037
  "positionEvent": "@config.positionEvent",
1038
+ "relationsData": "@config.relationsData",
1001
1039
  "reorderEvent": "@config.reorderEvent",
1002
1040
  "reorderable": "@config.reorderable",
1003
1041
  "senderField": "@config.senderField",
@@ -1109,6 +1147,26 @@
1109
1147
  "type": "string"
1110
1148
  }
1111
1149
  ],
1150
+ "DataListRelationsDataValueItem": [
1151
+ {
1152
+ "name": "value",
1153
+ "required": true,
1154
+ "type": "string"
1155
+ },
1156
+ {
1157
+ "name": "label",
1158
+ "required": true,
1159
+ "type": "string"
1160
+ },
1161
+ {
1162
+ "name": "description",
1163
+ "type": "string"
1164
+ },
1165
+ {
1166
+ "name": "disabled",
1167
+ "type": "boolean"
1168
+ }
1169
+ ],
1112
1170
  "DataListSwipeLeftActionsItem": [
1113
1171
  {
1114
1172
  "name": "label",