@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
@@ -1,5 +1,5 @@
1
1
  {
2
- "description": "std-agent-tool-loop — answers a conversation by operating the running app as the caller, through `call-service llm call-tools`. The `tools` allowlist names declared external inputs (addressed like a listens source: `Trait.EVENT`, `Orbital.Trait.EVENT`) and entities to read; each input fires as the signed-in user through the ordinary dispatch (guards and entity policies apply) and each read returns only the rows the caller may read. Headless: the conversation UI (std-agent-session) shows the reply; a failure shows as a toast. CONVERSE carries the conversation (and optionally what std-agent-memory recalled); STEP carries each step live while it works (a model call, a tool it used, what the app answered) to the asking tab; REPLIED carries the reply, every step and the token usage; REPLY_FAILED carries the error. Compose with std-agent-session (the conversation) and std-agent-trace (the step record).",
2
+ "description": "std-agent-tool-loop — answers a conversation by operating the running app as the caller, through `call-service llm call-tools`. Its `tools` are `{ scope: declared }` (every declared external input plus a read over every persisted entity), or named declared inputs (addressed like a listens source: `Trait.EVENT`, `Orbital.Trait.EVENT`) and entities to read; each input fires as the signed-in user through the ordinary dispatch (guards and entity policies apply) and each read returns only the rows the caller may read. Headless: the conversation UI (std-agent-session) shows the reply; a failure shows as a toast. CONVERSE carries the conversation (and optionally what std-agent-memory recalled); ASSISTANT_STEP carries each step live while it works (a model call, a tool it used, what the app answered) to the asking tab; ASSISTANT_REPLIED carries the reply, every step and the token usage; ASSISTANT_REPLY_FAILED carries the error. These names are the assistant contract std-agent-session's conversation hears from any orbital. Compose with std-agent-session (the conversation) and std-agent-trace (the step record).",
3
3
  "ledger": {
4
4
  "entries": {
5
5
  "ent_01M3TYMQFVS7RJC2HPKXYEF2VR": {
@@ -10,15 +10,6 @@
10
10
  "owner": "workspace",
11
11
  "renames": []
12
12
  },
13
- "evt_01M3TYMQFV2QMJB3DDDPEZGXMD": {
14
- "bakedName": "REPLIED",
15
- "curName": "REPLIED",
16
- "id": "evt_01M3TYMQFV2QMJB3DDDPEZGXMD",
17
- "kind": "event",
18
- "owner": "workspace",
19
- "parent": "trt_01M3TYMQFVRCVPTPEX7MQ97HQP",
20
- "renames": []
21
- },
22
13
  "evt_01M3TYMQFVAN072R0C2Z5X5NPQ": {
23
14
  "bakedName": "CONVERSE",
24
15
  "curName": "CONVERSE",
@@ -46,28 +37,37 @@
46
37
  "parent": "trt_01M3TYMQFVRCVPTPEX7MQ97HQP",
47
38
  "renames": []
48
39
  },
49
- "evt_01M3TYMQFVSHRQ13G34DK0MC45": {
50
- "bakedName": "REPLY_FAILED",
51
- "curName": "REPLY_FAILED",
52
- "id": "evt_01M3TYMQFVSHRQ13G34DK0MC45",
40
+ "evt_01M3TYMQFVZA5GN37VNWYNEAZ3": {
41
+ "bakedName": "INIT",
42
+ "curName": "INIT",
43
+ "id": "evt_01M3TYMQFVZA5GN37VNWYNEAZ3",
53
44
  "kind": "event",
54
45
  "owner": "workspace",
55
46
  "parent": "trt_01M3TYMQFVRCVPTPEX7MQ97HQP",
56
47
  "renames": []
57
48
  },
58
- "evt_01M3TYMQFVZA5GN37VNWYNEAZ3": {
59
- "bakedName": "INIT",
60
- "curName": "INIT",
61
- "id": "evt_01M3TYMQFVZA5GN37VNWYNEAZ3",
49
+ "evt_01M41HQTKHH12EZ3SPKY3ZWJC6": {
50
+ "bakedName": "ASSISTANT_REPLIED",
51
+ "curName": "ASSISTANT_REPLIED",
52
+ "id": "evt_01M41HQTKHH12EZ3SPKY3ZWJC6",
53
+ "kind": "event",
54
+ "owner": "workspace",
55
+ "parent": "trt_01M3TYMQFVRCVPTPEX7MQ97HQP",
56
+ "renames": []
57
+ },
58
+ "evt_01M41HQTKHY7NH7DGXJJB1MW8Q": {
59
+ "bakedName": "ASSISTANT_STEP",
60
+ "curName": "ASSISTANT_STEP",
61
+ "id": "evt_01M41HQTKHY7NH7DGXJJB1MW8Q",
62
62
  "kind": "event",
63
63
  "owner": "workspace",
64
64
  "parent": "trt_01M3TYMQFVRCVPTPEX7MQ97HQP",
65
65
  "renames": []
66
66
  },
67
- "evt_01M3WC4PHR1BMBKEGXAB5KXXA9": {
68
- "bakedName": "STEP",
69
- "curName": "STEP",
70
- "id": "evt_01M3WC4PHR1BMBKEGXAB5KXXA9",
67
+ "evt_01M41HQTKHZWNXEYS7RAWWJE6S": {
68
+ "bakedName": "ASSISTANT_REPLY_FAILED",
69
+ "curName": "ASSISTANT_REPLY_FAILED",
70
+ "id": "evt_01M41HQTKHZWNXEYS7RAWWJE6S",
71
71
  "kind": "event",
72
72
  "owner": "workspace",
73
73
  "parent": "trt_01M3TYMQFVRCVPTPEX7MQ97HQP",
@@ -187,6 +187,14 @@
187
187
  "name": "read",
188
188
  "required": false,
189
189
  "type": "string"
190
+ },
191
+ "scope": {
192
+ "name": "scope",
193
+ "required": false,
194
+ "type": "string",
195
+ "values": [
196
+ "declared"
197
+ ]
190
198
  }
191
199
  },
192
200
  "type": "object"
@@ -204,11 +212,11 @@
204
212
  },
205
213
  {
206
214
  "kind": "emit",
207
- "resource": "REPLIED"
215
+ "resource": "ASSISTANT_REPLIED"
208
216
  },
209
217
  {
210
218
  "kind": "emit",
211
- "resource": "REPLY_FAILED"
219
+ "resource": "ASSISTANT_REPLY_FAILED"
212
220
  },
213
221
  {
214
222
  "kind": "render-ui",
@@ -230,8 +238,8 @@
230
238
  "emits": [
231
239
  {
232
240
  "description": "One thing the assistant just did, live while it works: a model call, a tool it used, or what the app answered. Delivered to the asking tab only.",
233
- "event": "STEP",
234
- "eventId": "evt_01M3WC4PHR1BMBKEGXAB5KXXA9",
241
+ "event": "ASSISTANT_STEP",
242
+ "eventId": "evt_01M41HQTKHY7NH7DGXJJB1MW8Q",
235
243
  "payloadSchema": [
236
244
  {
237
245
  "name": "activity",
@@ -405,8 +413,8 @@
405
413
  },
406
414
  {
407
415
  "description": "The assistant answered; carries every tool step it took and the tokens it used.",
408
- "event": "REPLIED",
409
- "eventId": "evt_01M3TYMQFV2QMJB3DDDPEZGXMD",
416
+ "event": "ASSISTANT_REPLIED",
417
+ "eventId": "evt_01M41HQTKHH12EZ3SPKY3ZWJC6",
410
418
  "payloadSchema": [
411
419
  {
412
420
  "name": "reply",
@@ -452,8 +460,8 @@
452
460
  },
453
461
  {
454
462
  "description": "The assistant could not answer (model unavailable, or out of steps).",
455
- "event": "REPLY_FAILED",
456
- "eventId": "evt_01M3TYMQFVSHRQ13G34DK0MC45",
463
+ "event": "ASSISTANT_REPLY_FAILED",
464
+ "eventId": "evt_01M41HQTKHZWNXEYS7RAWWJE6S",
457
465
  "payloadSchema": [
458
466
  {
459
467
  "name": "error",
@@ -628,9 +636,9 @@
628
636
  },
629
637
  {
630
638
  "description": "One thing the assistant just did, live while it works: a model call, a tool it used, or what the app answered. Delivered to the asking tab only.",
631
- "id": "evt_01M3WC4PHR1BMBKEGXAB5KXXA9",
632
- "key": "STEP",
633
- "name": "Step",
639
+ "id": "evt_01M41HQTKHY7NH7DGXJJB1MW8Q",
640
+ "key": "ASSISTANT_STEP",
641
+ "name": "Assistant Step",
634
642
  "payloadSchema": [
635
643
  {
636
644
  "name": "activity",
@@ -803,9 +811,9 @@
803
811
  },
804
812
  {
805
813
  "description": "The assistant answered; carries every tool step it took and the tokens it used.",
806
- "id": "evt_01M3TYMQFV2QMJB3DDDPEZGXMD",
807
- "key": "REPLIED",
808
- "name": "Replied",
814
+ "id": "evt_01M41HQTKHH12EZ3SPKY3ZWJC6",
815
+ "key": "ASSISTANT_REPLIED",
816
+ "name": "Assistant Replied",
809
817
  "payloadSchema": [
810
818
  {
811
819
  "name": "reply",
@@ -850,9 +858,9 @@
850
858
  },
851
859
  {
852
860
  "description": "The assistant could not answer (model unavailable, or out of steps).",
853
- "id": "evt_01M3TYMQFVSHRQ13G34DK0MC45",
854
- "key": "REPLY_FAILED",
855
- "name": "Reply Failed",
861
+ "id": "evt_01M41HQTKHZWNXEYS7RAWWJE6S",
862
+ "key": "ASSISTANT_REPLY_FAILED",
863
+ "name": "Assistant Reply Failed",
856
864
  "payloadSchema": [
857
865
  {
858
866
  "name": "error",
@@ -925,7 +933,7 @@
925
933
  {
926
934
  "emit": {
927
935
  "failure": "ASK_FAILED",
928
- "onMessage": "STEP",
936
+ "onMessage": "ASSISTANT_STEP",
929
937
  "success": "ANSWERED"
930
938
  }
931
939
  }
@@ -950,7 +958,7 @@
950
958
  ],
951
959
  [
952
960
  "emit",
953
- "REPLIED",
961
+ "ASSISTANT_REPLIED",
954
962
  {
955
963
  "reply": "@payload.reply",
956
964
  "steps": "@payload.steps",
@@ -977,7 +985,7 @@
977
985
  ],
978
986
  [
979
987
  "emit",
980
- "REPLY_FAILED",
988
+ "ASSISTANT_REPLY_FAILED",
981
989
  {
982
990
  "error": "@payload.error"
983
991
  }
@@ -1154,6 +1162,10 @@
1154
1162
  {
1155
1163
  "name": "read",
1156
1164
  "type": "string"
1165
+ },
1166
+ {
1167
+ "name": "scope",
1168
+ "type": "string"
1157
1169
  }
1158
1170
  ],
1159
1171
  "AgentToolCallActivity": [