@almadar/std 16.241.0 → 16.242.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 +134 -0
  8. package/behaviors/lolo/infra/atoms/std-page-treat.lolo +59 -0
  9. package/behaviors/lolo/infra/atoms/std-page-watch.lolo +86 -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 +867 -0
  55. package/behaviors/registry/infra/atoms/std-page-treat.orb +494 -0
  56. package/behaviors/registry/infra/atoms/std-page-watch.orb +554 -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
@@ -127,6 +127,42 @@
127
127
  "parent": "trt_01M3TYMQKZ74ZHT3AFPH8EZNNX",
128
128
  "renames": []
129
129
  },
130
+ "evt_01M42F8KCG9CMVRK0292G2ZCWV": {
131
+ "bakedName": "MemoriesForList",
132
+ "curName": "MemoriesForList",
133
+ "id": "evt_01M42F8KCG9CMVRK0292G2ZCWV",
134
+ "kind": "event",
135
+ "owner": "workspace",
136
+ "parent": "trt_01M3TYMQKZ74ZHT3AFPH8EZNNX",
137
+ "renames": []
138
+ },
139
+ "evt_01M42F8KCGF8KX280SVYVKSRG6": {
140
+ "bakedName": "LIST",
141
+ "curName": "LIST",
142
+ "id": "evt_01M42F8KCGF8KX280SVYVKSRG6",
143
+ "kind": "event",
144
+ "owner": "workspace",
145
+ "parent": "trt_01M3TYMQKZ74ZHT3AFPH8EZNNX",
146
+ "renames": []
147
+ },
148
+ "evt_01M42F8KCGT6JVRZPA43V95HGH": {
149
+ "bakedName": "ASSISTANT_MEMORIES_LOADED",
150
+ "curName": "ASSISTANT_MEMORIES_LOADED",
151
+ "id": "evt_01M42F8KCGT6JVRZPA43V95HGH",
152
+ "kind": "event",
153
+ "owner": "workspace",
154
+ "parent": "trt_01M3TYMQKZ74ZHT3AFPH8EZNNX",
155
+ "renames": []
156
+ },
157
+ "evt_01M42F8KCGTMHVJDK91H3GJWBE": {
158
+ "bakedName": "MemoryListFailed",
159
+ "curName": "MemoryListFailed",
160
+ "id": "evt_01M42F8KCGTMHVJDK91H3GJWBE",
161
+ "kind": "event",
162
+ "owner": "workspace",
163
+ "parent": "trt_01M3TYMQKZ74ZHT3AFPH8EZNNX",
164
+ "renames": []
165
+ },
130
166
  "orb_01KXG04EK04KQ6GTRHGM260CQS": {
131
167
  "bakedName": "AgentMemoryOrbital",
132
168
  "curName": "AgentMemoryOrbital",
@@ -294,6 +330,10 @@
294
330
  "kind": "call-service",
295
331
  "resource": "llm.embed"
296
332
  },
333
+ {
334
+ "kind": "emit",
335
+ "resource": "ASSISTANT_MEMORIES_LOADED"
336
+ },
297
337
  {
298
338
  "kind": "emit",
299
339
  "resource": "RECALLED"
@@ -352,7 +392,6 @@
352
392
  },
353
393
  {
354
394
  "name": "context",
355
- "required": true,
356
395
  "type": "string"
357
396
  }
358
397
  ],
@@ -360,6 +399,119 @@
360
399
  "synonyms": "recalled, remembered, context ready",
361
400
  "tier": "domain"
362
401
  },
402
+ {
403
+ "description": "What the assistant remembers for this person, newest first (empty when nothing is, or the list could not load).",
404
+ "event": "ASSISTANT_MEMORIES_LOADED",
405
+ "eventId": "evt_01M42F8KCGT6JVRZPA43V95HGH",
406
+ "payloadSchema": [
407
+ {
408
+ "entity": "AgentMemoryRow",
409
+ "name": "data",
410
+ "properties": [
411
+ {
412
+ "name": "id",
413
+ "required": true,
414
+ "type": "string"
415
+ },
416
+ {
417
+ "name": "content",
418
+ "required": true,
419
+ "type": "string"
420
+ },
421
+ {
422
+ "name": "createdAt",
423
+ "type": "number"
424
+ }
425
+ ],
426
+ "required": true,
427
+ "type": "[object]"
428
+ }
429
+ ],
430
+ "scope": "external",
431
+ "synonyms": "memories, what I remember",
432
+ "tier": "domain"
433
+ },
434
+ {
435
+ "event": "MemoriesForList",
436
+ "eventId": "evt_01M42F8KCG9CMVRK0292G2ZCWV",
437
+ "payloadSchema": [
438
+ {
439
+ "entity": "AgentMemory",
440
+ "name": "data",
441
+ "properties": [
442
+ {
443
+ "name": "id",
444
+ "required": true,
445
+ "type": "string"
446
+ },
447
+ {
448
+ "name": "ownerId",
449
+ "required": true,
450
+ "type": "string"
451
+ },
452
+ {
453
+ "name": "content",
454
+ "required": true,
455
+ "type": "string"
456
+ },
457
+ {
458
+ "name": "embedding",
459
+ "type": "[number]"
460
+ },
461
+ {
462
+ "name": "createdAt",
463
+ "type": "number"
464
+ },
465
+ {
466
+ "name": "pendingMessages",
467
+ "properties": [
468
+ {
469
+ "name": "role",
470
+ "type": "string"
471
+ },
472
+ {
473
+ "name": "content",
474
+ "required": true,
475
+ "type": "string"
476
+ }
477
+ ],
478
+ "type": "[object]"
479
+ },
480
+ {
481
+ "name": "pendingQuery",
482
+ "type": "string"
483
+ },
484
+ {
485
+ "name": "pendingContent",
486
+ "type": "string"
487
+ },
488
+ {
489
+ "name": "queryVector",
490
+ "type": "[number]"
491
+ }
492
+ ],
493
+ "type": "[object]"
494
+ }
495
+ ],
496
+ "scope": "internal",
497
+ "tier": "internal"
498
+ },
499
+ {
500
+ "event": "MemoryListFailed",
501
+ "eventId": "evt_01M42F8KCGTMHVJDK91H3GJWBE",
502
+ "payloadSchema": [
503
+ {
504
+ "name": "error",
505
+ "type": "string"
506
+ },
507
+ {
508
+ "name": "code",
509
+ "type": "string"
510
+ }
511
+ ],
512
+ "scope": "internal",
513
+ "tier": "internal"
514
+ },
363
515
  {
364
516
  "description": "A new memory was stored — payload is the created AgentMemory row itself.",
365
517
  "event": "MEMORY_STORED",
@@ -489,6 +641,16 @@
489
641
  "id": "trt_01M3TYMQKZ74ZHT3AFPH8EZNNX",
490
642
  "linkedEntity": "AgentMemory",
491
643
  "linkedEntityId": "ent_01KXG04EK05QG9T8V7MTF554J2",
644
+ "listens": [
645
+ {
646
+ "event": "ASSISTANT_MEMORIES_REQUESTED",
647
+ "source": {
648
+ "kind": "any"
649
+ },
650
+ "triggers": "LIST",
651
+ "triggersId": "evt_01M42F8KCGF8KX280SVYVKSRG6"
652
+ }
653
+ ],
492
654
  "name": "AgentMemoryRecall",
493
655
  "scope": "instance",
494
656
  "stateMachine": {
@@ -506,6 +668,93 @@
506
668
  "synonyms": "remembered, stored, saved",
507
669
  "tier": "domain"
508
670
  },
671
+ {
672
+ "description": "List what the assistant remembers for this person.",
673
+ "id": "evt_01M42F8KCGF8KX280SVYVKSRG6",
674
+ "key": "LIST",
675
+ "name": "List"
676
+ },
677
+ {
678
+ "id": "evt_01M42F8KCG9CMVRK0292G2ZCWV",
679
+ "key": "MemoriesForList",
680
+ "name": "Memories for list",
681
+ "payloadSchema": [
682
+ {
683
+ "entity": "AgentMemory",
684
+ "name": "data",
685
+ "properties": [
686
+ {
687
+ "name": "id",
688
+ "required": true,
689
+ "type": "string"
690
+ },
691
+ {
692
+ "name": "ownerId",
693
+ "required": true,
694
+ "type": "string"
695
+ },
696
+ {
697
+ "name": "content",
698
+ "required": true,
699
+ "type": "string"
700
+ },
701
+ {
702
+ "name": "embedding",
703
+ "type": "[number]"
704
+ },
705
+ {
706
+ "name": "createdAt",
707
+ "type": "number"
708
+ },
709
+ {
710
+ "name": "pendingMessages",
711
+ "properties": [
712
+ {
713
+ "name": "role",
714
+ "type": "string"
715
+ },
716
+ {
717
+ "name": "content",
718
+ "required": true,
719
+ "type": "string"
720
+ }
721
+ ],
722
+ "type": "[object]"
723
+ },
724
+ {
725
+ "name": "pendingQuery",
726
+ "type": "string"
727
+ },
728
+ {
729
+ "name": "pendingContent",
730
+ "type": "string"
731
+ },
732
+ {
733
+ "name": "queryVector",
734
+ "type": "[number]"
735
+ }
736
+ ],
737
+ "type": "[object]"
738
+ }
739
+ ],
740
+ "tier": "internal"
741
+ },
742
+ {
743
+ "id": "evt_01M42F8KCGTMHVJDK91H3GJWBE",
744
+ "key": "MemoryListFailed",
745
+ "name": "Memory list failed",
746
+ "payloadSchema": [
747
+ {
748
+ "name": "error",
749
+ "type": "string"
750
+ },
751
+ {
752
+ "name": "code",
753
+ "type": "string"
754
+ }
755
+ ],
756
+ "tier": "internal"
757
+ },
509
758
  {
510
759
  "description": "Recall what is relevant to this conversation's last turn.",
511
760
  "id": "evt_01M3TYMQKZXAVRV1YVNJS591F0",
@@ -673,12 +922,43 @@
673
922
  },
674
923
  {
675
924
  "name": "context",
676
- "required": true,
677
925
  "type": "string"
678
926
  }
679
927
  ],
680
928
  "synonyms": "recalled, remembered, context ready",
681
929
  "tier": "domain"
930
+ },
931
+ {
932
+ "description": "What the assistant remembers for this person, newest first (empty when nothing is, or the list could not load).",
933
+ "id": "evt_01M42F8KCGT6JVRZPA43V95HGH",
934
+ "key": "ASSISTANT_MEMORIES_LOADED",
935
+ "name": "Assistant Memories Loaded",
936
+ "payloadSchema": [
937
+ {
938
+ "entity": "AgentMemoryRow",
939
+ "name": "data",
940
+ "properties": [
941
+ {
942
+ "name": "id",
943
+ "required": true,
944
+ "type": "string"
945
+ },
946
+ {
947
+ "name": "content",
948
+ "required": true,
949
+ "type": "string"
950
+ },
951
+ {
952
+ "name": "createdAt",
953
+ "type": "number"
954
+ }
955
+ ],
956
+ "required": true,
957
+ "type": "[object]"
958
+ }
959
+ ],
960
+ "synonyms": "memories, what I remember",
961
+ "tier": "domain"
682
962
  }
683
963
  ],
684
964
  "states": [
@@ -720,6 +1000,80 @@
720
1000
  "from": "ready",
721
1001
  "to": "ready"
722
1002
  },
1003
+ {
1004
+ "effects": [
1005
+ [
1006
+ "fetch",
1007
+ "AgentMemory",
1008
+ {
1009
+ "emit": {
1010
+ "failure": "MemoryListFailed",
1011
+ "success": "MemoriesForList"
1012
+ }
1013
+ }
1014
+ ]
1015
+ ],
1016
+ "event": "LIST",
1017
+ "eventId": "evt_01M42F8KCGF8KX280SVYVKSRG6",
1018
+ "from": "ready",
1019
+ "to": "ready"
1020
+ },
1021
+ {
1022
+ "effects": [
1023
+ [
1024
+ "emit",
1025
+ "ASSISTANT_MEMORIES_LOADED",
1026
+ {
1027
+ "data": [
1028
+ "array/map",
1029
+ [
1030
+ "array/sort",
1031
+ "@payload.data",
1032
+ "createdAt",
1033
+ "desc"
1034
+ ],
1035
+ [
1036
+ "fn",
1037
+ "item",
1038
+ {
1039
+ "content": "@item.content",
1040
+ "createdAt": "@item.createdAt",
1041
+ "id": "@item.id"
1042
+ }
1043
+ ]
1044
+ ]
1045
+ }
1046
+ ]
1047
+ ],
1048
+ "event": "MemoriesForList",
1049
+ "eventId": "evt_01M42F8KCG9CMVRK0292G2ZCWV",
1050
+ "from": "ready",
1051
+ "to": "ready"
1052
+ },
1053
+ {
1054
+ "effects": [
1055
+ [
1056
+ "emit",
1057
+ "ASSISTANT_MEMORIES_LOADED",
1058
+ {
1059
+ "data": []
1060
+ }
1061
+ ],
1062
+ [
1063
+ "render-ui",
1064
+ "toast",
1065
+ {
1066
+ "message": "@payload.error",
1067
+ "type": "alert",
1068
+ "variant": "error"
1069
+ }
1070
+ ]
1071
+ ],
1072
+ "event": "MemoryListFailed",
1073
+ "eventId": "evt_01M42F8KCGTMHVJDK91H3GJWBE",
1074
+ "from": "ready",
1075
+ "to": "ready"
1076
+ },
723
1077
  {
724
1078
  "effects": [
725
1079
  [
@@ -1346,6 +1700,22 @@
1346
1700
  "required": true,
1347
1701
  "type": "string"
1348
1702
  }
1703
+ ],
1704
+ "AgentMemoryRow": [
1705
+ {
1706
+ "name": "id",
1707
+ "required": true,
1708
+ "type": "string"
1709
+ },
1710
+ {
1711
+ "name": "content",
1712
+ "required": true,
1713
+ "type": "string"
1714
+ },
1715
+ {
1716
+ "name": "createdAt",
1717
+ "type": "number"
1718
+ }
1349
1719
  ]
1350
1720
  }
1351
1721
  }