@almadar/std 16.245.0 → 16.246.1

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 (70) hide show
  1. package/behaviors/behaviors-registry.json +534 -176
  2. package/behaviors/lolo/agent/atoms/std-agent-context.lolo +9 -4
  3. package/behaviors/lolo/agent/atoms/std-agent-memory.lolo +9 -4
  4. package/behaviors/lolo/agent/atoms/std-agent-proposal.lolo +9 -4
  5. package/behaviors/lolo/agent/atoms/std-agent-session.lolo +9 -4
  6. package/behaviors/lolo/agent/atoms/std-agent-suggestions.lolo +9 -4
  7. package/behaviors/lolo/agent/atoms/std-agent-tool-loop.lolo +9 -4
  8. package/behaviors/lolo/agent/organisms/std-agent-assistant.lolo +9 -4
  9. package/behaviors/lolo/ui/core/atoms/ui-svg-flow.lolo +1 -1
  10. package/behaviors/lolo/ui/core/molecules/ui-import-progress.lolo +1 -1
  11. package/behaviors/lolo/ui/game/atoms/ui-canvas.lolo +3 -3
  12. package/behaviors/lolo/ui/game/atoms/ui-control-grid.lolo +3 -3
  13. package/behaviors/lolo/ui/game/atoms/ui-draw-group.lolo +1 -1
  14. package/behaviors/lolo/ui/game/atoms/ui-draw-mesh.lolo +1 -1
  15. package/behaviors/lolo/ui/game/atoms/ui-draw-skinned-mesh.lolo +3 -3
  16. package/behaviors/lolo/ui/learning/atoms/ui-biology-canvas.lolo +3 -3
  17. package/behaviors/lolo/ui/learning/atoms/ui-chemistry-canvas.lolo +3 -3
  18. package/behaviors/lolo/ui/learning/atoms/ui-physics-canvas.lolo +3 -3
  19. package/behaviors/lolo-behavior-contracts.json +1 -1
  20. package/behaviors/registry/agent/atoms/std-agent-context.orb +53 -67
  21. package/behaviors/registry/agent/atoms/std-agent-memory.orb +14 -51
  22. package/behaviors/registry/agent/atoms/std-agent-proposal.orb +50 -20
  23. package/behaviors/registry/agent/atoms/std-agent-session.orb +84 -91
  24. package/behaviors/registry/agent/atoms/std-agent-suggestions.orb +61 -24
  25. package/behaviors/registry/agent/atoms/std-agent-tool-loop.orb +61 -45
  26. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +63 -26
  27. package/behaviors/registry/factory-signatures.json +1 -1
  28. package/behaviors/registry/ui/avl/atoms/ui-avl-state-machine.orb +2 -2
  29. package/behaviors/registry/ui/avl/atoms/ui-avl-transition-explainer.orb +2 -2
  30. package/behaviors/registry/ui/avl/atoms/ui-behavior-view.orb +2 -2
  31. package/behaviors/registry/ui/avl/atoms/ui-module-card.orb +2 -2
  32. package/behaviors/registry/ui/core/atoms/ui-svg-flow.orb +11 -4
  33. package/behaviors/registry/ui/core/molecules/ui-agent-chat-feed.orb +1 -1
  34. package/behaviors/registry/ui/core/molecules/ui-data-grid.orb +2 -2
  35. package/behaviors/registry/ui/core/molecules/ui-import-progress.orb +1 -1
  36. package/behaviors/registry/ui/core/molecules/ui-swipeable-row.orb +2 -2
  37. package/behaviors/registry/ui/core/molecules/ui-table-view.orb +2 -2
  38. package/behaviors/registry/ui/core/molecules/ui-wizard-container.orb +3 -3
  39. package/behaviors/registry/ui/core/organisms/ui-detail-panel.orb +4 -4
  40. package/behaviors/registry/ui/core/organisms/ui-form-section.orb +4 -4
  41. package/behaviors/registry/ui/core/organisms/ui-form.orb +4 -4
  42. package/behaviors/registry/ui/core/organisms/ui-state-machine-view.orb +136 -2
  43. package/behaviors/registry/ui/core/templates/ui-dashboard-layout.orb +3 -2
  44. package/behaviors/registry/ui/game/atoms/ui-canvas.orb +51 -18
  45. package/behaviors/registry/ui/game/atoms/ui-control-grid.orb +3 -3
  46. package/behaviors/registry/ui/game/atoms/ui-draw-group.orb +12 -5
  47. package/behaviors/registry/ui/game/atoms/ui-draw-mesh.orb +12 -5
  48. package/behaviors/registry/ui/game/atoms/ui-draw-skinned-mesh.orb +39 -14
  49. package/behaviors/registry/ui/learning/atoms/ui-biology-canvas.orb +51 -18
  50. package/behaviors/registry/ui/learning/atoms/ui-chemistry-canvas.orb +51 -18
  51. package/behaviors/registry/ui/learning/atoms/ui-physics-canvas.orb +51 -18
  52. package/canonical-operators.json +5 -5
  53. package/dist/behaviors/exports-reader.js +228 -218
  54. package/dist/behaviors/functions/index.d.ts +8 -8
  55. package/dist/behaviors/functions/index.js +228 -218
  56. package/dist/behaviors/index.js +274 -255
  57. package/dist/behaviors/knob-embeddings.d.ts +16 -2
  58. package/dist/behaviors/knob-embeddings.js +47 -38
  59. package/dist/behaviors/query.js +228 -218
  60. package/dist/behaviors-embeddings.hash.json +3 -3
  61. package/dist/behaviors-embeddings.json +1 -1
  62. package/dist/behaviors-registry.json +534 -176
  63. package/dist/index.js +278 -259
  64. package/dist/knob-embeddings.hash.json +3 -3
  65. package/dist/knob-embeddings.json +7 -3
  66. package/dist/modules/array.js +4 -4
  67. package/dist/modules/index.js +4 -4
  68. package/dist/registry/factory-signatures.json +1 -1
  69. package/dist/registry.js +4 -4
  70. package/package.json +2 -2
@@ -639,26 +639,49 @@
639
639
  "description": "The declared inputs it may fire and the entities it may read, as the signed-in person. An importing app restates the list with the proposal input addressed by its local orbital name (`{ event: Suggestions.AgentSuggestionProposer.PROPOSE_SUGGESTION }`), which the agent can never propose without.",
640
640
  "items": {
641
641
  "properties": {
642
- "event": {
643
- "name": "event",
644
- "required": false,
645
- "type": "event"
642
+ "AgentToolInput": {
643
+ "name": "AgentToolInput",
644
+ "properties": {
645
+ "event": {
646
+ "name": "event",
647
+ "required": true,
648
+ "type": "EventAddress"
649
+ }
650
+ },
651
+ "type": "object"
646
652
  },
647
- "read": {
648
- "name": "read",
649
- "required": false,
650
- "type": "string"
653
+ "AgentToolRead": {
654
+ "name": "AgentToolRead",
655
+ "properties": {
656
+ "read": {
657
+ "name": "read",
658
+ "required": true,
659
+ "type": "string"
660
+ }
661
+ },
662
+ "type": "object"
651
663
  },
652
- "scope": {
653
- "name": "scope",
654
- "required": false,
655
- "type": "string",
656
- "values": [
657
- "declared"
658
- ]
664
+ "AgentToolScope": {
665
+ "name": "AgentToolScope",
666
+ "properties": {
667
+ "scope": {
668
+ "name": "scope",
669
+ "required": true,
670
+ "type": "string",
671
+ "values": [
672
+ "declared"
673
+ ]
674
+ }
675
+ },
676
+ "type": "object"
659
677
  }
660
678
  },
661
- "type": "object"
679
+ "type": "union",
680
+ "values": [
681
+ "AgentToolScope",
682
+ "AgentToolInput",
683
+ "AgentToolRead"
684
+ ]
662
685
  },
663
686
  "label": "What may the agent do?",
664
687
  "tier": "domain",
@@ -4283,17 +4306,24 @@
4283
4306
  "type": "string"
4284
4307
  }
4285
4308
  ],
4286
- "AgentTool": [
4309
+ "AgentToolInput": [
4287
4310
  {
4288
4311
  "name": "event",
4289
- "type": "event"
4290
- },
4312
+ "required": true,
4313
+ "type": "EventAddress"
4314
+ }
4315
+ ],
4316
+ "AgentToolRead": [
4291
4317
  {
4292
4318
  "name": "read",
4319
+ "required": true,
4293
4320
  "type": "string"
4294
- },
4321
+ }
4322
+ ],
4323
+ "AgentToolScope": [
4295
4324
  {
4296
4325
  "name": "scope",
4326
+ "required": true,
4297
4327
  "type": "string"
4298
4328
  }
4299
4329
  ],
@@ -4951,17 +4981,24 @@
4951
4981
  "type": "string"
4952
4982
  }
4953
4983
  ],
4954
- "AgentTool": [
4984
+ "AgentToolInput": [
4955
4985
  {
4956
4986
  "name": "event",
4957
- "type": "event"
4958
- },
4987
+ "required": true,
4988
+ "type": "EventAddress"
4989
+ }
4990
+ ],
4991
+ "AgentToolRead": [
4959
4992
  {
4960
4993
  "name": "read",
4994
+ "required": true,
4961
4995
  "type": "string"
4962
- },
4996
+ }
4997
+ ],
4998
+ "AgentToolScope": [
4963
4999
  {
4964
5000
  "name": "scope",
5001
+ "required": true,
4965
5002
  "type": "string"
4966
5003
  }
4967
5004
  ],
@@ -209,26 +209,49 @@
209
209
  "description": "The declared inputs it may fire (`{ event: Trait.EVENT }`) and the entities it may read (`{ read: Entity }`), as the signed-in user.",
210
210
  "items": {
211
211
  "properties": {
212
- "event": {
213
- "name": "event",
214
- "required": false,
215
- "type": "event"
212
+ "AgentToolInput": {
213
+ "name": "AgentToolInput",
214
+ "properties": {
215
+ "event": {
216
+ "name": "event",
217
+ "required": true,
218
+ "type": "EventAddress"
219
+ }
220
+ },
221
+ "type": "object"
216
222
  },
217
- "read": {
218
- "name": "read",
219
- "required": false,
220
- "type": "string"
223
+ "AgentToolRead": {
224
+ "name": "AgentToolRead",
225
+ "properties": {
226
+ "read": {
227
+ "name": "read",
228
+ "required": true,
229
+ "type": "string"
230
+ }
231
+ },
232
+ "type": "object"
221
233
  },
222
- "scope": {
223
- "name": "scope",
224
- "required": false,
225
- "type": "string",
226
- "values": [
227
- "declared"
228
- ]
234
+ "AgentToolScope": {
235
+ "name": "AgentToolScope",
236
+ "properties": {
237
+ "scope": {
238
+ "name": "scope",
239
+ "required": true,
240
+ "type": "string",
241
+ "values": [
242
+ "declared"
243
+ ]
244
+ }
245
+ },
246
+ "type": "object"
229
247
  }
230
248
  },
231
- "type": "object"
249
+ "type": "union",
250
+ "values": [
251
+ "AgentToolScope",
252
+ "AgentToolInput",
253
+ "AgentToolRead"
254
+ ]
232
255
  },
233
256
  "label": "What may the assistant do?",
234
257
  "synonyms": "allowlist, abilities, actions, permissions",
@@ -625,21 +648,7 @@
625
648
  },
626
649
  {
627
650
  "name": "tools",
628
- "properties": [
629
- {
630
- "name": "event",
631
- "type": "event"
632
- },
633
- {
634
- "name": "read",
635
- "type": "string"
636
- },
637
- {
638
- "name": "scope",
639
- "type": "string"
640
- }
641
- ],
642
- "type": "[object]"
651
+ "type": "[AgentTool]"
643
652
  },
644
653
  {
645
654
  "name": "ephemeral",
@@ -1436,20 +1445,6 @@
1436
1445
  "type": "number"
1437
1446
  }
1438
1447
  ],
1439
- "AgentTool": [
1440
- {
1441
- "name": "event",
1442
- "type": "event"
1443
- },
1444
- {
1445
- "name": "read",
1446
- "type": "string"
1447
- },
1448
- {
1449
- "name": "scope",
1450
- "type": "string"
1451
- }
1452
- ],
1453
1448
  "AgentToolCallActivity": [
1454
1449
  {
1455
1450
  "name": "type",
@@ -1480,6 +1475,20 @@
1480
1475
  "type": "boolean"
1481
1476
  }
1482
1477
  ],
1478
+ "AgentToolInput": [
1479
+ {
1480
+ "name": "event",
1481
+ "required": true,
1482
+ "type": "EventAddress"
1483
+ }
1484
+ ],
1485
+ "AgentToolRead": [
1486
+ {
1487
+ "name": "read",
1488
+ "required": true,
1489
+ "type": "string"
1490
+ }
1491
+ ],
1483
1492
  "AgentToolResultActivity": [
1484
1493
  {
1485
1494
  "name": "type",
@@ -1519,6 +1528,13 @@
1519
1528
  "type": "number"
1520
1529
  }
1521
1530
  ],
1531
+ "AgentToolScope": [
1532
+ {
1533
+ "name": "scope",
1534
+ "required": true,
1535
+ "type": "string"
1536
+ }
1537
+ ],
1522
1538
  "AgentUsage": [
1523
1539
  {
1524
1540
  "name": "promptTokens",
@@ -273,26 +273,49 @@
273
273
  "description": "As the signed-in user: `{ scope: declared }` (the default) gives it every external input the program declares and a read over every persisted entity, so each building block's declared inputs become its abilities; or list them — `{ event: Orbital.Trait.EVENT }` for one input, `{ read: Entity }` for one entity.",
274
274
  "items": {
275
275
  "properties": {
276
- "event": {
277
- "name": "event",
278
- "required": false,
279
- "type": "event"
280
- },
281
- "read": {
282
- "name": "read",
283
- "required": false,
284
- "type": "string"
285
- },
286
- "scope": {
287
- "name": "scope",
288
- "required": false,
289
- "type": "string",
290
- "values": [
291
- "declared"
292
- ]
276
+ "AgentToolInput": {
277
+ "name": "AgentToolInput",
278
+ "properties": {
279
+ "event": {
280
+ "name": "event",
281
+ "required": true,
282
+ "type": "EventAddress"
283
+ }
284
+ },
285
+ "type": "object"
286
+ },
287
+ "AgentToolRead": {
288
+ "name": "AgentToolRead",
289
+ "properties": {
290
+ "read": {
291
+ "name": "read",
292
+ "required": true,
293
+ "type": "string"
294
+ }
295
+ },
296
+ "type": "object"
297
+ },
298
+ "AgentToolScope": {
299
+ "name": "AgentToolScope",
300
+ "properties": {
301
+ "scope": {
302
+ "name": "scope",
303
+ "required": true,
304
+ "type": "string",
305
+ "values": [
306
+ "declared"
307
+ ]
308
+ }
309
+ },
310
+ "type": "object"
293
311
  }
294
312
  },
295
- "type": "object"
313
+ "type": "union",
314
+ "values": [
315
+ "AgentToolScope",
316
+ "AgentToolInput",
317
+ "AgentToolRead"
318
+ ]
296
319
  },
297
320
  "label": "What may the assistant do?",
298
321
  "synonyms": "allowlist, abilities, actions, permissions",
@@ -623,17 +646,24 @@
623
646
  "type": "string"
624
647
  }
625
648
  ],
626
- "AgentTool": [
649
+ "AgentToolInput": [
627
650
  {
628
651
  "name": "event",
629
- "type": "event"
630
- },
652
+ "required": true,
653
+ "type": "EventAddress"
654
+ }
655
+ ],
656
+ "AgentToolRead": [
631
657
  {
632
658
  "name": "read",
659
+ "required": true,
633
660
  "type": "string"
634
- },
661
+ }
662
+ ],
663
+ "AgentToolScope": [
635
664
  {
636
665
  "name": "scope",
666
+ "required": true,
637
667
  "type": "string"
638
668
  }
639
669
  ],
@@ -857,17 +887,24 @@
857
887
  "type": "string"
858
888
  }
859
889
  ],
860
- "AgentTool": [
890
+ "AgentToolInput": [
861
891
  {
862
892
  "name": "event",
863
- "type": "event"
864
- },
893
+ "required": true,
894
+ "type": "EventAddress"
895
+ }
896
+ ],
897
+ "AgentToolRead": [
865
898
  {
866
899
  "name": "read",
900
+ "required": true,
867
901
  "type": "string"
868
- },
902
+ }
903
+ ],
904
+ "AgentToolScope": [
869
905
  {
870
906
  "name": "scope",
907
+ "required": true,
871
908
  "type": "string"
872
909
  }
873
910
  ],