@almadar/std 16.145.0 → 16.147.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 (135) hide show
  1. package/behaviors/lolo/infra/atoms/std-migration-job.lolo +269 -0
  2. package/behaviors/lolo/infra/atoms/std-mod-queue.lolo +1 -1
  3. package/behaviors/lolo/ml/atoms/std-data-collector.lolo +56 -0
  4. package/behaviors/lolo/ml/atoms/std-graph-builder.lolo +90 -0
  5. package/behaviors/lolo/ml/atoms/std-ml-similarity.lolo +25 -13
  6. package/behaviors/lolo/ml/atoms/std-tokenizer.lolo +108 -0
  7. package/behaviors/lolo/ml/atoms/std-weight-validator.lolo +106 -0
  8. package/behaviors/lolo/ui/core/atoms/std-app-layout.lolo +14 -0
  9. package/behaviors/lolo/ui/core/atoms/std-billable-hour.lolo +1 -1
  10. package/behaviors/lolo/ui/core/atoms/std-esign-flow.lolo +3 -3
  11. package/behaviors/lolo/ui/core/atoms/std-esign-request.lolo +4 -4
  12. package/behaviors/lolo/ui/core/atoms/std-event-log.lolo +2 -2
  13. package/behaviors/lolo/ui/core/atoms/std-file-store.lolo +1 -1
  14. package/behaviors/lolo/ui/core/atoms/std-gallery.lolo +1 -1
  15. package/behaviors/lolo/ui/core/atoms/std-image-upload-multi.lolo +2 -2
  16. package/behaviors/lolo/ui/core/atoms/std-import.lolo +132 -0
  17. package/behaviors/lolo/ui/core/atoms/std-recurrence.lolo +5 -5
  18. package/behaviors/lolo/ui/core/atoms/std-saved-search.lolo +1 -1
  19. package/behaviors/lolo/ui/core/atoms/std-signature-capture.lolo +1 -1
  20. package/behaviors/lolo/ui/core/atoms/std-stats.lolo +1 -1
  21. package/behaviors/lolo/ui/core/atoms/std-tag-taxonomy.lolo +3 -3
  22. package/behaviors/lolo/ui/core/molecules/ui-data-grid.lolo +0 -2
  23. package/behaviors/lolo/ui/core/molecules/ui-data-list.lolo +0 -2
  24. package/behaviors/lolo/ui/core/molecules/ui-import-preview-tree.lolo +96 -0
  25. package/behaviors/lolo/ui/core/molecules/ui-import-progress.lolo +49 -0
  26. package/behaviors/lolo/ui/core/molecules/ui-import-source-picker.lolo +67 -0
  27. package/behaviors/lolo/ui/core/molecules/ui-table-view.lolo +0 -2
  28. package/behaviors/lolo/ui/core/organisms/ui-entity-cards.lolo +0 -2
  29. package/behaviors/lolo/ui/core/organisms/ui-entity-list.lolo +0 -2
  30. package/behaviors/lolo/ui/core/organisms/ui-entity-table.lolo +0 -2
  31. package/behaviors/lolo/ui/core/organisms/ui-timeline.lolo +0 -2
  32. package/behaviors/lolo/ui/game/atoms/std-dungeon-combat.lolo +2 -2
  33. package/behaviors/lolo/ui/game/molecules/std-worldmap-board-2d.lolo +1 -1
  34. package/behaviors/lolo/ui/game/organisms/ui-boardgame-board.lolo +2 -2
  35. package/behaviors/lolo/ui/game/organisms/ui-builder-board.lolo +2 -2
  36. package/behaviors/lolo/ui/game/organisms/ui-debugger-board.lolo +3 -3
  37. package/behaviors/lolo/ui/game/organisms/ui-physics-sandbox-board.lolo +3 -3
  38. package/behaviors/lolo/ui/game/organisms/ui-roguelike-board.lolo +1 -1
  39. package/behaviors/lolo/ui/game/organisms/ui-sequencer-board.lolo +1 -1
  40. package/behaviors/lolo/ui/learning/atoms/std-algo-heapsort.lolo +2 -2
  41. package/behaviors/lolo/ui/learning/atoms/std-algo-mst.lolo +3 -3
  42. package/behaviors/registry/factory-signatures.json +11531 -2142
  43. package/behaviors/registry/infra/atoms/std-migration-job.orb +1310 -0
  44. package/behaviors/registry/infra/atoms/std-mod-queue.orb +5 -5
  45. package/behaviors/registry/ml/atoms/std-data-collector.orb +324 -0
  46. package/behaviors/registry/ml/atoms/std-graph-builder.orb +480 -0
  47. package/behaviors/registry/ml/atoms/std-ml-similarity.orb +127 -72
  48. package/behaviors/registry/ml/atoms/std-tokenizer.orb +570 -0
  49. package/behaviors/registry/ml/atoms/std-weight-validator.orb +624 -0
  50. package/behaviors/registry/ui/core/atoms/std-app-layout.orb +33 -1
  51. package/behaviors/registry/ui/core/atoms/std-billable-hour.orb +2 -2
  52. package/behaviors/registry/ui/core/atoms/std-esign-flow.orb +17 -21
  53. package/behaviors/registry/ui/core/atoms/std-esign-request.orb +7 -13
  54. package/behaviors/registry/ui/core/atoms/std-event-log.orb +2 -4
  55. package/behaviors/registry/ui/core/atoms/std-file-store.orb +3 -4
  56. package/behaviors/registry/ui/core/atoms/std-gallery.orb +11 -20
  57. package/behaviors/registry/ui/core/atoms/std-image-upload-multi.orb +4 -4
  58. package/behaviors/registry/ui/core/atoms/std-import.orb +701 -0
  59. package/behaviors/registry/ui/core/atoms/std-recurrence.orb +5 -10
  60. package/behaviors/registry/ui/core/atoms/std-saved-search.orb +2 -2
  61. package/behaviors/registry/ui/core/atoms/std-signature-capture.orb +2 -2
  62. package/behaviors/registry/ui/core/molecules/ui-data-grid.orb +12 -25
  63. package/behaviors/registry/ui/core/molecules/ui-data-list.orb +13 -26
  64. package/behaviors/registry/ui/core/molecules/ui-import-preview-tree.orb +354 -0
  65. package/behaviors/registry/ui/core/molecules/ui-import-progress.orb +195 -0
  66. package/behaviors/registry/ui/core/molecules/ui-import-source-picker.orb +279 -0
  67. package/behaviors/registry/ui/core/molecules/ui-table-view.orb +12 -25
  68. package/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +0 -13
  69. package/behaviors/registry/ui/core/organisms/ui-entity-list.orb +8 -21
  70. package/behaviors/registry/ui/core/organisms/ui-entity-table.orb +0 -13
  71. package/behaviors/registry/ui/core/organisms/ui-timeline.orb +0 -13
  72. package/behaviors/registry/ui/game/atoms/std-dungeon-combat.orb +4 -4
  73. package/behaviors/registry/ui/game/molecules/std-worldmap-board-2d.orb +6 -9
  74. package/behaviors/registry/ui/game/organisms/ui-boardgame-board.orb +4 -4
  75. package/behaviors/registry/ui/game/organisms/ui-builder-board.orb +4 -4
  76. package/behaviors/registry/ui/game/organisms/ui-debugger-board.orb +12 -12
  77. package/behaviors/registry/ui/game/organisms/ui-physics-sandbox-board.orb +19 -19
  78. package/behaviors/registry/ui/game/organisms/ui-roguelike-board.orb +1 -1
  79. package/behaviors/registry/ui/game/organisms/ui-sequencer-board.orb +2 -2
  80. package/behaviors/registry/ui/learning/atoms/std-algo-heapsort.orb +8 -8
  81. package/dist/behaviors/behaviors-embeddings.json +568 -496
  82. package/dist/behaviors/behaviors-registry.json +7518 -3936
  83. package/dist/behaviors/exports-reader.js +3093 -2581
  84. package/dist/behaviors/functions/index.d.ts +922 -14
  85. package/dist/behaviors/functions/index.js +3056 -2582
  86. package/dist/behaviors/index.d.ts +1 -1
  87. package/dist/behaviors/index.js +3094 -2582
  88. package/dist/behaviors/knob-embeddings.json +1 -1
  89. package/dist/behaviors/query.js +3093 -2581
  90. package/dist/behaviors/registry/factory-signatures.json +11531 -2142
  91. package/dist/behaviors/registry/infra/atoms/std-migration-job.orb +1310 -0
  92. package/dist/behaviors/registry/infra/atoms/std-mod-queue.orb +5 -5
  93. package/dist/behaviors/registry/ml/atoms/std-data-collector.orb +324 -0
  94. package/dist/behaviors/registry/ml/atoms/std-graph-builder.orb +480 -0
  95. package/dist/behaviors/registry/ml/atoms/std-ml-similarity.orb +127 -72
  96. package/dist/behaviors/registry/ml/atoms/std-tokenizer.orb +570 -0
  97. package/dist/behaviors/registry/ml/atoms/std-weight-validator.orb +624 -0
  98. package/dist/behaviors/registry/ui/core/atoms/std-app-layout.orb +33 -1
  99. package/dist/behaviors/registry/ui/core/atoms/std-billable-hour.orb +2 -2
  100. package/dist/behaviors/registry/ui/core/atoms/std-esign-flow.orb +17 -21
  101. package/dist/behaviors/registry/ui/core/atoms/std-esign-request.orb +7 -13
  102. package/dist/behaviors/registry/ui/core/atoms/std-event-log.orb +2 -4
  103. package/dist/behaviors/registry/ui/core/atoms/std-file-store.orb +3 -4
  104. package/dist/behaviors/registry/ui/core/atoms/std-gallery.orb +11 -20
  105. package/dist/behaviors/registry/ui/core/atoms/std-image-upload-multi.orb +4 -4
  106. package/dist/behaviors/registry/ui/core/atoms/std-import.orb +701 -0
  107. package/dist/behaviors/registry/ui/core/atoms/std-recurrence.orb +5 -10
  108. package/dist/behaviors/registry/ui/core/atoms/std-saved-search.orb +2 -2
  109. package/dist/behaviors/registry/ui/core/atoms/std-signature-capture.orb +2 -2
  110. package/dist/behaviors/registry/ui/core/molecules/ui-data-grid.orb +12 -25
  111. package/dist/behaviors/registry/ui/core/molecules/ui-data-list.orb +13 -26
  112. package/dist/behaviors/registry/ui/core/molecules/ui-import-preview-tree.orb +354 -0
  113. package/dist/behaviors/registry/ui/core/molecules/ui-import-progress.orb +195 -0
  114. package/dist/behaviors/registry/ui/core/molecules/ui-import-source-picker.orb +279 -0
  115. package/dist/behaviors/registry/ui/core/molecules/ui-table-view.orb +12 -25
  116. package/dist/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +0 -13
  117. package/dist/behaviors/registry/ui/core/organisms/ui-entity-list.orb +8 -21
  118. package/dist/behaviors/registry/ui/core/organisms/ui-entity-table.orb +0 -13
  119. package/dist/behaviors/registry/ui/core/organisms/ui-timeline.orb +0 -13
  120. package/dist/behaviors/registry/ui/game/atoms/std-dungeon-combat.orb +4 -4
  121. package/dist/behaviors/registry/ui/game/molecules/std-worldmap-board-2d.orb +6 -9
  122. package/dist/behaviors/registry/ui/game/organisms/ui-boardgame-board.orb +4 -4
  123. package/dist/behaviors/registry/ui/game/organisms/ui-builder-board.orb +4 -4
  124. package/dist/behaviors/registry/ui/game/organisms/ui-debugger-board.orb +12 -12
  125. package/dist/behaviors/registry/ui/game/organisms/ui-physics-sandbox-board.orb +19 -19
  126. package/dist/behaviors/registry/ui/game/organisms/ui-roguelike-board.orb +1 -1
  127. package/dist/behaviors/registry/ui/game/organisms/ui-sequencer-board.orb +2 -2
  128. package/dist/behaviors/registry/ui/learning/atoms/std-algo-heapsort.orb +8 -8
  129. package/dist/behaviors-embeddings.json +568 -496
  130. package/dist/behaviors-registry.json +7518 -3936
  131. package/dist/index.d.ts +1 -1
  132. package/dist/index.js +3094 -2582
  133. package/dist/knob-embeddings.json +1 -1
  134. package/dist/registry/factory-signatures.json +11531 -2142
  135. package/package.json +2 -2
@@ -591,123 +591,178 @@
591
591
  "@entity.embeddings",
592
592
  "@payload.result"
593
593
  ],
594
- [
595
- "set",
596
- "@entity.queryVector",
597
- [
598
- "array/first",
599
- "@entity.embeddings"
600
- ]
601
- ],
602
- [
603
- "set",
604
- "@entity.candidateVectors",
605
- [
606
- "array/drop",
607
- "@entity.embeddings",
608
- 1.0
609
- ]
610
- ],
611
594
  [
612
595
  "set",
613
596
  "@entity.status",
614
597
  "resolved"
615
598
  ],
616
599
  [
617
- "let",
600
+ "if",
618
601
  [
602
+ "<",
619
603
  [
620
- "nearest",
621
- [
622
- "array/nearest",
623
- "@entity.queryVector",
624
- "@entity.candidateVectors"
625
- ]
626
- ]
604
+ "array/len",
605
+ "@payload.result"
606
+ ],
607
+ 2.0
627
608
  ],
628
609
  [
629
610
  "do",
611
+ [
612
+ "set",
613
+ "@entity.queryVector",
614
+ []
615
+ ],
616
+ [
617
+ "set",
618
+ "@entity.candidateVectors",
619
+ []
620
+ ],
630
621
  [
631
622
  "set",
632
623
  "@entity.matchIndex",
633
- [
634
- "object/get",
635
- "@nearest",
636
- "index"
637
- ]
624
+ 0.0
638
625
  ],
639
626
  [
640
627
  "set",
641
628
  "@entity.matchScore",
629
+ 0.0
630
+ ],
631
+ [
632
+ "set",
633
+ "@entity.matchMargin",
634
+ 0.0
635
+ ],
636
+ [
637
+ "set",
638
+ "@entity.reason",
639
+ "embedding result incomplete"
640
+ ],
641
+ [
642
+ "emit",
643
+ "SIMILARITY_ABSTAINED",
644
+ {
645
+ "reason": "embedding result incomplete",
646
+ "request": "@entity.request"
647
+ }
648
+ ]
649
+ ],
650
+ [
651
+ "do",
652
+ [
653
+ "set",
654
+ "@entity.queryVector",
642
655
  [
643
- "object/get",
644
- "@nearest",
645
- "score"
656
+ "array/first",
657
+ "@entity.embeddings"
646
658
  ]
647
659
  ],
648
660
  [
649
661
  "set",
650
- "@entity.matchMargin",
662
+ "@entity.candidateVectors",
651
663
  [
652
- "object/get",
653
- "@nearest",
654
- "margin"
664
+ "array/drop",
665
+ "@entity.embeddings",
666
+ 1.0
655
667
  ]
656
668
  ],
657
669
  [
658
- "if",
670
+ "let",
659
671
  [
660
- "and",
661
672
  [
662
- ">=",
663
- "@entity.matchScore",
664
- "@config.floor"
665
- ],
666
- [
667
- ">=",
668
- "@entity.matchMargin",
669
- "@config.margin"
673
+ "nearest",
674
+ [
675
+ "array/nearest",
676
+ "@entity.queryVector",
677
+ "@entity.candidateVectors"
678
+ ]
670
679
  ]
671
680
  ],
672
681
  [
673
682
  "do",
674
683
  [
675
684
  "set",
676
- "@entity.reason",
677
- ""
685
+ "@entity.matchIndex",
686
+ [
687
+ "object/get",
688
+ "@nearest",
689
+ "index"
690
+ ]
678
691
  ],
679
692
  [
680
- "emit",
681
- "SIMILARITY_MATCHED",
682
- {
683
- "index": "@entity.matchIndex",
684
- "score": "@entity.matchScore"
685
- }
686
- ]
687
- ],
688
- [
689
- "do",
693
+ "set",
694
+ "@entity.matchScore",
695
+ [
696
+ "object/get",
697
+ "@nearest",
698
+ "score"
699
+ ]
700
+ ],
690
701
  [
691
702
  "set",
692
- "@entity.reason",
703
+ "@entity.matchMargin",
693
704
  [
694
- "if",
705
+ "object/get",
706
+ "@nearest",
707
+ "margin"
708
+ ]
709
+ ],
710
+ [
711
+ "if",
712
+ [
713
+ "and",
695
714
  [
696
- "<",
715
+ ">=",
697
716
  "@entity.matchScore",
698
717
  "@config.floor"
699
718
  ],
700
- "below floor",
701
- "thin margin"
719
+ [
720
+ ">=",
721
+ "@entity.matchMargin",
722
+ "@config.margin"
723
+ ]
724
+ ],
725
+ [
726
+ "do",
727
+ [
728
+ "set",
729
+ "@entity.reason",
730
+ ""
731
+ ],
732
+ [
733
+ "emit",
734
+ "SIMILARITY_MATCHED",
735
+ {
736
+ "index": "@entity.matchIndex",
737
+ "score": "@entity.matchScore"
738
+ }
739
+ ]
740
+ ],
741
+ [
742
+ "do",
743
+ [
744
+ "set",
745
+ "@entity.reason",
746
+ [
747
+ "if",
748
+ [
749
+ "<",
750
+ "@entity.matchScore",
751
+ "@config.floor"
752
+ ],
753
+ "below floor",
754
+ "thin margin"
755
+ ]
756
+ ],
757
+ [
758
+ "emit",
759
+ "SIMILARITY_ABSTAINED",
760
+ {
761
+ "reason": "@entity.reason",
762
+ "request": "@entity.request"
763
+ }
764
+ ]
702
765
  ]
703
- ],
704
- [
705
- "emit",
706
- "SIMILARITY_ABSTAINED",
707
- {
708
- "reason": "@entity.reason",
709
- "request": "@entity.request"
710
- }
711
766
  ]
712
767
  ]
713
768
  ]