@almadar/std 16.143.0 → 16.145.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 (97) hide show
  1. package/behaviors/lolo/ml/atoms/std-ml-classify.lolo +121 -0
  2. package/behaviors/lolo/ml/atoms/std-ml-exact-check.lolo +90 -0
  3. package/behaviors/lolo/ml/atoms/std-ml-infer.lolo +141 -0
  4. package/behaviors/lolo/ml/atoms/std-ml-label-capture.lolo +75 -0
  5. package/behaviors/lolo/ml/atoms/std-ml-lookup.lolo +83 -0
  6. package/behaviors/lolo/ml/atoms/std-ml-posterior.lolo +104 -0
  7. package/behaviors/lolo/ml/atoms/std-ml-similarity.lolo +154 -0
  8. package/behaviors/lolo/ml/molecules/std-escalating-decision.lolo +271 -0
  9. package/behaviors/lolo/ml/molecules/std-knowledge-tracing.lolo +115 -0
  10. package/behaviors/lolo/ui/core/atoms/std-board.lolo +28 -6
  11. package/behaviors/lolo/ui/core/atoms/std-browse.lolo +23 -6
  12. package/behaviors/lolo/ui/core/atoms/std-calendar.lolo +85 -2
  13. package/behaviors/lolo/ui/core/atoms/std-file-store.lolo +17 -0
  14. package/behaviors/lolo/ui/core/atoms/std-version-history.lolo +17 -0
  15. package/behaviors/lolo/ui/core/atoms/ui-typography.lolo +1 -1
  16. package/behaviors/lolo/ui/core/molecules/ui-calendar-grid.lolo +18 -0
  17. package/behaviors/lolo/ui/core/molecules/ui-data-grid.lolo +2 -0
  18. package/behaviors/lolo/ui/core/molecules/ui-data-list.lolo +3 -2
  19. package/behaviors/lolo/ui/core/molecules/ui-filter-group.lolo +20 -0
  20. package/behaviors/lolo/ui/core/molecules/ui-search-input.lolo +7 -2
  21. package/behaviors/lolo/ui/core/molecules/ui-table-view.lolo +3 -2
  22. package/behaviors/lolo/ui/core/organisms/ui-entity-cards.lolo +2 -0
  23. package/behaviors/lolo/ui/core/organisms/ui-entity-list.lolo +2 -0
  24. package/behaviors/lolo/ui/core/organisms/ui-entity-table.lolo +2 -0
  25. package/behaviors/lolo/ui/core/organisms/ui-timeline.lolo +2 -0
  26. package/behaviors/registry/factory-signatures.json +5018 -824
  27. package/behaviors/registry/ml/atoms/std-ml-classify.orb +622 -0
  28. package/behaviors/registry/ml/atoms/std-ml-exact-check.orb +505 -0
  29. package/behaviors/registry/ml/atoms/std-ml-infer.orb +770 -0
  30. package/behaviors/registry/ml/atoms/std-ml-label-capture.orb +367 -0
  31. package/behaviors/registry/ml/atoms/std-ml-lookup.orb +473 -0
  32. package/behaviors/registry/ml/atoms/std-ml-posterior.orb +669 -0
  33. package/behaviors/registry/ml/atoms/std-ml-similarity.orb +862 -0
  34. package/behaviors/registry/ml/molecules/std-escalating-decision.orb +1553 -0
  35. package/behaviors/registry/ml/molecules/std-knowledge-tracing.orb +577 -0
  36. package/behaviors/registry/ui/core/atoms/std-board.orb +90 -20
  37. package/behaviors/registry/ui/core/atoms/std-browse.orb +83 -48
  38. package/behaviors/registry/ui/core/atoms/std-calendar.orb +238 -3
  39. package/behaviors/registry/ui/core/atoms/std-file-store.orb +40 -0
  40. package/behaviors/registry/ui/core/atoms/std-version-history.orb +40 -0
  41. package/behaviors/registry/ui/core/atoms/ui-typography.orb +1 -1
  42. package/behaviors/registry/ui/core/molecules/ui-calendar-grid.orb +27 -0
  43. package/behaviors/registry/ui/core/molecules/ui-data-grid.orb +25 -12
  44. package/behaviors/registry/ui/core/molecules/ui-data-list.orb +26 -13
  45. package/behaviors/registry/ui/core/molecules/ui-filter-group.orb +86 -0
  46. package/behaviors/registry/ui/core/molecules/ui-search-input.orb +37 -1
  47. package/behaviors/registry/ui/core/molecules/ui-table-view.orb +25 -12
  48. package/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +13 -0
  49. package/behaviors/registry/ui/core/organisms/ui-entity-list.orb +21 -8
  50. package/behaviors/registry/ui/core/organisms/ui-entity-table.orb +13 -0
  51. package/behaviors/registry/ui/core/organisms/ui-timeline.orb +13 -0
  52. package/canonical-operators.json +30 -6
  53. package/dist/behaviors/behaviors-embeddings.json +134 -134
  54. package/dist/behaviors/exports-reader.js +2462 -2080
  55. package/dist/behaviors/functions/index.d.ts +725 -1
  56. package/dist/behaviors/functions/index.js +2437 -2081
  57. package/dist/behaviors/index.d.ts +1 -1
  58. package/dist/behaviors/index.js +2463 -2081
  59. package/dist/behaviors/knob-embeddings.json +1 -1
  60. package/dist/behaviors/query.js +2462 -2080
  61. package/dist/behaviors/registry/factory-signatures.json +5018 -824
  62. package/dist/behaviors/registry/ml/atoms/std-ml-classify.orb +622 -0
  63. package/dist/behaviors/registry/ml/atoms/std-ml-exact-check.orb +505 -0
  64. package/dist/behaviors/registry/ml/atoms/std-ml-infer.orb +770 -0
  65. package/dist/behaviors/registry/ml/atoms/std-ml-label-capture.orb +367 -0
  66. package/dist/behaviors/registry/ml/atoms/std-ml-lookup.orb +473 -0
  67. package/dist/behaviors/registry/ml/atoms/std-ml-posterior.orb +669 -0
  68. package/dist/behaviors/registry/ml/atoms/std-ml-similarity.orb +862 -0
  69. package/dist/behaviors/registry/ml/molecules/std-escalating-decision.orb +1553 -0
  70. package/dist/behaviors/registry/ml/molecules/std-knowledge-tracing.orb +577 -0
  71. package/dist/behaviors/registry/ui/core/atoms/std-board.orb +90 -20
  72. package/dist/behaviors/registry/ui/core/atoms/std-browse.orb +83 -48
  73. package/dist/behaviors/registry/ui/core/atoms/std-calendar.orb +238 -3
  74. package/dist/behaviors/registry/ui/core/atoms/std-file-store.orb +40 -0
  75. package/dist/behaviors/registry/ui/core/atoms/std-version-history.orb +40 -0
  76. package/dist/behaviors/registry/ui/core/atoms/ui-typography.orb +1 -1
  77. package/dist/behaviors/registry/ui/core/molecules/ui-calendar-grid.orb +27 -0
  78. package/dist/behaviors/registry/ui/core/molecules/ui-data-grid.orb +25 -12
  79. package/dist/behaviors/registry/ui/core/molecules/ui-data-list.orb +26 -13
  80. package/dist/behaviors/registry/ui/core/molecules/ui-filter-group.orb +86 -0
  81. package/dist/behaviors/registry/ui/core/molecules/ui-search-input.orb +37 -1
  82. package/dist/behaviors/registry/ui/core/molecules/ui-table-view.orb +25 -12
  83. package/dist/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +13 -0
  84. package/dist/behaviors/registry/ui/core/organisms/ui-entity-list.orb +21 -8
  85. package/dist/behaviors/registry/ui/core/organisms/ui-entity-table.orb +13 -0
  86. package/dist/behaviors/registry/ui/core/organisms/ui-timeline.orb +13 -0
  87. package/dist/behaviors-embeddings.json +134 -134
  88. package/dist/index.d.ts +1 -1
  89. package/dist/index.js +2498 -2088
  90. package/dist/knob-embeddings.json +1 -1
  91. package/dist/modules/array.js +28 -0
  92. package/dist/modules/contract.js +4 -4
  93. package/dist/modules/data.js +3 -3
  94. package/dist/modules/index.js +35 -7
  95. package/dist/registry/factory-signatures.json +5018 -824
  96. package/dist/registry.js +35 -7
  97. package/package.json +6 -5
@@ -373,6 +373,19 @@
373
373
  "eventId": "evt_01KXG04T5Q7ZFPSWYBZTKDFZEP",
374
374
  "from": "idle",
375
375
  "to": "idle"
376
+ },
377
+ {
378
+ "effects": [
379
+ [
380
+ "emit",
381
+ "VIEW",
382
+ {}
383
+ ]
384
+ ],
385
+ "event": "VIEW",
386
+ "eventId": "evt_01KXG04T5Q6H3S155F80B55SFP",
387
+ "from": "idle",
388
+ "to": "idle"
376
389
  }
377
390
  ]
378
391
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": "2.0.0",
3
3
  "description": "Canonical operator registry for Almadar. Generated from @almadar/std/modules. Consumed by orbital-compiler via include_str!.",
4
- "generated": "2026-07-11T04:18:15.730Z",
4
+ "generated": "2026-07-25T03:02:41.099Z",
5
5
  "categories": {
6
6
  "arithmetic": {
7
7
  "description": "Numeric operations",
@@ -343,6 +343,14 @@
343
343
  "description": "Equal to",
344
344
  "module": "core"
345
345
  },
346
+ "==": {
347
+ "category": "comparison",
348
+ "minArity": 2,
349
+ "maxArity": 2,
350
+ "returnType": "boolean",
351
+ "description": "Equal to (canonical .lolo spelling)",
352
+ "module": "core"
353
+ },
346
354
  ">": {
347
355
  "category": "comparison",
348
356
  "minArity": 2,
@@ -416,6 +424,14 @@
416
424
  "description": "Concatenate arrays",
417
425
  "module": "array"
418
426
  },
427
+ "array/cosine": {
428
+ "category": "std-array",
429
+ "minArity": 2,
430
+ "maxArity": 2,
431
+ "returnType": "number",
432
+ "description": "Cosine similarity between two numeric vectors, in [-1, 1] (1 = identical direction). The building block for \"is this answer semantically the reference answer\" checks over embeddings. Pure math — usable in guards and value position, unlike the async llm/* substrate operators.",
433
+ "module": "array"
434
+ },
419
435
  "array/count": {
420
436
  "category": "std-array",
421
437
  "minArity": 1,
@@ -573,6 +589,14 @@
573
589
  "description": "Minimum value (optionally by field)",
574
590
  "module": "array"
575
591
  },
592
+ "array/nearest": {
593
+ "category": "std-array",
594
+ "minArity": 2,
595
+ "maxArity": 2,
596
+ "returnType": "object",
597
+ "description": "Find the candidate vector nearest a query vector by cosine similarity. Returns { index, score, margin } — index/score of the best match, and margin (best score minus second-best), which is what makes an abstaining gate possible: a small margin means the top match is not confidently distinguished from the runner-up.",
598
+ "module": "array"
599
+ },
576
600
  "array/nth": {
577
601
  "category": "std-array",
578
602
  "minArity": 2,
@@ -997,16 +1021,16 @@
997
1021
  "category": "ml-contract",
998
1022
  "minArity": 2,
999
1023
  "maxArity": 2,
1000
- "returnType": "boolean",
1001
- "description": "Validate tensor against input contract",
1024
+ "returnType": "object",
1025
+ "description": "Validate tensor against input contract. Returns { valid, violations } — guard on `valid`, or read `violations` for the detail.",
1002
1026
  "module": "contract"
1003
1027
  },
1004
1028
  "contract/validate-output": {
1005
1029
  "category": "ml-contract",
1006
1030
  "minArity": 2,
1007
1031
  "maxArity": 2,
1008
- "returnType": "boolean",
1009
- "description": "Validate tensor against output contract",
1032
+ "returnType": "object",
1033
+ "description": "Validate tensor against output contract. Returns { valid, violations } — guard on `valid`, or read `violations` for the detail.",
1010
1034
  "module": "contract"
1011
1035
  },
1012
1036
  "contract/violations": {
@@ -1062,7 +1086,7 @@
1062
1086
  "minArity": 2,
1063
1087
  "maxArity": 2,
1064
1088
  "returnType": "array",
1065
- "description": "Train/val/test split",
1089
+ "description": "Train/validation split. Config carries `trainRatio` (default 0.8); the remainder is the validation split.",
1066
1090
  "module": "data"
1067
1091
  },
1068
1092
  "data/tokenize": {