@almadar/std 16.236.0 → 16.238.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 (583) hide show
  1. package/behaviors/behaviors-registry.json +57874 -1895
  2. package/behaviors/lolo/agent/atoms/std-agent-context.lolo +65 -134
  3. package/behaviors/lolo/agent/atoms/std-agent-memory.lolo +162 -112
  4. package/behaviors/lolo/agent/atoms/std-agent-session.lolo +239 -115
  5. package/behaviors/lolo/agent/atoms/std-agent-tool-loop.lolo +96 -90
  6. package/behaviors/lolo/agent/atoms/std-agent-trace.lolo +133 -40
  7. package/behaviors/lolo/agent/organisms/std-agent-assistant.lolo +137 -0
  8. package/behaviors/lolo/infra/atoms/std-approval-gate.lolo +7 -0
  9. package/behaviors/lolo/infra/atoms/std-cache-aside.lolo +4 -17
  10. package/behaviors/lolo/infra/atoms/std-migration-job.lolo +2 -2
  11. package/behaviors/lolo/infra/atoms/std-notification-preferences.lolo +26 -13
  12. package/behaviors/lolo/infra/atoms/std-permission-matrix.lolo +5 -0
  13. package/behaviors/lolo/ui/avl/atoms/ui-avl-glyph.lolo +90 -0
  14. package/behaviors/lolo/ui/avl/atoms/ui-avl-state-machine.lolo +90 -0
  15. package/behaviors/lolo/ui/avl/atoms/ui-behavior-view.lolo +80 -0
  16. package/behaviors/lolo/ui/avl/atoms/ui-module-card.lolo +80 -0
  17. package/behaviors/lolo/ui/core/atoms/std-billable-hour.lolo +12 -21
  18. package/behaviors/lolo/ui/core/atoms/std-board.lolo +5 -32
  19. package/behaviors/lolo/ui/core/atoms/std-book-reader.lolo +19 -11
  20. package/behaviors/lolo/ui/core/atoms/std-browse.lolo +42 -7
  21. package/behaviors/lolo/ui/core/atoms/std-calendar.lolo +4 -16
  22. package/behaviors/lolo/ui/core/atoms/std-detail-layout.lolo +3 -1
  23. package/behaviors/lolo/ui/core/atoms/std-esign-flow.lolo +21 -13
  24. package/behaviors/lolo/ui/core/atoms/std-esign-request.lolo +12 -2
  25. package/behaviors/lolo/ui/core/atoms/std-event-log.lolo +44 -10
  26. package/behaviors/lolo/ui/core/atoms/std-file-store.lolo +35 -72
  27. package/behaviors/lolo/ui/core/atoms/std-gantt-schedule.lolo +29 -14
  28. package/behaviors/lolo/ui/core/atoms/std-image-upload-multi.lolo +8 -22
  29. package/behaviors/lolo/ui/core/atoms/std-list.lolo +28 -13
  30. package/behaviors/lolo/ui/core/atoms/std-multi-party-flow.lolo +52 -14
  31. package/behaviors/lolo/ui/core/atoms/std-prose.lolo +7 -1
  32. package/behaviors/lolo/ui/core/atoms/std-rating-review.lolo +23 -8
  33. package/behaviors/lolo/ui/core/atoms/std-record-detail.lolo +139 -19
  34. package/behaviors/lolo/ui/core/atoms/std-recurrence.lolo +28 -20
  35. package/behaviors/lolo/ui/core/atoms/std-related.lolo +36 -25
  36. package/behaviors/lolo/ui/core/atoms/std-saved-search.lolo +20 -21
  37. package/behaviors/lolo/ui/core/atoms/std-scoped-list.lolo +143 -0
  38. package/behaviors/lolo/ui/core/atoms/std-selection.lolo +34 -14
  39. package/behaviors/lolo/ui/core/atoms/std-signature-capture.lolo +1 -13
  40. package/behaviors/lolo/ui/core/atoms/std-slide-deck.lolo +2 -2
  41. package/behaviors/lolo/ui/core/atoms/std-step-flow.lolo +4 -16
  42. package/behaviors/lolo/ui/core/atoms/std-tag-taxonomy.lolo +24 -80
  43. package/behaviors/lolo/ui/core/atoms/std-thread.lolo +92 -31
  44. package/behaviors/lolo/ui/core/atoms/std-tree.lolo +18 -22
  45. package/behaviors/lolo/ui/core/atoms/std-version-history.lolo +43 -83
  46. package/behaviors/lolo/ui/core/atoms/std-vote.lolo +2 -39
  47. package/behaviors/lolo/ui/core/atoms/std-wizard.lolo +20 -10
  48. package/behaviors/lolo/ui/core/atoms/ui-animated-graphic.lolo +90 -0
  49. package/behaviors/lolo/ui/core/atoms/ui-animated-reveal.lolo +90 -0
  50. package/behaviors/lolo/ui/core/atoms/ui-aside.lolo +90 -0
  51. package/behaviors/lolo/ui/core/atoms/ui-atlas-image.lolo +16 -0
  52. package/behaviors/lolo/ui/core/atoms/ui-atlas-panel.lolo +16 -0
  53. package/behaviors/lolo/ui/core/atoms/ui-avatar.lolo +91 -1
  54. package/behaviors/lolo/ui/core/atoms/ui-badge.lolo +90 -0
  55. package/behaviors/lolo/ui/core/atoms/ui-box.lolo +98 -13
  56. package/behaviors/lolo/ui/core/atoms/ui-button.lolo +90 -0
  57. package/behaviors/lolo/ui/core/atoms/ui-card.lolo +91 -1
  58. package/behaviors/lolo/ui/core/atoms/ui-center.lolo +90 -0
  59. package/behaviors/lolo/ui/core/atoms/ui-checkbox.lolo +112 -0
  60. package/behaviors/lolo/ui/core/atoms/ui-confetti-effect.lolo +90 -0
  61. package/behaviors/lolo/ui/core/atoms/ui-day-cell.lolo +90 -0
  62. package/behaviors/lolo/ui/core/atoms/ui-dialog.lolo +90 -0
  63. package/behaviors/lolo/ui/core/atoms/ui-divider.lolo +90 -0
  64. package/behaviors/lolo/ui/core/atoms/ui-filter-pill.lolo +90 -0
  65. package/behaviors/lolo/ui/core/atoms/ui-flip-container.lolo +90 -0
  66. package/behaviors/lolo/ui/core/atoms/ui-game-icon.lolo +90 -0
  67. package/behaviors/lolo/ui/core/atoms/ui-hstack.lolo +90 -10
  68. package/behaviors/lolo/ui/core/atoms/ui-icon.lolo +90 -0
  69. package/behaviors/lolo/ui/core/atoms/ui-image.lolo +90 -0
  70. package/behaviors/lolo/ui/core/atoms/ui-infinite-scroll-sentinel.lolo +90 -0
  71. package/behaviors/lolo/ui/core/atoms/ui-input.lolo +11 -1
  72. package/behaviors/lolo/ui/core/atoms/ui-label.lolo +91 -1
  73. package/behaviors/lolo/ui/core/atoms/ui-law-reference-tooltip.lolo +90 -0
  74. package/behaviors/lolo/ui/core/atoms/ui-overlay.lolo +90 -0
  75. package/behaviors/lolo/ui/core/atoms/ui-pattern-tile.lolo +90 -0
  76. package/behaviors/lolo/ui/core/atoms/ui-presence.lolo +90 -0
  77. package/behaviors/lolo/ui/core/atoms/ui-progress-bar.lolo +91 -1
  78. package/behaviors/lolo/ui/core/atoms/ui-radio.lolo +106 -0
  79. package/behaviors/lolo/ui/core/atoms/ui-range-slider.lolo +122 -0
  80. package/behaviors/lolo/ui/core/atoms/ui-section-header.lolo +90 -0
  81. package/behaviors/lolo/ui/core/atoms/ui-select.lolo +95 -0
  82. package/behaviors/lolo/ui/core/atoms/ui-spacer.lolo +90 -0
  83. package/behaviors/lolo/ui/core/atoms/ui-sparkline.lolo +90 -0
  84. package/behaviors/lolo/ui/core/atoms/ui-spinner.lolo +90 -0
  85. package/behaviors/lolo/ui/core/atoms/ui-stack.lolo +90 -10
  86. package/behaviors/lolo/ui/core/atoms/ui-status-dot.lolo +90 -0
  87. package/behaviors/lolo/ui/core/atoms/ui-svg-branch.lolo +90 -0
  88. package/behaviors/lolo/ui/core/atoms/ui-svg-connection.lolo +90 -0
  89. package/behaviors/lolo/ui/core/atoms/ui-svg-flow.lolo +90 -0
  90. package/behaviors/lolo/ui/core/atoms/ui-svg-grid.lolo +90 -0
  91. package/behaviors/lolo/ui/core/atoms/ui-svg-lobe.lolo +90 -0
  92. package/behaviors/lolo/ui/core/atoms/ui-svg-mesh.lolo +90 -0
  93. package/behaviors/lolo/ui/core/atoms/ui-svg-morph.lolo +90 -0
  94. package/behaviors/lolo/ui/core/atoms/ui-svg-node.lolo +90 -0
  95. package/behaviors/lolo/ui/core/atoms/ui-svg-pulse.lolo +90 -0
  96. package/behaviors/lolo/ui/core/atoms/ui-svg-ring.lolo +90 -0
  97. package/behaviors/lolo/ui/core/atoms/ui-svg-shield.lolo +90 -0
  98. package/behaviors/lolo/ui/core/atoms/ui-svg-stack.lolo +90 -0
  99. package/behaviors/lolo/ui/core/atoms/ui-switch.lolo +106 -0
  100. package/behaviors/lolo/ui/core/atoms/ui-text-highlight.lolo +122 -0
  101. package/behaviors/lolo/ui/core/atoms/ui-textarea.lolo +100 -0
  102. package/behaviors/lolo/ui/core/atoms/ui-theme-toggle.lolo +90 -0
  103. package/behaviors/lolo/ui/core/atoms/ui-time-slot-cell.lolo +142 -0
  104. package/behaviors/lolo/ui/core/atoms/ui-trend-indicator.lolo +91 -1
  105. package/behaviors/lolo/ui/core/atoms/ui-typewriter-text.lolo +90 -0
  106. package/behaviors/lolo/ui/core/atoms/ui-typography.lolo +96 -6
  107. package/behaviors/lolo/ui/core/atoms/ui-vstack.lolo +90 -10
  108. package/behaviors/lolo/ui/core/molecules/ui-accordion.lolo +90 -0
  109. package/behaviors/lolo/ui/core/molecules/ui-activation-block.lolo +90 -0
  110. package/behaviors/lolo/ui/core/molecules/ui-alert.lolo +95 -0
  111. package/behaviors/lolo/ui/core/molecules/ui-animated-counter.lolo +91 -1
  112. package/behaviors/lolo/ui/core/molecules/ui-bloom-quiz-block.lolo +90 -0
  113. package/behaviors/lolo/ui/core/molecules/ui-branching-logic-builder.lolo +90 -0
  114. package/behaviors/lolo/ui/core/molecules/ui-breadcrumb.lolo +90 -0
  115. package/behaviors/lolo/ui/core/molecules/ui-calendar-grid.lolo +122 -0
  116. package/behaviors/lolo/ui/core/molecules/ui-carousel.lolo +90 -0
  117. package/behaviors/lolo/ui/core/molecules/ui-change-list.lolo +90 -0
  118. package/behaviors/lolo/ui/core/molecules/ui-chart-legend.lolo +90 -0
  119. package/behaviors/lolo/ui/core/molecules/ui-chart.lolo +93 -3
  120. package/behaviors/lolo/ui/core/molecules/ui-code-block.lolo +202 -0
  121. package/behaviors/lolo/ui/core/molecules/ui-command-palette.lolo +110 -4
  122. package/behaviors/lolo/ui/core/molecules/ui-commit-row.lolo +123 -1
  123. package/behaviors/lolo/ui/core/molecules/ui-confirm-dialog.lolo +90 -0
  124. package/behaviors/lolo/ui/core/molecules/ui-connection-block.lolo +90 -0
  125. package/behaviors/lolo/ui/core/molecules/ui-container.lolo +92 -2
  126. package/behaviors/lolo/ui/core/molecules/ui-content-renderer.lolo +97 -7
  127. package/behaviors/lolo/ui/core/molecules/ui-data-grid.lolo +144 -4
  128. package/behaviors/lolo/ui/core/molecules/ui-data-list.lolo +132 -3
  129. package/behaviors/lolo/ui/core/molecules/ui-date-range-picker.lolo +109 -3
  130. package/behaviors/lolo/ui/core/molecules/ui-date-range-selector.lolo +90 -0
  131. package/behaviors/lolo/ui/core/molecules/ui-doc-breadcrumb.lolo +90 -0
  132. package/behaviors/lolo/ui/core/molecules/ui-doc-pagination.lolo +90 -0
  133. package/behaviors/lolo/ui/core/molecules/ui-doc-search.lolo +90 -0
  134. package/behaviors/lolo/ui/core/molecules/ui-doc-sidebar.lolo +90 -0
  135. package/behaviors/lolo/ui/core/molecules/ui-doc-toc.lolo +90 -0
  136. package/behaviors/lolo/ui/core/molecules/ui-document-details.lolo +139 -0
  137. package/behaviors/lolo/ui/core/molecules/ui-document-panel.lolo +122 -0
  138. package/behaviors/lolo/ui/core/molecules/ui-document-viewer.lolo +90 -0
  139. package/behaviors/lolo/ui/core/molecules/ui-drawer.lolo +90 -0
  140. package/behaviors/lolo/ui/core/molecules/ui-edge-decoration.lolo +10 -0
  141. package/behaviors/lolo/ui/core/molecules/ui-emoji-picker.lolo +91 -1
  142. package/behaviors/lolo/ui/core/molecules/ui-empty-state.lolo +91 -1
  143. package/behaviors/lolo/ui/core/molecules/ui-error-boundary.lolo +10 -0
  144. package/behaviors/lolo/ui/core/molecules/ui-error-state.lolo +90 -0
  145. package/behaviors/lolo/ui/core/molecules/ui-feature-card.lolo +91 -1
  146. package/behaviors/lolo/ui/core/molecules/ui-feature-grid.lolo +90 -0
  147. package/behaviors/lolo/ui/core/molecules/ui-file-tree.lolo +90 -0
  148. package/behaviors/lolo/ui/core/molecules/ui-filter-group.lolo +122 -0
  149. package/behaviors/lolo/ui/core/molecules/ui-flex.lolo +90 -0
  150. package/behaviors/lolo/ui/core/molecules/ui-flip-card.lolo +90 -0
  151. package/behaviors/lolo/ui/core/molecules/ui-floating-action-button.lolo +91 -1
  152. package/behaviors/lolo/ui/core/molecules/ui-floating-toolbar.lolo +90 -0
  153. package/behaviors/lolo/ui/core/molecules/ui-form-actions.lolo +90 -0
  154. package/behaviors/lolo/ui/core/molecules/ui-form-field.lolo +90 -0
  155. package/behaviors/lolo/ui/core/molecules/ui-form-layout.lolo +96 -6
  156. package/behaviors/lolo/ui/core/molecules/ui-form-section-header.lolo +90 -0
  157. package/behaviors/lolo/ui/core/molecules/ui-fx-overlay.lolo +90 -0
  158. package/behaviors/lolo/ui/core/molecules/ui-gantt.lolo +131 -1
  159. package/behaviors/lolo/ui/core/molecules/ui-geometric-pattern.lolo +10 -0
  160. package/behaviors/lolo/ui/core/molecules/ui-gradient-divider.lolo +90 -0
  161. package/behaviors/lolo/ui/core/molecules/ui-graph-canvas.lolo +95 -0
  162. package/behaviors/lolo/ui/core/molecules/ui-graph-view.lolo +90 -0
  163. package/behaviors/lolo/ui/core/molecules/ui-grid.lolo +95 -5
  164. package/behaviors/lolo/ui/core/molecules/ui-header.lolo +90 -0
  165. package/behaviors/lolo/ui/core/molecules/ui-icon-button.lolo +90 -0
  166. package/behaviors/lolo/ui/core/molecules/ui-import-preview-tree.lolo +93 -2
  167. package/behaviors/lolo/ui/core/molecules/ui-import-progress.lolo +90 -0
  168. package/behaviors/lolo/ui/core/molecules/ui-import-source-picker.lolo +90 -0
  169. package/behaviors/lolo/ui/core/molecules/ui-input-group.lolo +91 -1
  170. package/behaviors/lolo/ui/core/molecules/ui-jazari-state-machine.lolo +90 -0
  171. package/behaviors/lolo/ui/core/molecules/ui-lightbox.lolo +90 -0
  172. package/behaviors/lolo/ui/core/molecules/ui-likert-scale.lolo +91 -1
  173. package/behaviors/lolo/ui/core/molecules/ui-line-chart.lolo +90 -0
  174. package/behaviors/lolo/ui/core/molecules/ui-loading-state.lolo +90 -0
  175. package/behaviors/lolo/ui/core/molecules/ui-map-view.lolo +90 -0
  176. package/behaviors/lolo/ui/core/molecules/ui-markdown-content.lolo +90 -0
  177. package/behaviors/lolo/ui/core/molecules/ui-matrix-question.lolo +90 -0
  178. package/behaviors/lolo/ui/core/molecules/ui-menu.lolo +91 -0
  179. package/behaviors/lolo/ui/core/molecules/ui-meter.lolo +90 -0
  180. package/behaviors/lolo/ui/core/molecules/ui-modal.lolo +90 -0
  181. package/behaviors/lolo/ui/core/molecules/ui-navigation.lolo +90 -0
  182. package/behaviors/lolo/ui/core/molecules/ui-notification.lolo +91 -1
  183. package/behaviors/lolo/ui/core/molecules/ui-number-stepper.lolo +122 -0
  184. package/behaviors/lolo/ui/core/molecules/ui-option-constraint-group.lolo +90 -0
  185. package/behaviors/lolo/ui/core/molecules/ui-orbital-visualization.lolo +90 -0
  186. package/behaviors/lolo/ui/core/molecules/ui-page-header.lolo +90 -0
  187. package/behaviors/lolo/ui/core/molecules/ui-page-transition.lolo +90 -0
  188. package/behaviors/lolo/ui/core/molecules/ui-pagination.lolo +106 -0
  189. package/behaviors/lolo/ui/core/molecules/ui-popover.lolo +106 -0
  190. package/behaviors/lolo/ui/core/molecules/ui-positioned-canvas.lolo +122 -0
  191. package/behaviors/lolo/ui/core/molecules/ui-progress-dots.lolo +90 -0
  192. package/behaviors/lolo/ui/core/molecules/ui-pull-to-refresh.lolo +90 -0
  193. package/behaviors/lolo/ui/core/molecules/ui-qr-scanner.lolo +90 -0
  194. package/behaviors/lolo/ui/core/molecules/ui-quiz-block.lolo +90 -0
  195. package/behaviors/lolo/ui/core/molecules/ui-reflection-block.lolo +90 -0
  196. package/behaviors/lolo/ui/core/molecules/ui-relation-select.lolo +106 -0
  197. package/behaviors/lolo/ui/core/molecules/ui-repeatable-form-section.lolo +90 -0
  198. package/behaviors/lolo/ui/core/molecules/ui-reply-tree.lolo +122 -0
  199. package/behaviors/lolo/ui/core/molecules/ui-rich-text-editor.lolo +106 -0
  200. package/behaviors/lolo/ui/core/molecules/ui-scaled-diagram.lolo +90 -0
  201. package/behaviors/lolo/ui/core/molecules/ui-search-input.lolo +106 -0
  202. package/behaviors/lolo/ui/core/molecules/ui-section.lolo +90 -0
  203. package/behaviors/lolo/ui/core/molecules/ui-side-panel.lolo +90 -0
  204. package/behaviors/lolo/ui/core/molecules/ui-sidebar.lolo +106 -0
  205. package/behaviors/lolo/ui/core/molecules/ui-signature-pad.lolo +90 -0
  206. package/behaviors/lolo/ui/core/molecules/ui-simple-grid.lolo +90 -0
  207. package/behaviors/lolo/ui/core/molecules/ui-skeleton.lolo +93 -3
  208. package/behaviors/lolo/ui/core/molecules/ui-social-proof.lolo +90 -0
  209. package/behaviors/lolo/ui/core/molecules/ui-sortable-list.lolo +122 -0
  210. package/behaviors/lolo/ui/core/molecules/ui-split.lolo +90 -0
  211. package/behaviors/lolo/ui/core/molecules/ui-star-rating.lolo +122 -0
  212. package/behaviors/lolo/ui/core/molecules/ui-stat-display.lolo +90 -0
  213. package/behaviors/lolo/ui/core/molecules/ui-swipeable-row.lolo +138 -0
  214. package/behaviors/lolo/ui/core/molecules/ui-table-view.lolo +140 -3
  215. package/behaviors/lolo/ui/core/molecules/ui-tabs.lolo +90 -0
  216. package/behaviors/lolo/ui/core/molecules/ui-tag-input.lolo +90 -0
  217. package/behaviors/lolo/ui/core/molecules/ui-tooltip.lolo +90 -0
  218. package/behaviors/lolo/ui/core/molecules/ui-top-nav-item.lolo +90 -0
  219. package/behaviors/lolo/ui/core/molecules/ui-upload-drop-zone.lolo +90 -0
  220. package/behaviors/lolo/ui/core/molecules/ui-version-diff.lolo +90 -0
  221. package/behaviors/lolo/ui/core/molecules/ui-violation-alert.lolo +91 -1
  222. package/behaviors/lolo/ui/core/molecules/ui-vote-stack.lolo +91 -1
  223. package/behaviors/lolo/ui/core/molecules/ui-wizard-container.lolo +90 -0
  224. package/behaviors/lolo/ui/core/molecules/ui-wizard-navigation.lolo +138 -0
  225. package/behaviors/lolo/ui/core/molecules/ui-wizard-progress.lolo +90 -0
  226. package/behaviors/lolo/ui/core/organisms/ui-chat-bar.lolo +91 -1
  227. package/behaviors/lolo/ui/core/organisms/ui-code-runner-panel.lolo +90 -0
  228. package/behaviors/lolo/ui/core/organisms/ui-dashboard-grid.lolo +91 -1
  229. package/behaviors/lolo/ui/core/organisms/ui-detail-panel.lolo +355 -6
  230. package/behaviors/lolo/ui/core/organisms/ui-dock-layout.lolo +90 -0
  231. package/behaviors/lolo/ui/core/organisms/ui-drawer-slot.lolo +10 -0
  232. package/behaviors/lolo/ui/core/organisms/ui-entity-cards.lolo +152 -8
  233. package/behaviors/lolo/ui/core/organisms/ui-entity-list.lolo +162 -7
  234. package/behaviors/lolo/ui/core/organisms/ui-entity-table.lolo +142 -1
  235. package/behaviors/lolo/ui/core/organisms/ui-form-section.lolo +141 -1
  236. package/behaviors/lolo/ui/core/organisms/ui-form.lolo +141 -1
  237. package/behaviors/lolo/ui/core/organisms/ui-master-detail-layout.lolo +90 -0
  238. package/behaviors/lolo/ui/core/organisms/ui-master-detail.lolo +123 -1
  239. package/behaviors/lolo/ui/core/organisms/ui-media-gallery.lolo +137 -1
  240. package/behaviors/lolo/ui/core/organisms/ui-modal-slot.lolo +10 -0
  241. package/behaviors/lolo/ui/core/organisms/ui-runtime-debugger.lolo +90 -0
  242. package/behaviors/lolo/ui/core/organisms/ui-segment-renderer.lolo +90 -0
  243. package/behaviors/lolo/ui/core/organisms/ui-split-pane.lolo +106 -0
  244. package/behaviors/lolo/ui/core/organisms/ui-stat-card.lolo +130 -2
  245. package/behaviors/lolo/ui/core/organisms/ui-state-machine-view.lolo +92 -2
  246. package/behaviors/lolo/ui/core/organisms/ui-subagent-trace-panel.lolo +91 -1
  247. package/behaviors/lolo/ui/core/organisms/ui-tabbed-container.lolo +90 -0
  248. package/behaviors/lolo/ui/core/organisms/ui-timeline.lolo +152 -2
  249. package/behaviors/lolo/ui/core/organisms/ui-toast-slot.lolo +91 -1
  250. package/behaviors/lolo/ui/core/templates/ui-auth-layout.lolo +81 -1
  251. package/behaviors/lolo/ui/core/templates/ui-counter-template.lolo +92 -2
  252. package/behaviors/lolo/ui/core/templates/ui-dashboard-layout.lolo +1 -1
  253. package/behaviors/lolo/ui/core/templates/ui-generic-app-template.lolo +90 -0
  254. package/behaviors/lolo/ui/game/.hand-authored.json +2 -2
  255. package/behaviors/lolo/ui/game/atoms/ui-action-palette.lolo +90 -0
  256. package/behaviors/lolo/ui/game/atoms/ui-action-tile.lolo +91 -1
  257. package/behaviors/lolo/ui/game/atoms/ui-canvas-2d.lolo +95 -0
  258. package/behaviors/lolo/ui/game/atoms/ui-canvas.lolo +91 -1
  259. package/behaviors/lolo/ui/game/atoms/ui-choice-button.lolo +91 -1
  260. package/behaviors/lolo/ui/game/atoms/ui-control-button.lolo +90 -0
  261. package/behaviors/lolo/ui/game/atoms/ui-control-grid.lolo +90 -0
  262. package/behaviors/lolo/ui/game/atoms/ui-dialogue-bubble.lolo +92 -2
  263. package/behaviors/lolo/ui/game/atoms/ui-draw-mesh.lolo +1 -1
  264. package/behaviors/lolo/ui/game/atoms/ui-draw-shape.lolo +2 -2
  265. package/behaviors/lolo/ui/game/atoms/ui-draw-sprite.lolo +1 -1
  266. package/behaviors/lolo/ui/game/atoms/ui-draw-text.lolo +3 -3
  267. package/behaviors/lolo/ui/game/atoms/ui-game-audio-toggle.lolo +90 -0
  268. package/behaviors/lolo/ui/game/atoms/ui-game-hud.lolo +90 -0
  269. package/behaviors/lolo/ui/game/atoms/ui-game-menu.lolo +91 -1
  270. package/behaviors/lolo/ui/game/atoms/ui-health-bar.lolo +90 -0
  271. package/behaviors/lolo/ui/game/atoms/ui-score-display.lolo +91 -1
  272. package/behaviors/lolo/ui/game/atoms/ui-sequence-bar.lolo +90 -0
  273. package/behaviors/lolo/ui/game/atoms/ui-stat-badge.lolo +90 -0
  274. package/behaviors/lolo/ui/game/atoms/ui-state-graph.lolo +90 -0
  275. package/behaviors/lolo/ui/game/atoms/ui-state-json-view.lolo +90 -0
  276. package/behaviors/lolo/ui/game/atoms/ui-trait-slot.lolo +123 -1
  277. package/behaviors/lolo/ui/learning/atoms/ui-algo-graph-canvas.lolo +90 -0
  278. package/behaviors/lolo/ui/learning/atoms/ui-algorithm-canvas.lolo +106 -0
  279. package/behaviors/lolo/ui/learning/atoms/ui-biology-canvas.lolo +106 -0
  280. package/behaviors/lolo/ui/learning/atoms/ui-chemistry-canvas.lolo +106 -0
  281. package/behaviors/lolo/ui/learning/atoms/ui-learning-canvas.lolo +112 -0
  282. package/behaviors/lolo/ui/learning/atoms/ui-math-canvas.lolo +106 -0
  283. package/behaviors/lolo/ui/learning/atoms/ui-physics-canvas.lolo +106 -0
  284. package/behaviors/lolo-behavior-contracts.json +1 -1
  285. package/behaviors/registry/agent/atoms/std-agent-context.orb +299 -826
  286. package/behaviors/registry/agent/atoms/std-agent-memory.orb +858 -643
  287. package/behaviors/registry/agent/atoms/std-agent-session.orb +833 -770
  288. package/behaviors/registry/agent/atoms/std-agent-tool-loop.orb +505 -707
  289. package/behaviors/registry/agent/atoms/std-agent-trace.orb +680 -195
  290. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +594 -0
  291. package/behaviors/registry/factory-signatures.json +1 -1
  292. package/behaviors/registry/infra/atoms/std-approval-gate.orb +70 -0
  293. package/behaviors/registry/infra/atoms/std-cache-aside.orb +172 -299
  294. package/behaviors/registry/infra/atoms/std-migration-job.orb +26 -1
  295. package/behaviors/registry/infra/atoms/std-notification-preferences.orb +57 -14
  296. package/behaviors/registry/infra/atoms/std-permission-matrix.orb +9 -0
  297. package/behaviors/registry/ui/avl/atoms/ui-avl-glyph.orb +236 -0
  298. package/behaviors/registry/ui/avl/atoms/ui-avl-state-machine.orb +236 -0
  299. package/behaviors/registry/ui/avl/atoms/ui-behavior-view.orb +215 -0
  300. package/behaviors/registry/ui/avl/atoms/ui-module-card.orb +215 -0
  301. package/behaviors/registry/ui/core/atoms/std-billable-hour.orb +26 -18
  302. package/behaviors/registry/ui/core/atoms/std-board.orb +10 -34
  303. package/behaviors/registry/ui/core/atoms/std-book-reader.orb +32 -13
  304. package/behaviors/registry/ui/core/atoms/std-browse.orb +312 -20
  305. package/behaviors/registry/ui/core/atoms/std-calendar.orb +8 -19
  306. package/behaviors/registry/ui/core/atoms/std-detail-layout.orb +3 -1
  307. package/behaviors/registry/ui/core/atoms/std-esign-flow.orb +48 -11
  308. package/behaviors/registry/ui/core/atoms/std-esign-request.orb +28 -4
  309. package/behaviors/registry/ui/core/atoms/std-event-log.orb +86 -14
  310. package/behaviors/registry/ui/core/atoms/std-file-store.orb +68 -59
  311. package/behaviors/registry/ui/core/atoms/std-gantt-schedule.orb +69 -12
  312. package/behaviors/registry/ui/core/atoms/std-image-upload-multi.orb +16 -16
  313. package/behaviors/registry/ui/core/atoms/std-list.orb +59 -11
  314. package/behaviors/registry/ui/core/atoms/std-multi-party-flow.orb +115 -14
  315. package/behaviors/registry/ui/core/atoms/std-prose.orb +14 -1
  316. package/behaviors/registry/ui/core/atoms/std-rating-review.orb +79 -8
  317. package/behaviors/registry/ui/core/atoms/std-record-detail.orb +693 -69
  318. package/behaviors/registry/ui/core/atoms/std-recurrence.orb +112 -28
  319. package/behaviors/registry/ui/core/atoms/std-related.orb +82 -21
  320. package/behaviors/registry/ui/core/atoms/std-saved-search.orb +82 -18
  321. package/behaviors/registry/ui/core/atoms/std-scoped-list.orb +993 -0
  322. package/behaviors/registry/ui/core/atoms/std-selection.orb +101 -12
  323. package/behaviors/registry/ui/core/atoms/std-signature-capture.orb +2 -16
  324. package/behaviors/registry/ui/core/atoms/std-slide-deck.orb +2 -0
  325. package/behaviors/registry/ui/core/atoms/std-step-flow.orb +8 -8
  326. package/behaviors/registry/ui/core/atoms/std-tag-taxonomy.orb +48 -64
  327. package/behaviors/registry/ui/core/atoms/std-thread.orb +863 -141
  328. package/behaviors/registry/ui/core/atoms/std-tree.orb +40 -18
  329. package/behaviors/registry/ui/core/atoms/std-version-history.orb +87 -69
  330. package/behaviors/registry/ui/core/atoms/std-vote.orb +4 -54
  331. package/behaviors/registry/ui/core/atoms/std-wizard.orb +70 -10
  332. package/behaviors/registry/ui/core/atoms/ui-animated-graphic.orb +236 -0
  333. package/behaviors/registry/ui/core/atoms/ui-animated-reveal.orb +236 -0
  334. package/behaviors/registry/ui/core/atoms/ui-aside.orb +236 -0
  335. package/behaviors/registry/ui/core/atoms/ui-atlas-image.orb +29 -0
  336. package/behaviors/registry/ui/core/atoms/ui-atlas-panel.orb +29 -0
  337. package/behaviors/registry/ui/core/atoms/ui-avatar.orb +236 -1
  338. package/behaviors/registry/ui/core/atoms/ui-badge.orb +236 -0
  339. package/behaviors/registry/ui/core/atoms/ui-box.orb +231 -10
  340. package/behaviors/registry/ui/core/atoms/ui-button.orb +236 -0
  341. package/behaviors/registry/ui/core/atoms/ui-card.orb +236 -1
  342. package/behaviors/registry/ui/core/atoms/ui-center.orb +236 -0
  343. package/behaviors/registry/ui/core/atoms/ui-checkbox.orb +260 -0
  344. package/behaviors/registry/ui/core/atoms/ui-confetti-effect.orb +236 -0
  345. package/behaviors/registry/ui/core/atoms/ui-day-cell.orb +236 -0
  346. package/behaviors/registry/ui/core/atoms/ui-dialog.orb +236 -0
  347. package/behaviors/registry/ui/core/atoms/ui-divider.orb +236 -0
  348. package/behaviors/registry/ui/core/atoms/ui-filter-pill.orb +236 -0
  349. package/behaviors/registry/ui/core/atoms/ui-flip-container.orb +236 -0
  350. package/behaviors/registry/ui/core/atoms/ui-game-icon.orb +236 -0
  351. package/behaviors/registry/ui/core/atoms/ui-hstack.orb +225 -3
  352. package/behaviors/registry/ui/core/atoms/ui-icon.orb +236 -0
  353. package/behaviors/registry/ui/core/atoms/ui-image.orb +236 -0
  354. package/behaviors/registry/ui/core/atoms/ui-infinite-scroll-sentinel.orb +236 -0
  355. package/behaviors/registry/ui/core/atoms/ui-input.orb +21 -1
  356. package/behaviors/registry/ui/core/atoms/ui-label.orb +237 -1
  357. package/behaviors/registry/ui/core/atoms/ui-law-reference-tooltip.orb +236 -0
  358. package/behaviors/registry/ui/core/atoms/ui-overlay.orb +236 -0
  359. package/behaviors/registry/ui/core/atoms/ui-pattern-tile.orb +236 -0
  360. package/behaviors/registry/ui/core/atoms/ui-presence.orb +236 -0
  361. package/behaviors/registry/ui/core/atoms/ui-progress-bar.orb +236 -1
  362. package/behaviors/registry/ui/core/atoms/ui-radio.orb +252 -0
  363. package/behaviors/registry/ui/core/atoms/ui-range-slider.orb +268 -0
  364. package/behaviors/registry/ui/core/atoms/ui-section-header.orb +236 -0
  365. package/behaviors/registry/ui/core/atoms/ui-select.orb +243 -0
  366. package/behaviors/registry/ui/core/atoms/ui-spacer.orb +236 -0
  367. package/behaviors/registry/ui/core/atoms/ui-sparkline.orb +236 -0
  368. package/behaviors/registry/ui/core/atoms/ui-spinner.orb +236 -0
  369. package/behaviors/registry/ui/core/atoms/ui-stack.orb +225 -3
  370. package/behaviors/registry/ui/core/atoms/ui-status-dot.orb +236 -0
  371. package/behaviors/registry/ui/core/atoms/ui-svg-branch.orb +236 -0
  372. package/behaviors/registry/ui/core/atoms/ui-svg-connection.orb +236 -0
  373. package/behaviors/registry/ui/core/atoms/ui-svg-flow.orb +236 -0
  374. package/behaviors/registry/ui/core/atoms/ui-svg-grid.orb +236 -0
  375. package/behaviors/registry/ui/core/atoms/ui-svg-lobe.orb +236 -0
  376. package/behaviors/registry/ui/core/atoms/ui-svg-mesh.orb +236 -0
  377. package/behaviors/registry/ui/core/atoms/ui-svg-morph.orb +236 -0
  378. package/behaviors/registry/ui/core/atoms/ui-svg-node.orb +236 -0
  379. package/behaviors/registry/ui/core/atoms/ui-svg-pulse.orb +236 -0
  380. package/behaviors/registry/ui/core/atoms/ui-svg-ring.orb +236 -0
  381. package/behaviors/registry/ui/core/atoms/ui-svg-shield.orb +236 -0
  382. package/behaviors/registry/ui/core/atoms/ui-svg-stack.orb +236 -0
  383. package/behaviors/registry/ui/core/atoms/ui-switch.orb +252 -0
  384. package/behaviors/registry/ui/core/atoms/ui-text-highlight.orb +268 -0
  385. package/behaviors/registry/ui/core/atoms/ui-textarea.orb +250 -0
  386. package/behaviors/registry/ui/core/atoms/ui-theme-toggle.orb +236 -0
  387. package/behaviors/registry/ui/core/atoms/ui-time-slot-cell.orb +384 -0
  388. package/behaviors/registry/ui/core/atoms/ui-trend-indicator.orb +236 -1
  389. package/behaviors/registry/ui/core/atoms/ui-typewriter-text.orb +236 -0
  390. package/behaviors/registry/ui/core/atoms/ui-typography.orb +236 -6
  391. package/behaviors/registry/ui/core/atoms/ui-vstack.orb +225 -3
  392. package/behaviors/registry/ui/core/molecules/ui-accordion.orb +236 -0
  393. package/behaviors/registry/ui/core/molecules/ui-activation-block.orb +236 -0
  394. package/behaviors/registry/ui/core/molecules/ui-alert.orb +243 -0
  395. package/behaviors/registry/ui/core/molecules/ui-animated-counter.orb +237 -1
  396. package/behaviors/registry/ui/core/molecules/ui-bloom-quiz-block.orb +236 -0
  397. package/behaviors/registry/ui/core/molecules/ui-branching-logic-builder.orb +236 -0
  398. package/behaviors/registry/ui/core/molecules/ui-breadcrumb.orb +236 -0
  399. package/behaviors/registry/ui/core/molecules/ui-calendar-grid.orb +268 -0
  400. package/behaviors/registry/ui/core/molecules/ui-carousel.orb +236 -0
  401. package/behaviors/registry/ui/core/molecules/ui-change-list.orb +236 -0
  402. package/behaviors/registry/ui/core/molecules/ui-chart-legend.orb +236 -0
  403. package/behaviors/registry/ui/core/molecules/ui-chart.orb +236 -3
  404. package/behaviors/registry/ui/core/molecules/ui-code-block.orb +348 -0
  405. package/behaviors/registry/ui/core/molecules/ui-command-palette.orb +254 -4
  406. package/behaviors/registry/ui/core/molecules/ui-commit-row.orb +268 -1
  407. package/behaviors/registry/ui/core/molecules/ui-confirm-dialog.orb +236 -0
  408. package/behaviors/registry/ui/core/molecules/ui-connection-block.orb +236 -0
  409. package/behaviors/registry/ui/core/molecules/ui-container.orb +236 -2
  410. package/behaviors/registry/ui/core/molecules/ui-content-renderer.orb +241 -7
  411. package/behaviors/registry/ui/core/molecules/ui-data-grid.orb +387 -2
  412. package/behaviors/registry/ui/core/molecules/ui-data-list.orb +351 -1
  413. package/behaviors/registry/ui/core/molecules/ui-date-range-picker.orb +253 -3
  414. package/behaviors/registry/ui/core/molecules/ui-date-range-selector.orb +236 -0
  415. package/behaviors/registry/ui/core/molecules/ui-doc-breadcrumb.orb +236 -0
  416. package/behaviors/registry/ui/core/molecules/ui-doc-pagination.orb +236 -0
  417. package/behaviors/registry/ui/core/molecules/ui-doc-search.orb +236 -0
  418. package/behaviors/registry/ui/core/molecules/ui-doc-sidebar.orb +236 -0
  419. package/behaviors/registry/ui/core/molecules/ui-doc-toc.orb +236 -0
  420. package/behaviors/registry/ui/core/molecules/ui-document-details.orb +296 -0
  421. package/behaviors/registry/ui/core/molecules/ui-document-panel.orb +268 -0
  422. package/behaviors/registry/ui/core/molecules/ui-document-viewer.orb +236 -0
  423. package/behaviors/registry/ui/core/molecules/ui-drawer.orb +236 -0
  424. package/behaviors/registry/ui/core/molecules/ui-edge-decoration.orb +21 -0
  425. package/behaviors/registry/ui/core/molecules/ui-emoji-picker.orb +236 -1
  426. package/behaviors/registry/ui/core/molecules/ui-empty-state.orb +236 -1
  427. package/behaviors/registry/ui/core/molecules/ui-error-boundary.orb +21 -0
  428. package/behaviors/registry/ui/core/molecules/ui-error-state.orb +236 -0
  429. package/behaviors/registry/ui/core/molecules/ui-feature-card.orb +236 -1
  430. package/behaviors/registry/ui/core/molecules/ui-feature-grid.orb +236 -0
  431. package/behaviors/registry/ui/core/molecules/ui-file-tree.orb +236 -0
  432. package/behaviors/registry/ui/core/molecules/ui-filter-group.orb +268 -0
  433. package/behaviors/registry/ui/core/molecules/ui-flex.orb +236 -0
  434. package/behaviors/registry/ui/core/molecules/ui-flip-card.orb +236 -0
  435. package/behaviors/registry/ui/core/molecules/ui-floating-action-button.orb +236 -1
  436. package/behaviors/registry/ui/core/molecules/ui-floating-toolbar.orb +236 -0
  437. package/behaviors/registry/ui/core/molecules/ui-form-actions.orb +236 -0
  438. package/behaviors/registry/ui/core/molecules/ui-form-field.orb +236 -0
  439. package/behaviors/registry/ui/core/molecules/ui-form-layout.orb +241 -6
  440. package/behaviors/registry/ui/core/molecules/ui-form-section-header.orb +236 -0
  441. package/behaviors/registry/ui/core/molecules/ui-fx-overlay.orb +236 -0
  442. package/behaviors/registry/ui/core/molecules/ui-gantt.orb +296 -1
  443. package/behaviors/registry/ui/core/molecules/ui-geometric-pattern.orb +21 -0
  444. package/behaviors/registry/ui/core/molecules/ui-gradient-divider.orb +236 -0
  445. package/behaviors/registry/ui/core/molecules/ui-graph-canvas.orb +243 -0
  446. package/behaviors/registry/ui/core/molecules/ui-graph-view.orb +236 -0
  447. package/behaviors/registry/ui/core/molecules/ui-grid.orb +236 -5
  448. package/behaviors/registry/ui/core/molecules/ui-header.orb +236 -0
  449. package/behaviors/registry/ui/core/molecules/ui-icon-button.orb +236 -0
  450. package/behaviors/registry/ui/core/molecules/ui-import-preview-tree.orb +245 -2
  451. package/behaviors/registry/ui/core/molecules/ui-import-progress.orb +236 -0
  452. package/behaviors/registry/ui/core/molecules/ui-import-source-picker.orb +236 -0
  453. package/behaviors/registry/ui/core/molecules/ui-input-group.orb +236 -1
  454. package/behaviors/registry/ui/core/molecules/ui-jazari-state-machine.orb +236 -0
  455. package/behaviors/registry/ui/core/molecules/ui-lightbox.orb +236 -0
  456. package/behaviors/registry/ui/core/molecules/ui-likert-scale.orb +237 -1
  457. package/behaviors/registry/ui/core/molecules/ui-line-chart.orb +236 -0
  458. package/behaviors/registry/ui/core/molecules/ui-loading-state.orb +236 -0
  459. package/behaviors/registry/ui/core/molecules/ui-map-view.orb +236 -0
  460. package/behaviors/registry/ui/core/molecules/ui-markdown-content.orb +236 -0
  461. package/behaviors/registry/ui/core/molecules/ui-matrix-question.orb +236 -0
  462. package/behaviors/registry/ui/core/molecules/ui-menu.orb +253 -0
  463. package/behaviors/registry/ui/core/molecules/ui-meter.orb +236 -0
  464. package/behaviors/registry/ui/core/molecules/ui-modal.orb +236 -0
  465. package/behaviors/registry/ui/core/molecules/ui-navigation.orb +236 -0
  466. package/behaviors/registry/ui/core/molecules/ui-notification.orb +237 -1
  467. package/behaviors/registry/ui/core/molecules/ui-number-stepper.orb +268 -0
  468. package/behaviors/registry/ui/core/molecules/ui-option-constraint-group.orb +236 -0
  469. package/behaviors/registry/ui/core/molecules/ui-orbital-visualization.orb +236 -0
  470. package/behaviors/registry/ui/core/molecules/ui-page-header.orb +236 -0
  471. package/behaviors/registry/ui/core/molecules/ui-page-transition.orb +236 -0
  472. package/behaviors/registry/ui/core/molecules/ui-pagination.orb +252 -0
  473. package/behaviors/registry/ui/core/molecules/ui-popover.orb +252 -0
  474. package/behaviors/registry/ui/core/molecules/ui-positioned-canvas.orb +268 -0
  475. package/behaviors/registry/ui/core/molecules/ui-progress-dots.orb +236 -0
  476. package/behaviors/registry/ui/core/molecules/ui-pull-to-refresh.orb +236 -0
  477. package/behaviors/registry/ui/core/molecules/ui-qr-scanner.orb +236 -0
  478. package/behaviors/registry/ui/core/molecules/ui-quiz-block.orb +236 -0
  479. package/behaviors/registry/ui/core/molecules/ui-reflection-block.orb +236 -0
  480. package/behaviors/registry/ui/core/molecules/ui-relation-select.orb +252 -0
  481. package/behaviors/registry/ui/core/molecules/ui-repeatable-form-section.orb +236 -0
  482. package/behaviors/registry/ui/core/molecules/ui-reply-tree.orb +268 -0
  483. package/behaviors/registry/ui/core/molecules/ui-rich-text-editor.orb +252 -0
  484. package/behaviors/registry/ui/core/molecules/ui-scaled-diagram.orb +236 -0
  485. package/behaviors/registry/ui/core/molecules/ui-search-input.orb +252 -0
  486. package/behaviors/registry/ui/core/molecules/ui-section.orb +236 -0
  487. package/behaviors/registry/ui/core/molecules/ui-side-panel.orb +236 -0
  488. package/behaviors/registry/ui/core/molecules/ui-sidebar.orb +252 -0
  489. package/behaviors/registry/ui/core/molecules/ui-signature-pad.orb +236 -0
  490. package/behaviors/registry/ui/core/molecules/ui-simple-grid.orb +236 -0
  491. package/behaviors/registry/ui/core/molecules/ui-skeleton.orb +242 -2
  492. package/behaviors/registry/ui/core/molecules/ui-social-proof.orb +236 -0
  493. package/behaviors/registry/ui/core/molecules/ui-sortable-list.orb +268 -0
  494. package/behaviors/registry/ui/core/molecules/ui-split.orb +236 -0
  495. package/behaviors/registry/ui/core/molecules/ui-star-rating.orb +268 -0
  496. package/behaviors/registry/ui/core/molecules/ui-stat-display.orb +236 -0
  497. package/behaviors/registry/ui/core/molecules/ui-swipeable-row.orb +284 -0
  498. package/behaviors/registry/ui/core/molecules/ui-table-view.orb +425 -3
  499. package/behaviors/registry/ui/core/molecules/ui-tabs.orb +236 -0
  500. package/behaviors/registry/ui/core/molecules/ui-tag-input.orb +236 -0
  501. package/behaviors/registry/ui/core/molecules/ui-tooltip.orb +236 -0
  502. package/behaviors/registry/ui/core/molecules/ui-top-nav-item.orb +236 -0
  503. package/behaviors/registry/ui/core/molecules/ui-upload-drop-zone.orb +236 -0
  504. package/behaviors/registry/ui/core/molecules/ui-version-diff.orb +236 -0
  505. package/behaviors/registry/ui/core/molecules/ui-violation-alert.orb +236 -1
  506. package/behaviors/registry/ui/core/molecules/ui-vote-stack.orb +236 -1
  507. package/behaviors/registry/ui/core/molecules/ui-wizard-container.orb +236 -0
  508. package/behaviors/registry/ui/core/molecules/ui-wizard-navigation.orb +284 -0
  509. package/behaviors/registry/ui/core/molecules/ui-wizard-progress.orb +236 -0
  510. package/behaviors/registry/ui/core/organisms/ui-chat-bar.orb +236 -1
  511. package/behaviors/registry/ui/core/organisms/ui-code-runner-panel.orb +236 -0
  512. package/behaviors/registry/ui/core/organisms/ui-dashboard-grid.orb +236 -1
  513. package/behaviors/registry/ui/core/organisms/ui-detail-panel.orb +1281 -16
  514. package/behaviors/registry/ui/core/organisms/ui-dock-layout.orb +236 -0
  515. package/behaviors/registry/ui/core/organisms/ui-drawer-slot.orb +21 -0
  516. package/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +489 -27
  517. package/behaviors/registry/ui/core/organisms/ui-entity-list.orb +444 -19
  518. package/behaviors/registry/ui/core/organisms/ui-entity-table.orb +410 -0
  519. package/behaviors/registry/ui/core/organisms/ui-form-section.orb +312 -1
  520. package/behaviors/registry/ui/core/organisms/ui-form.orb +312 -1
  521. package/behaviors/registry/ui/core/organisms/ui-master-detail-layout.orb +236 -0
  522. package/behaviors/registry/ui/core/organisms/ui-master-detail.orb +268 -1
  523. package/behaviors/registry/ui/core/organisms/ui-media-gallery.orb +288 -1
  524. package/behaviors/registry/ui/core/organisms/ui-modal-slot.orb +21 -0
  525. package/behaviors/registry/ui/core/organisms/ui-runtime-debugger.orb +236 -0
  526. package/behaviors/registry/ui/core/organisms/ui-segment-renderer.orb +236 -0
  527. package/behaviors/registry/ui/core/organisms/ui-split-pane.orb +252 -0
  528. package/behaviors/registry/ui/core/organisms/ui-stat-card.orb +326 -2
  529. package/behaviors/registry/ui/core/organisms/ui-state-machine-view.orb +236 -2
  530. package/behaviors/registry/ui/core/organisms/ui-subagent-trace-panel.orb +236 -1
  531. package/behaviors/registry/ui/core/organisms/ui-tabbed-container.orb +236 -0
  532. package/behaviors/registry/ui/core/organisms/ui-timeline.orb +306 -5
  533. package/behaviors/registry/ui/core/organisms/ui-toast-slot.orb +236 -1
  534. package/behaviors/registry/ui/core/templates/ui-auth-layout.orb +215 -1
  535. package/behaviors/registry/ui/core/templates/ui-counter-template.orb +236 -2
  536. package/behaviors/registry/ui/core/templates/ui-dashboard-layout.orb +0 -1
  537. package/behaviors/registry/ui/core/templates/ui-generic-app-template.orb +236 -0
  538. package/behaviors/registry/ui/game/atoms/ui-action-palette.orb +236 -0
  539. package/behaviors/registry/ui/game/atoms/ui-action-tile.orb +236 -1
  540. package/behaviors/registry/ui/game/atoms/ui-canvas-2d.orb +243 -0
  541. package/behaviors/registry/ui/game/atoms/ui-canvas.orb +236 -1
  542. package/behaviors/registry/ui/game/atoms/ui-choice-button.orb +237 -1
  543. package/behaviors/registry/ui/game/atoms/ui-control-button.orb +236 -0
  544. package/behaviors/registry/ui/game/atoms/ui-control-grid.orb +236 -0
  545. package/behaviors/registry/ui/game/atoms/ui-dialogue-bubble.orb +237 -2
  546. package/behaviors/registry/ui/game/atoms/ui-draw-mesh.orb +0 -1
  547. package/behaviors/registry/ui/game/atoms/ui-draw-shape.orb +0 -2
  548. package/behaviors/registry/ui/game/atoms/ui-draw-sprite.orb +0 -1
  549. package/behaviors/registry/ui/game/atoms/ui-draw-text.orb +0 -3
  550. package/behaviors/registry/ui/game/atoms/ui-game-audio-toggle.orb +236 -0
  551. package/behaviors/registry/ui/game/atoms/ui-game-hud.orb +236 -0
  552. package/behaviors/registry/ui/game/atoms/ui-game-menu.orb +237 -1
  553. package/behaviors/registry/ui/game/atoms/ui-health-bar.orb +236 -0
  554. package/behaviors/registry/ui/game/atoms/ui-score-display.orb +236 -1
  555. package/behaviors/registry/ui/game/atoms/ui-sequence-bar.orb +236 -0
  556. package/behaviors/registry/ui/game/atoms/ui-stat-badge.orb +236 -0
  557. package/behaviors/registry/ui/game/atoms/ui-state-graph.orb +236 -0
  558. package/behaviors/registry/ui/game/atoms/ui-state-json-view.orb +236 -0
  559. package/behaviors/registry/ui/game/atoms/ui-trait-slot.orb +268 -1
  560. package/behaviors/registry/ui/learning/atoms/ui-algo-graph-canvas.orb +236 -0
  561. package/behaviors/registry/ui/learning/atoms/ui-algorithm-canvas.orb +252 -0
  562. package/behaviors/registry/ui/learning/atoms/ui-biology-canvas.orb +252 -0
  563. package/behaviors/registry/ui/learning/atoms/ui-chemistry-canvas.orb +252 -0
  564. package/behaviors/registry/ui/learning/atoms/ui-learning-canvas.orb +260 -0
  565. package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +252 -0
  566. package/behaviors/registry/ui/learning/atoms/ui-physics-canvas.orb +252 -0
  567. package/dist/behaviors/exports-reader.js +15164 -7081
  568. package/dist/behaviors/functions/index.d.ts +4293 -362
  569. package/dist/behaviors/functions/index.js +15134 -7043
  570. package/dist/behaviors/index.d.ts +1 -1
  571. package/dist/behaviors/index.js +15165 -7082
  572. package/dist/behaviors/query.js +15164 -7081
  573. package/dist/behaviors-embeddings.hash.json +3 -3
  574. package/dist/behaviors-embeddings.json +37 -33
  575. package/dist/behaviors-registry.json +57874 -1895
  576. package/dist/index.d.ts +1 -1
  577. package/dist/index.js +15165 -7082
  578. package/dist/knob-embeddings.hash.json +3 -3
  579. package/dist/knob-embeddings.json +14971 -255
  580. package/dist/registry/factory-signatures.json +1 -1
  581. package/package.json +4 -4
  582. package/behaviors/lolo/agent/organisms/std-agent-rabit.lolo +0 -301
  583. package/behaviors/registry/agent/organisms/std-agent-rabit.orb +0 -2181
@@ -1,5 +1,5 @@
1
1
  {
2
- "description": "Wraps memory/recall + memory/store — semantic memory for agent loops.",
2
+ "description": "std-agent-memory — what an in-app assistant remembers across conversations. Owns AgentMemory rows (content + its embedding, ownerId = the real @user). RECALL { messages } embeds the last turn with `call-service llm embed`, ranks the stored memories whose embedding is comparable (same length as the query's) by cosine similarity and emits RECALLED { messages, context } with the closest `recallLimit` memories joined into one context string (empty when nothing is stored); if embedding fails it emits RECALLED with an empty context, so a memory outage never blocks the assistant. REMEMBER { reply } stores the exchange it just recalled for (asked + answered) with its embedding. AgentMemoryRecall is headless (failures show as toasts); AgentMemoryBrowse is the list view. Rows are meant to be private to their owner: the binding organism declares the @read scoping.",
3
3
  "ledger": {
4
4
  "entries": {
5
5
  "ent_01KXG04EK05QG9T8V7MTF554J2": {
@@ -10,148 +10,121 @@
10
10
  "owner": "workspace",
11
11
  "renames": []
12
12
  },
13
- "evt_01KXG04EK04DVDT44PGZJTKGF1": {
14
- "bakedName": "STORED",
15
- "curName": "STORED",
16
- "id": "evt_01KXG04EK04DVDT44PGZJTKGF1",
13
+ "evt_01M3TYMQKZ3JCCY828NKRZV7WB": {
14
+ "bakedName": "AgentMemoriesLoadFailed",
15
+ "curName": "AgentMemoriesLoadFailed",
16
+ "id": "evt_01M3TYMQKZ3JCCY828NKRZV7WB",
17
17
  "kind": "event",
18
18
  "owner": "workspace",
19
- "parent": "trt_01KXG04EK0H7R48F2R5XN31XVD",
19
+ "parent": "trt_01M3TYMQKZ74ZHT3AFPH8EZNNX",
20
20
  "renames": []
21
21
  },
22
- "evt_01KXG04EK05B1ADEXEAVQAC0A7": {
23
- "bakedName": "STORE_FAILED",
24
- "curName": "STORE_FAILED",
25
- "id": "evt_01KXG04EK05B1ADEXEAVQAC0A7",
26
- "kind": "event",
27
- "owner": "workspace",
28
- "parent": "trt_01KXG04EK0SQ82D4EV0WT4E6EJ",
29
- "renames": []
30
- },
31
- "evt_01KXG04EK05N85N1N52RCRKC7G": {
22
+ "evt_01M3TYMQKZ4VX7GKFF1K5P64NX": {
32
23
  "bakedName": "INIT",
33
24
  "curName": "INIT",
34
- "id": "evt_01KXG04EK05N85N1N52RCRKC7G",
35
- "kind": "event",
36
- "owner": "workspace",
37
- "parent": "trt_01KXG04EK0H7R48F2R5XN31XVD",
38
- "renames": []
39
- },
40
- "evt_01KXG04EK07HZ842J3ZAFV1AMR": {
41
- "bakedName": "RECALL",
42
- "curName": "RECALL",
43
- "id": "evt_01KXG04EK07HZ842J3ZAFV1AMR",
44
- "kind": "event",
45
- "owner": "workspace",
46
- "parent": "trt_01KXG04EK0J5F3N2TEH1DRRZ40",
47
- "renames": []
48
- },
49
- "evt_01KXG04EK0D6Q72ZGBE8M8QKY0": {
50
- "bakedName": "STORED",
51
- "curName": "STORED",
52
- "id": "evt_01KXG04EK0D6Q72ZGBE8M8QKY0",
25
+ "id": "evt_01M3TYMQKZ4VX7GKFF1K5P64NX",
53
26
  "kind": "event",
54
27
  "owner": "workspace",
55
- "parent": "trt_01KXG04EK0SQ82D4EV0WT4E6EJ",
28
+ "parent": "trt_01M3TYMQKZ74ZHT3AFPH8EZNNX",
56
29
  "renames": []
57
30
  },
58
- "evt_01KXG04EK0EB4E11DRWS07JJZM": {
59
- "bakedName": "STORE",
60
- "curName": "STORE",
61
- "id": "evt_01KXG04EK0EB4E11DRWS07JJZM",
31
+ "evt_01M3TYMQKZEYBE50DSRSNVD54X": {
32
+ "bakedName": "MemoryEmbedded",
33
+ "curName": "MemoryEmbedded",
34
+ "id": "evt_01M3TYMQKZEYBE50DSRSNVD54X",
62
35
  "kind": "event",
63
36
  "owner": "workspace",
64
- "parent": "trt_01KXG04EK0SQ82D4EV0WT4E6EJ",
37
+ "parent": "trt_01M3TYMQKZ74ZHT3AFPH8EZNNX",
65
38
  "renames": []
66
39
  },
67
- "evt_01KXG04EK0J0GYY0QF5H8N6W4R": {
68
- "bakedName": "INIT",
69
- "curName": "INIT",
70
- "id": "evt_01KXG04EK0J0GYY0QF5H8N6W4R",
40
+ "evt_01M3TYMQKZGPZ3GDV9SZ5ZSC80": {
41
+ "bakedName": "RECALLED",
42
+ "curName": "RECALLED",
43
+ "id": "evt_01M3TYMQKZGPZ3GDV9SZ5ZSC80",
71
44
  "kind": "event",
72
45
  "owner": "workspace",
73
- "parent": "trt_01KXG04EK0J5F3N2TEH1DRRZ40",
46
+ "parent": "trt_01M3TYMQKZ74ZHT3AFPH8EZNNX",
74
47
  "renames": []
75
48
  },
76
- "evt_01KXG04EK0N9NEAHAYF0TX0JZ7": {
77
- "bakedName": "INIT",
78
- "curName": "INIT",
79
- "id": "evt_01KXG04EK0N9NEAHAYF0TX0JZ7",
49
+ "evt_01M3TYMQKZNV5Q33E1DV1D1C2X": {
50
+ "bakedName": "MemoryEmbedFailed",
51
+ "curName": "MemoryEmbedFailed",
52
+ "id": "evt_01M3TYMQKZNV5Q33E1DV1D1C2X",
80
53
  "kind": "event",
81
54
  "owner": "workspace",
82
- "parent": "trt_01KXG04EK0SQ82D4EV0WT4E6EJ",
55
+ "parent": "trt_01M3TYMQKZ74ZHT3AFPH8EZNNX",
83
56
  "renames": []
84
57
  },
85
- "evt_01KXG04EK0NSKTG0HRA95803JP": {
86
- "bakedName": "RECALLED",
87
- "curName": "RECALLED",
88
- "id": "evt_01KXG04EK0NSKTG0HRA95803JP",
58
+ "evt_01M3TYMQKZQ5TXMDMH5X7V7VQ4": {
59
+ "bakedName": "REMEMBER",
60
+ "curName": "REMEMBER",
61
+ "id": "evt_01M3TYMQKZQ5TXMDMH5X7V7VQ4",
89
62
  "kind": "event",
90
63
  "owner": "workspace",
91
- "parent": "trt_01KXG04EK0J5F3N2TEH1DRRZ40",
64
+ "parent": "trt_01M3TYMQKZ74ZHT3AFPH8EZNNX",
92
65
  "renames": []
93
66
  },
94
- "evt_01KXG04EK0PA1899FQSHR2N5KC": {
95
- "bakedName": "RESET",
96
- "curName": "RESET",
97
- "id": "evt_01KXG04EK0PA1899FQSHR2N5KC",
67
+ "evt_01M3TYMQKZW3BM59DTASK6ZY41": {
68
+ "bakedName": "MemoriesForRecall",
69
+ "curName": "MemoriesForRecall",
70
+ "id": "evt_01M3TYMQKZW3BM59DTASK6ZY41",
98
71
  "kind": "event",
99
72
  "owner": "workspace",
100
- "parent": "trt_01KXG04EK0H7R48F2R5XN31XVD",
73
+ "parent": "trt_01M3TYMQKZ74ZHT3AFPH8EZNNX",
101
74
  "renames": []
102
75
  },
103
- "evt_01KXG04EK0QC666ACA9QYXC6G3": {
104
- "bakedName": "RECALL_FAILED",
105
- "curName": "RECALL_FAILED",
106
- "id": "evt_01KXG04EK0QC666ACA9QYXC6G3",
76
+ "evt_01M3TYMQKZXAVRV1YVNJS591F0": {
77
+ "bakedName": "RECALL",
78
+ "curName": "RECALL",
79
+ "id": "evt_01M3TYMQKZXAVRV1YVNJS591F0",
107
80
  "kind": "event",
108
81
  "owner": "workspace",
109
- "parent": "trt_01KXG04EK0J5F3N2TEH1DRRZ40",
82
+ "parent": "trt_01M3TYMQKZ74ZHT3AFPH8EZNNX",
110
83
  "renames": []
111
84
  },
112
- "evt_01KXG04EK0WETQZ5S1658M06R6": {
113
- "bakedName": "STORE_COMPLETE",
114
- "curName": "STORE_COMPLETE",
115
- "id": "evt_01KXG04EK0WETQZ5S1658M06R6",
85
+ "evt_01M3V04F9J1HPBD611YAYYRQNG": {
86
+ "bakedName": "INIT",
87
+ "curName": "INIT",
88
+ "id": "evt_01M3V04F9J1HPBD611YAYYRQNG",
116
89
  "kind": "event",
117
90
  "owner": "workspace",
118
- "parent": "trt_01KXG04EK0SQ82D4EV0WT4E6EJ",
91
+ "parent": "trt_01M3V04F9JHBCTQN5ZAPRD3DPY",
119
92
  "renames": []
120
93
  },
121
- "evt_01KXG04EK0YD8QDKJQ2CY69HYR": {
122
- "bakedName": "RECALLED",
123
- "curName": "RECALLED",
124
- "id": "evt_01KXG04EK0YD8QDKJQ2CY69HYR",
94
+ "evt_01M3V04F9J3JRQE2H50MEBCN0T": {
95
+ "bakedName": "MEMORY_STORED",
96
+ "curName": "MEMORY_STORED",
97
+ "id": "evt_01M3V04F9J3JRQE2H50MEBCN0T",
125
98
  "kind": "event",
126
99
  "owner": "workspace",
127
- "parent": "trt_01KXG04EK0H7R48F2R5XN31XVD",
100
+ "parent": "trt_01M3V04F9JHBCTQN5ZAPRD3DPY",
128
101
  "renames": []
129
102
  },
130
- "evt_01KXG04EK0YDVV3YVGFHNSEH76": {
131
- "bakedName": "RESET",
132
- "curName": "RESET",
133
- "id": "evt_01KXG04EK0YDVV3YVGFHNSEH76",
103
+ "evt_01M3V04F9JB99VFPH8BVMTZ3M2": {
104
+ "bakedName": "AgentMemoriesLoadFailed",
105
+ "curName": "AgentMemoriesLoadFailed",
106
+ "id": "evt_01M3V04F9JB99VFPH8BVMTZ3M2",
134
107
  "kind": "event",
135
108
  "owner": "workspace",
136
- "parent": "trt_01KXG04EK0J5F3N2TEH1DRRZ40",
109
+ "parent": "trt_01M3V04F9JHBCTQN5ZAPRD3DPY",
137
110
  "renames": []
138
111
  },
139
- "evt_01KXG04EK0YSHWERS2994F51WP": {
140
- "bakedName": "RESET",
141
- "curName": "RESET",
142
- "id": "evt_01KXG04EK0YSHWERS2994F51WP",
112
+ "evt_01M3V04F9JG5TAVE2C0HD475EJ": {
113
+ "bakedName": "AgentMemoriesLoaded",
114
+ "curName": "AgentMemoriesLoaded",
115
+ "id": "evt_01M3V04F9JG5TAVE2C0HD475EJ",
143
116
  "kind": "event",
144
117
  "owner": "workspace",
145
- "parent": "trt_01KXG04EK0SQ82D4EV0WT4E6EJ",
118
+ "parent": "trt_01M3V04F9JHBCTQN5ZAPRD3DPY",
146
119
  "renames": []
147
120
  },
148
- "evt_01KXG04EK0ZXRSGDSXJ1J9S3TB": {
149
- "bakedName": "RECALL_COMPLETE",
150
- "curName": "RECALL_COMPLETE",
151
- "id": "evt_01KXG04EK0ZXRSGDSXJ1J9S3TB",
121
+ "evt_01M3V04F9JVZKDNTN015MZJEKW": {
122
+ "bakedName": "MEMORY_STORED",
123
+ "curName": "MEMORY_STORED",
124
+ "id": "evt_01M3V04F9JVZKDNTN015MZJEKW",
152
125
  "kind": "event",
153
126
  "owner": "workspace",
154
- "parent": "trt_01KXG04EK0J5F3N2TEH1DRRZ40",
127
+ "parent": "trt_01M3TYMQKZ74ZHT3AFPH8EZNNX",
155
128
  "renames": []
156
129
  },
157
130
  "orb_01KXG04EK04KQ6GTRHGM260CQS": {
@@ -170,26 +143,18 @@
170
143
  "owner": "workspace",
171
144
  "renames": []
172
145
  },
173
- "trt_01KXG04EK0H7R48F2R5XN31XVD": {
174
- "bakedName": "MemoryListener",
175
- "curName": "MemoryListener",
176
- "id": "trt_01KXG04EK0H7R48F2R5XN31XVD",
177
- "kind": "trait",
178
- "owner": "workspace",
179
- "renames": []
180
- },
181
- "trt_01KXG04EK0J5F3N2TEH1DRRZ40": {
182
- "bakedName": "MemoryRecall",
183
- "curName": "MemoryRecall",
184
- "id": "trt_01KXG04EK0J5F3N2TEH1DRRZ40",
146
+ "trt_01M3TYMQKZ74ZHT3AFPH8EZNNX": {
147
+ "bakedName": "AgentMemoryRecall",
148
+ "curName": "AgentMemoryRecall",
149
+ "id": "trt_01M3TYMQKZ74ZHT3AFPH8EZNNX",
185
150
  "kind": "trait",
186
151
  "owner": "workspace",
187
152
  "renames": []
188
153
  },
189
- "trt_01KXG04EK0SQ82D4EV0WT4E6EJ": {
190
- "bakedName": "MemoryStore",
191
- "curName": "MemoryStore",
192
- "id": "trt_01KXG04EK0SQ82D4EV0WT4E6EJ",
154
+ "trt_01M3V04F9JHBCTQN5ZAPRD3DPY": {
155
+ "bakedName": "AgentMemoryBrowse",
156
+ "curName": "AgentMemoryBrowse",
157
+ "id": "trt_01M3V04F9JHBCTQN5ZAPRD3DPY",
193
158
  "kind": "trait",
194
159
  "owner": "workspace",
195
160
  "renames": []
@@ -201,71 +166,97 @@
201
166
  "orbitals": [
202
167
  {
203
168
  "entity": {
169
+ "collection": "agentMemories",
204
170
  "fields": [
205
171
  {
206
- "default": "",
207
- "name": "query",
172
+ "name": "id",
173
+ "required": true,
174
+ "type": "string"
175
+ },
176
+ {
177
+ "description": "Whose memory this is (the real @user). The binding organism scopes @read to it.",
178
+ "name": "ownerId",
179
+ "required": true,
180
+ "synonyms": "user, owner, account",
181
+ "type": "string"
182
+ },
183
+ {
184
+ "description": "What is remembered.",
185
+ "name": "content",
186
+ "required": true,
187
+ "synonyms": "memory, note, fact",
208
188
  "type": "string"
209
189
  },
210
190
  {
211
191
  "default": [],
192
+ "description": "The content's embedding, for similarity recall.",
193
+ "items": {
194
+ "type": "number"
195
+ },
196
+ "name": "embedding",
197
+ "type": "array"
198
+ },
199
+ {
200
+ "default": 0.0,
201
+ "description": "When it was remembered (ms).",
202
+ "name": "createdAt",
203
+ "synonyms": "time, timestamp",
204
+ "type": "number"
205
+ },
206
+ {
207
+ "default": [],
208
+ "description": "The conversation a recall is running for.",
209
+ "intrinsic": true,
212
210
  "items": {
213
211
  "properties": {
214
- "category": {
215
- "name": "category",
216
- "required": true,
217
- "type": "string"
218
- },
219
212
  "content": {
220
213
  "name": "content",
221
214
  "required": true,
222
215
  "type": "string"
223
216
  },
224
- "id": {
225
- "name": "id",
226
- "required": true,
227
- "type": "string"
228
- },
229
- "strength": {
230
- "name": "strength",
217
+ "role": {
218
+ "name": "role",
231
219
  "required": false,
232
- "type": "number"
220
+ "type": "string",
221
+ "values": [
222
+ "user",
223
+ "assistant"
224
+ ]
233
225
  }
234
226
  },
235
227
  "type": "object"
236
228
  },
237
- "name": "results",
229
+ "name": "pendingMessages",
238
230
  "type": "array"
239
231
  },
240
232
  {
241
233
  "default": "",
242
- "name": "content",
243
- "type": "string"
244
- },
245
- {
246
- "default": "",
247
- "name": "category",
234
+ "description": "The turn a recall is running for.",
235
+ "intrinsic": true,
236
+ "name": "pendingQuery",
248
237
  "type": "string"
249
238
  },
250
239
  {
251
240
  "default": "",
252
- "name": "memoryId",
241
+ "description": "The exchange being remembered.",
242
+ "intrinsic": true,
243
+ "name": "pendingContent",
253
244
  "type": "string"
254
245
  },
255
246
  {
256
- "default": "idle",
257
- "name": "status",
258
- "type": "string",
259
- "values": [
260
- "idle",
261
- "recalled",
262
- "stored"
263
- ]
247
+ "default": [],
248
+ "description": "The recall query's embedding.",
249
+ "intrinsic": true,
250
+ "items": {
251
+ "type": "number"
252
+ },
253
+ "name": "queryVector",
254
+ "type": "array"
264
255
  }
265
256
  ],
266
257
  "id": "ent_01KXG04EK05QG9T8V7MTF554J2",
267
258
  "name": "AgentMemory",
268
- "persistence": "runtime"
259
+ "persistence": "persistent"
269
260
  },
270
261
  "id": "orb_01KXG04EK04KQ6GTRHGM260CQS",
271
262
  "name": "AgentMemoryOrbital",
@@ -276,16 +267,12 @@
276
267
  "path": "/agent-memory",
277
268
  "traits": [
278
269
  {
279
- "ref": "MemoryRecall",
280
- "refId": "trt_01KXG04EK0J5F3N2TEH1DRRZ40"
281
- },
282
- {
283
- "ref": "MemoryStore",
284
- "refId": "trt_01KXG04EK0SQ82D4EV0WT4E6EJ"
270
+ "ref": "AgentMemoryBrowse",
271
+ "refId": "trt_01M3V04F9JHBCTQN5ZAPRD3DPY"
285
272
  },
286
273
  {
287
- "ref": "MemoryListener",
288
- "refId": "trt_01KXG04EK0H7R48F2R5XN31XVD"
274
+ "ref": "AgentMemoryRecall",
275
+ "refId": "trt_01M3TYMQKZ74ZHT3AFPH8EZNNX"
289
276
  }
290
277
  ]
291
278
  }
@@ -293,80 +280,116 @@
293
280
  "traits": [
294
281
  {
295
282
  "category": "lifecycle",
283
+ "config": {
284
+ "recallLimit": {
285
+ "default": 3.0,
286
+ "description": "How many of the closest memories go to the model with each request.",
287
+ "label": "Memories recalled per request",
288
+ "tier": "policy",
289
+ "type": "number"
290
+ }
291
+ },
296
292
  "effectRow": [
293
+ {
294
+ "kind": "call-service",
295
+ "resource": "llm.embed"
296
+ },
297
297
  {
298
298
  "kind": "emit",
299
299
  "resource": "RECALLED"
300
300
  },
301
301
  {
302
- "kind": "memory/recall"
302
+ "kind": "fetch",
303
+ "resource": "AgentMemory"
303
304
  },
304
305
  {
305
- "kind": "set",
306
- "resource": "@entity.category"
306
+ "kind": "persist",
307
+ "resource": "AgentMemory"
307
308
  },
308
309
  {
309
- "kind": "set",
310
- "resource": "@entity.content"
310
+ "kind": "render-ui",
311
+ "resource": "toast"
311
312
  },
312
313
  {
313
314
  "kind": "set",
314
- "resource": "@entity.memoryId"
315
+ "resource": "@entity.pendingContent"
315
316
  },
316
317
  {
317
318
  "kind": "set",
318
- "resource": "@entity.query"
319
+ "resource": "@entity.pendingMessages"
319
320
  },
320
321
  {
321
322
  "kind": "set",
322
- "resource": "@entity.results"
323
+ "resource": "@entity.pendingQuery"
323
324
  },
324
325
  {
325
326
  "kind": "set",
326
- "resource": "@entity.status"
327
+ "resource": "@entity.queryVector"
327
328
  }
328
329
  ],
329
330
  "emits": [
330
331
  {
332
+ "description": "The conversation, with what the assistant remembers that is closest to its last turn.",
331
333
  "event": "RECALLED",
332
- "eventId": "evt_01KXG04EK0NSKTG0HRA95803JP",
334
+ "eventId": "evt_01M3TYMQKZGPZ3GDV9SZ5ZSC80",
333
335
  "payloadSchema": [
334
336
  {
335
- "entity": "MemoryRecord",
336
- "name": "results",
337
+ "entity": "AgentChatMessage",
338
+ "name": "messages",
337
339
  "properties": [
338
340
  {
339
- "name": "id",
340
- "required": true,
341
+ "name": "role",
341
342
  "type": "string"
342
343
  },
343
344
  {
344
345
  "name": "content",
345
346
  "required": true,
346
347
  "type": "string"
347
- },
348
- {
349
- "name": "category",
350
- "required": true,
351
- "type": "string"
352
- },
353
- {
354
- "name": "strength",
355
- "type": "number"
356
348
  }
357
349
  ],
358
350
  "required": true,
359
351
  "type": "[object]"
352
+ },
353
+ {
354
+ "name": "context",
355
+ "required": true,
356
+ "type": "string"
357
+ }
358
+ ],
359
+ "scope": "external",
360
+ "synonyms": "recalled, remembered, context ready",
361
+ "tier": "domain"
362
+ },
363
+ {
364
+ "description": "A new memory was stored — payload is the created AgentMemory row itself.",
365
+ "event": "MEMORY_STORED",
366
+ "eventId": "evt_01M3V04F9JVZKDNTN015MZJEKW",
367
+ "scope": "external",
368
+ "synonyms": "remembered, stored, saved",
369
+ "tier": "domain"
370
+ },
371
+ {
372
+ "event": "AgentMemoriesLoadFailed",
373
+ "eventId": "evt_01M3TYMQKZ3JCCY828NKRZV7WB",
374
+ "payloadSchema": [
375
+ {
376
+ "name": "error",
377
+ "type": "string"
378
+ },
379
+ {
380
+ "name": "code",
381
+ "type": "string"
360
382
  }
361
- ]
383
+ ],
384
+ "tier": "internal"
362
385
  },
363
386
  {
364
- "event": "RECALL_COMPLETE",
365
- "eventId": "evt_01KXG04EK0ZXRSGDSXJ1J9S3TB",
387
+ "event": "MemoriesForRecall",
388
+ "eventId": "evt_01M3TYMQKZW3BM59DTASK6ZY41",
366
389
  "payloadSchema": [
367
390
  {
368
- "entity": "MemoryRecord",
369
- "name": "result",
391
+ "entity": "AgentMemory",
392
+ "name": "data",
370
393
  "properties": [
371
394
  {
372
395
  "name": "id",
@@ -374,61 +397,172 @@
374
397
  "type": "string"
375
398
  },
376
399
  {
377
- "name": "content",
400
+ "name": "ownerId",
378
401
  "required": true,
379
402
  "type": "string"
380
403
  },
381
404
  {
382
- "name": "category",
405
+ "name": "content",
383
406
  "required": true,
384
407
  "type": "string"
385
408
  },
386
409
  {
387
- "name": "strength",
410
+ "name": "embedding",
411
+ "type": "[number]"
412
+ },
413
+ {
414
+ "name": "createdAt",
388
415
  "type": "number"
416
+ },
417
+ {
418
+ "name": "pendingMessages",
419
+ "properties": [
420
+ {
421
+ "name": "role",
422
+ "type": "string"
423
+ },
424
+ {
425
+ "name": "content",
426
+ "required": true,
427
+ "type": "string"
428
+ }
429
+ ],
430
+ "type": "[object]"
431
+ },
432
+ {
433
+ "name": "pendingQuery",
434
+ "type": "string"
435
+ },
436
+ {
437
+ "name": "pendingContent",
438
+ "type": "string"
439
+ },
440
+ {
441
+ "name": "queryVector",
442
+ "type": "[number]"
389
443
  }
390
444
  ],
391
- "required": true,
392
445
  "type": "[object]"
393
446
  }
394
- ]
447
+ ],
448
+ "scope": "internal",
449
+ "tier": "internal"
450
+ },
451
+ {
452
+ "event": "MemoryEmbedded",
453
+ "eventId": "evt_01M3TYMQKZEYBE50DSRSNVD54X",
454
+ "payloadSchema": [
455
+ {
456
+ "name": "embeddings",
457
+ "type": "[[number]]"
458
+ }
459
+ ],
460
+ "scope": "internal",
461
+ "tier": "internal"
462
+ },
463
+ {
464
+ "event": "MemoryEmbedFailed",
465
+ "eventId": "evt_01M3TYMQKZNV5Q33E1DV1D1C2X",
466
+ "payloadSchema": [
467
+ {
468
+ "name": "error",
469
+ "type": "string"
470
+ }
471
+ ],
472
+ "scope": "internal",
473
+ "tier": "internal"
395
474
  }
396
475
  ],
476
+ "entityContract": {
477
+ "provides": [
478
+ "pendingContent",
479
+ "pendingMessages",
480
+ "pendingQuery",
481
+ "queryVector"
482
+ ],
483
+ "requires": []
484
+ },
485
+ "entityRebindable": true,
397
486
  "entityRefIds": {
398
487
  "AgentMemory": "ent_01KXG04EK05QG9T8V7MTF554J2"
399
488
  },
400
- "id": "trt_01KXG04EK0J5F3N2TEH1DRRZ40",
489
+ "id": "trt_01M3TYMQKZ74ZHT3AFPH8EZNNX",
401
490
  "linkedEntity": "AgentMemory",
402
491
  "linkedEntityId": "ent_01KXG04EK05QG9T8V7MTF554J2",
403
- "name": "MemoryRecall",
492
+ "name": "AgentMemoryRecall",
404
493
  "scope": "instance",
405
494
  "stateMachine": {
406
495
  "events": [
407
496
  {
408
- "id": "evt_01KXG04EK0J0GYY0QF5H8N6W4R",
497
+ "id": "evt_01M3TYMQKZ4VX7GKFF1K5P64NX",
409
498
  "key": "INIT",
410
499
  "name": "Initialize"
411
500
  },
412
501
  {
413
- "id": "evt_01KXG04EK07HZ842J3ZAFV1AMR",
502
+ "description": "A new memory was stored — payload is the created AgentMemory row itself.",
503
+ "id": "evt_01M3V04F9JVZKDNTN015MZJEKW",
504
+ "key": "MEMORY_STORED",
505
+ "name": "Memory Stored",
506
+ "synonyms": "remembered, stored, saved",
507
+ "tier": "domain"
508
+ },
509
+ {
510
+ "description": "Recall what is relevant to this conversation's last turn.",
511
+ "id": "evt_01M3TYMQKZXAVRV1YVNJS591F0",
414
512
  "key": "RECALL",
415
513
  "name": "Recall",
416
514
  "payloadSchema": [
417
515
  {
418
- "name": "query",
516
+ "name": "messages",
517
+ "properties": [
518
+ {
519
+ "name": "role",
520
+ "type": "string"
521
+ },
522
+ {
523
+ "name": "content",
524
+ "required": true,
525
+ "type": "string"
526
+ }
527
+ ],
528
+ "required": true,
529
+ "type": "[object]"
530
+ }
531
+ ]
532
+ },
533
+ {
534
+ "description": "Remember the exchange just answered.",
535
+ "id": "evt_01M3TYMQKZQ5TXMDMH5X7V7VQ4",
536
+ "key": "REMEMBER",
537
+ "name": "Remember",
538
+ "payloadSchema": [
539
+ {
540
+ "name": "reply",
419
541
  "required": true,
420
542
  "type": "string"
421
543
  }
422
544
  ]
423
545
  },
424
546
  {
425
- "id": "evt_01KXG04EK0ZXRSGDSXJ1J9S3TB",
426
- "key": "RECALL_COMPLETE",
427
- "name": "Recall Complete",
547
+ "id": "evt_01M3TYMQKZEYBE50DSRSNVD54X",
548
+ "key": "MemoryEmbedded",
549
+ "name": "Memory embedded",
550
+ "payloadSchema": [
551
+ {
552
+ "name": "embeddings",
553
+ "type": "[[number]]"
554
+ }
555
+ ],
556
+ "tier": "internal"
557
+ },
558
+ {
559
+ "id": "evt_01M3TYMQKZW3BM59DTASK6ZY41",
560
+ "key": "MemoriesForRecall",
561
+ "name": "Memories for recall",
428
562
  "payloadSchema": [
429
563
  {
430
- "entity": "MemoryRecord",
431
- "name": "result",
564
+ "entity": "AgentMemory",
565
+ "name": "data",
432
566
  "properties": [
433
567
  {
434
568
  "name": "id",
@@ -436,80 +570,127 @@
436
570
  "type": "string"
437
571
  },
438
572
  {
439
- "name": "content",
573
+ "name": "ownerId",
440
574
  "required": true,
441
575
  "type": "string"
442
576
  },
443
577
  {
444
- "name": "category",
578
+ "name": "content",
445
579
  "required": true,
446
580
  "type": "string"
447
581
  },
448
582
  {
449
- "name": "strength",
583
+ "name": "embedding",
584
+ "type": "[number]"
585
+ },
586
+ {
587
+ "name": "createdAt",
450
588
  "type": "number"
589
+ },
590
+ {
591
+ "name": "pendingMessages",
592
+ "properties": [
593
+ {
594
+ "name": "role",
595
+ "type": "string"
596
+ },
597
+ {
598
+ "name": "content",
599
+ "required": true,
600
+ "type": "string"
601
+ }
602
+ ],
603
+ "type": "[object]"
604
+ },
605
+ {
606
+ "name": "pendingQuery",
607
+ "type": "string"
608
+ },
609
+ {
610
+ "name": "pendingContent",
611
+ "type": "string"
612
+ },
613
+ {
614
+ "name": "queryVector",
615
+ "type": "[number]"
451
616
  }
452
617
  ],
453
- "required": true,
454
618
  "type": "[object]"
455
619
  }
456
- ]
620
+ ],
621
+ "tier": "internal"
457
622
  },
458
623
  {
459
- "id": "evt_01KXG04EK0QC666ACA9QYXC6G3",
460
- "key": "RECALL_FAILED",
461
- "name": "Recall Failed"
624
+ "id": "evt_01M3TYMQKZNV5Q33E1DV1D1C2X",
625
+ "key": "MemoryEmbedFailed",
626
+ "name": "Memory embed failed",
627
+ "payloadSchema": [
628
+ {
629
+ "name": "error",
630
+ "type": "string"
631
+ }
632
+ ],
633
+ "tier": "internal"
462
634
  },
463
635
  {
464
- "id": "evt_01KXG04EK0YDVV3YVGFHNSEH76",
465
- "key": "RESET",
466
- "name": "Reset"
636
+ "id": "evt_01M3TYMQKZ3JCCY828NKRZV7WB",
637
+ "key": "AgentMemoriesLoadFailed",
638
+ "name": "Agent memories load failed",
639
+ "payloadSchema": [
640
+ {
641
+ "name": "error",
642
+ "type": "string"
643
+ },
644
+ {
645
+ "name": "code",
646
+ "type": "string"
647
+ }
648
+ ],
649
+ "tier": "internal"
467
650
  },
468
651
  {
469
- "id": "evt_01KXG04EK0NSKTG0HRA95803JP",
652
+ "description": "The conversation, with what the assistant remembers that is closest to its last turn.",
653
+ "id": "evt_01M3TYMQKZGPZ3GDV9SZ5ZSC80",
470
654
  "key": "RECALLED",
471
655
  "name": "Recalled",
472
656
  "payloadSchema": [
473
657
  {
474
- "entity": "MemoryRecord",
475
- "name": "results",
658
+ "entity": "AgentChatMessage",
659
+ "name": "messages",
476
660
  "properties": [
477
661
  {
478
- "name": "id",
479
- "required": true,
662
+ "name": "role",
480
663
  "type": "string"
481
664
  },
482
665
  {
483
666
  "name": "content",
484
667
  "required": true,
485
668
  "type": "string"
486
- },
487
- {
488
- "name": "category",
489
- "required": true,
490
- "type": "string"
491
- },
492
- {
493
- "name": "strength",
494
- "type": "number"
495
669
  }
496
670
  ],
497
671
  "required": true,
498
672
  "type": "[object]"
673
+ },
674
+ {
675
+ "name": "context",
676
+ "required": true,
677
+ "type": "string"
499
678
  }
500
- ]
679
+ ],
680
+ "synonyms": "recalled, remembered, context ready",
681
+ "tier": "domain"
501
682
  }
502
683
  ],
503
684
  "states": [
504
685
  {
505
686
  "isInitial": true,
506
- "name": "idle"
687
+ "name": "ready"
507
688
  },
508
689
  {
509
690
  "name": "recalling"
510
691
  },
511
692
  {
512
- "name": "recalled"
693
+ "name": "remembering"
513
694
  }
514
695
  ],
515
696
  "transitions": [
@@ -517,601 +698,635 @@
517
698
  "effects": [
518
699
  [
519
700
  "set",
520
- "@entity.query",
701
+ "@entity.pendingQuery",
521
702
  ""
522
- ],
523
- [
524
- "set",
525
- "@entity.results",
526
- []
527
- ],
703
+ ]
704
+ ],
705
+ "event": "INIT",
706
+ "eventId": "evt_01M3TYMQKZ4VX7GKFF1K5P64NX",
707
+ "from": "ready",
708
+ "to": "ready"
709
+ },
710
+ {
711
+ "effects": [
528
712
  [
529
713
  "set",
530
- "@entity.content",
714
+ "@entity.pendingContent",
531
715
  ""
532
- ],
716
+ ]
717
+ ],
718
+ "event": "MEMORY_STORED",
719
+ "eventId": "evt_01M3V04F9JVZKDNTN015MZJEKW",
720
+ "from": "ready",
721
+ "to": "ready"
722
+ },
723
+ {
724
+ "effects": [
533
725
  [
534
726
  "set",
535
- "@entity.category",
536
- ""
727
+ "@entity.pendingMessages",
728
+ "@payload.messages"
537
729
  ],
538
730
  [
539
731
  "set",
540
- "@entity.memoryId",
541
- ""
732
+ "@entity.pendingQuery",
733
+ [
734
+ "object/get",
735
+ [
736
+ "array/last",
737
+ "@payload.messages"
738
+ ],
739
+ "content"
740
+ ]
542
741
  ],
543
742
  [
544
- "set",
545
- "@entity.status",
546
- "idle"
743
+ "call-service",
744
+ "llm",
745
+ "embed",
746
+ {
747
+ "texts": [
748
+ [
749
+ "object/get",
750
+ [
751
+ "array/last",
752
+ "@payload.messages"
753
+ ],
754
+ "content"
755
+ ]
756
+ ]
757
+ },
758
+ {
759
+ "emit": {
760
+ "failure": "MemoryEmbedFailed",
761
+ "success": "MemoryEmbedded"
762
+ }
763
+ }
547
764
  ]
548
765
  ],
549
- "event": "INIT",
550
- "eventId": "evt_01KXG04EK0J0GYY0QF5H8N6W4R",
551
- "from": "idle",
552
- "to": "idle"
766
+ "event": "RECALL",
767
+ "eventId": "evt_01M3TYMQKZXAVRV1YVNJS591F0",
768
+ "from": "ready",
769
+ "to": "recalling"
553
770
  },
554
771
  {
555
772
  "effects": [
556
773
  [
557
774
  "set",
558
- "@entity.query",
559
- "@payload.query"
775
+ "@entity.pendingContent",
776
+ [
777
+ "str/concat",
778
+ "Asked: ",
779
+ "@entity.pendingQuery",
780
+ " | Answered: ",
781
+ "@payload.reply"
782
+ ]
560
783
  ],
561
784
  [
562
- "memory/recall",
563
- "@entity.query",
785
+ "call-service",
786
+ "llm",
787
+ "embed",
788
+ {
789
+ "texts": [
790
+ [
791
+ "str/concat",
792
+ "Asked: ",
793
+ "@entity.pendingQuery",
794
+ " | Answered: ",
795
+ "@payload.reply"
796
+ ]
797
+ ]
798
+ },
564
799
  {
565
800
  "emit": {
566
- "failure": "RECALL_FAILED",
567
- "success": "RECALL_COMPLETE"
801
+ "failure": "MemoryEmbedFailed",
802
+ "success": "MemoryEmbedded"
568
803
  }
569
804
  }
570
805
  ]
571
806
  ],
572
- "event": "RECALL",
573
- "eventId": "evt_01KXG04EK07HZ842J3ZAFV1AMR",
574
- "from": "idle",
575
- "to": "recalling"
807
+ "event": "REMEMBER",
808
+ "eventId": "evt_01M3TYMQKZQ5TXMDMH5X7V7VQ4",
809
+ "from": "ready",
810
+ "to": "remembering"
576
811
  },
577
812
  {
578
813
  "effects": [
579
814
  [
580
815
  "set",
581
- "@entity.results",
582
- "@payload.result"
816
+ "@entity.queryVector",
817
+ [
818
+ "array/first",
819
+ "@payload.embeddings"
820
+ ]
583
821
  ],
584
822
  [
585
- "set",
586
- "@entity.status",
587
- "recalled"
588
- ],
823
+ "fetch",
824
+ "AgentMemory",
825
+ {
826
+ "emit": {
827
+ "failure": "AgentMemoriesLoadFailed",
828
+ "success": "MemoriesForRecall"
829
+ }
830
+ }
831
+ ]
832
+ ],
833
+ "event": "MemoryEmbedded",
834
+ "eventId": "evt_01M3TYMQKZEYBE50DSRSNVD54X",
835
+ "from": "recalling",
836
+ "to": "recalling"
837
+ },
838
+ {
839
+ "effects": [
589
840
  [
590
841
  "emit",
591
842
  "RECALLED",
592
843
  {
593
- "results": "@entity.results"
844
+ "context": [
845
+ "str/join",
846
+ [
847
+ "array/map",
848
+ [
849
+ "array/take",
850
+ [
851
+ "array/sort",
852
+ [
853
+ "array/map",
854
+ [
855
+ "array/filter",
856
+ "@payload.data",
857
+ [
858
+ "fn",
859
+ "item",
860
+ [
861
+ "=",
862
+ [
863
+ "array/len",
864
+ "@item.embedding"
865
+ ],
866
+ [
867
+ "array/len",
868
+ "@entity.queryVector"
869
+ ]
870
+ ]
871
+ ]
872
+ ],
873
+ [
874
+ "fn",
875
+ "item",
876
+ {
877
+ "content": "@item.content",
878
+ "score": [
879
+ "array/cosine",
880
+ "@item.embedding",
881
+ "@entity.queryVector"
882
+ ]
883
+ }
884
+ ]
885
+ ],
886
+ "score",
887
+ "desc"
888
+ ],
889
+ "@config.recallLimit"
890
+ ],
891
+ [
892
+ "fn",
893
+ "item",
894
+ "@item.content"
895
+ ]
896
+ ],
897
+ "\n"
898
+ ],
899
+ "messages": "@entity.pendingMessages"
594
900
  }
595
901
  ]
596
902
  ],
597
- "event": "RECALL_COMPLETE",
598
- "eventId": "evt_01KXG04EK0ZXRSGDSXJ1J9S3TB",
903
+ "event": "MemoriesForRecall",
904
+ "eventId": "evt_01M3TYMQKZW3BM59DTASK6ZY41",
599
905
  "from": "recalling",
600
- "to": "recalled"
906
+ "to": "ready"
601
907
  },
602
908
  {
603
909
  "effects": [
604
- [
605
- "set",
606
- "@entity.results",
607
- []
608
- ],
609
- [
610
- "set",
611
- "@entity.status",
612
- "recalled"
613
- ],
614
910
  [
615
911
  "emit",
616
912
  "RECALLED",
617
913
  {
618
- "results": "@entity.results"
914
+ "context": "",
915
+ "messages": "@entity.pendingMessages"
916
+ }
917
+ ],
918
+ [
919
+ "render-ui",
920
+ "toast",
921
+ {
922
+ "message": "@payload.error",
923
+ "type": "alert",
924
+ "variant": "warning"
619
925
  }
620
926
  ]
621
927
  ],
622
- "event": "RECALL_FAILED",
623
- "eventId": "evt_01KXG04EK0QC666ACA9QYXC6G3",
928
+ "event": "MemoryEmbedFailed",
929
+ "eventId": "evt_01M3TYMQKZNV5Q33E1DV1D1C2X",
624
930
  "from": "recalling",
625
- "to": "recalled"
931
+ "to": "ready"
626
932
  },
627
933
  {
628
934
  "effects": [
629
935
  [
630
- "set",
631
- "@entity.status",
632
- "recalled"
936
+ "emit",
937
+ "RECALLED",
938
+ {
939
+ "context": "",
940
+ "messages": "@entity.pendingMessages"
941
+ }
942
+ ],
943
+ [
944
+ "render-ui",
945
+ "toast",
946
+ {
947
+ "message": "@payload.error",
948
+ "type": "alert",
949
+ "variant": "warning"
950
+ }
633
951
  ]
634
952
  ],
635
- "event": "INIT",
636
- "eventId": "evt_01KXG04EK0J0GYY0QF5H8N6W4R",
637
- "from": "recalled",
638
- "to": "recalled"
953
+ "event": "AgentMemoriesLoadFailed",
954
+ "eventId": "evt_01M3TYMQKZ3JCCY828NKRZV7WB",
955
+ "from": "recalling",
956
+ "to": "ready"
639
957
  },
640
958
  {
641
959
  "effects": [
642
960
  [
643
- "set",
644
- "@entity.results",
645
- []
646
- ],
647
- [
648
- "set",
649
- "@entity.query",
650
- ""
651
- ],
961
+ "persist",
962
+ "create",
963
+ "AgentMemory",
964
+ {
965
+ "content": "@entity.pendingContent",
966
+ "createdAt": "@now",
967
+ "embedding": [
968
+ "array/first",
969
+ "@payload.embeddings"
970
+ ],
971
+ "ownerId": "@user.id"
972
+ },
973
+ {
974
+ "emit": {
975
+ "success": "MEMORY_STORED"
976
+ }
977
+ }
978
+ ]
979
+ ],
980
+ "event": "MemoryEmbedded",
981
+ "eventId": "evt_01M3TYMQKZEYBE50DSRSNVD54X",
982
+ "from": "remembering",
983
+ "to": "ready"
984
+ },
985
+ {
986
+ "effects": [
652
987
  [
653
- "set",
654
- "@entity.status",
655
- "idle"
988
+ "render-ui",
989
+ "toast",
990
+ {
991
+ "message": "@payload.error",
992
+ "type": "alert",
993
+ "variant": "warning"
994
+ }
656
995
  ]
657
996
  ],
658
- "event": "RESET",
659
- "eventId": "evt_01KXG04EK0YDVV3YVGFHNSEH76",
660
- "from": "recalled",
661
- "to": "idle"
997
+ "event": "MemoryEmbedFailed",
998
+ "eventId": "evt_01M3TYMQKZNV5Q33E1DV1D1C2X",
999
+ "from": "remembering",
1000
+ "to": "ready"
662
1001
  }
663
1002
  ]
664
1003
  }
665
1004
  },
666
1005
  {
667
- "category": "lifecycle",
1006
+ "category": "interaction",
668
1007
  "effectRow": [
669
1008
  {
670
- "kind": "emit",
671
- "resource": "STORED"
672
- },
673
- {
674
- "kind": "memory/store"
1009
+ "kind": "fetch",
1010
+ "resource": "AgentMemory"
675
1011
  },
676
1012
  {
677
- "kind": "set",
678
- "resource": "@entity.category"
679
- },
680
- {
681
- "kind": "set",
682
- "resource": "@entity.content"
683
- },
684
- {
685
- "kind": "set",
686
- "resource": "@entity.memoryId"
687
- },
688
- {
689
- "kind": "set",
690
- "resource": "@entity.status"
1013
+ "kind": "render-ui",
1014
+ "resource": "main"
691
1015
  }
692
1016
  ],
693
1017
  "emits": [
694
1018
  {
695
- "event": "STORED",
696
- "eventId": "evt_01KXG04EK0D6Q72ZGBE8M8QKY0",
1019
+ "description": "The stored memories finished loading.",
1020
+ "event": "AgentMemoriesLoaded",
1021
+ "eventId": "evt_01M3V04F9JG5TAVE2C0HD475EJ",
697
1022
  "payloadSchema": [
698
1023
  {
699
- "name": "memoryId",
700
- "required": true,
701
- "type": "string"
1024
+ "entity": "AgentMemory",
1025
+ "name": "data",
1026
+ "properties": [
1027
+ {
1028
+ "name": "id",
1029
+ "required": true,
1030
+ "type": "string"
1031
+ },
1032
+ {
1033
+ "name": "ownerId",
1034
+ "required": true,
1035
+ "type": "string"
1036
+ },
1037
+ {
1038
+ "name": "content",
1039
+ "required": true,
1040
+ "type": "string"
1041
+ },
1042
+ {
1043
+ "name": "embedding",
1044
+ "type": "[number]"
1045
+ },
1046
+ {
1047
+ "name": "createdAt",
1048
+ "type": "number"
1049
+ },
1050
+ {
1051
+ "name": "pendingMessages",
1052
+ "properties": [
1053
+ {
1054
+ "name": "role",
1055
+ "type": "string"
1056
+ },
1057
+ {
1058
+ "name": "content",
1059
+ "required": true,
1060
+ "type": "string"
1061
+ }
1062
+ ],
1063
+ "type": "[object]"
1064
+ },
1065
+ {
1066
+ "name": "pendingQuery",
1067
+ "type": "string"
1068
+ },
1069
+ {
1070
+ "name": "pendingContent",
1071
+ "type": "string"
1072
+ },
1073
+ {
1074
+ "name": "queryVector",
1075
+ "type": "[number]"
1076
+ }
1077
+ ],
1078
+ "type": "[object]"
702
1079
  }
703
- ]
1080
+ ],
1081
+ "tier": "internal"
704
1082
  },
705
1083
  {
706
- "event": "STORE_COMPLETE",
707
- "eventId": "evt_01KXG04EK0WETQZ5S1658M06R6",
1084
+ "event": "AgentMemoriesLoadFailed",
1085
+ "eventId": "evt_01M3V04F9JB99VFPH8BVMTZ3M2",
708
1086
  "payloadSchema": [
709
1087
  {
710
- "name": "result",
711
- "required": true,
1088
+ "name": "error",
1089
+ "type": "string"
1090
+ },
1091
+ {
1092
+ "name": "code",
712
1093
  "type": "string"
713
1094
  }
714
- ]
1095
+ ],
1096
+ "tier": "internal"
715
1097
  }
716
1098
  ],
1099
+ "entityContract": {
1100
+ "provides": [],
1101
+ "requires": []
1102
+ },
1103
+ "entityRebindable": true,
717
1104
  "entityRefIds": {
718
1105
  "AgentMemory": "ent_01KXG04EK05QG9T8V7MTF554J2"
719
1106
  },
720
- "id": "trt_01KXG04EK0SQ82D4EV0WT4E6EJ",
1107
+ "id": "trt_01M3V04F9JHBCTQN5ZAPRD3DPY",
721
1108
  "linkedEntity": "AgentMemory",
722
1109
  "linkedEntityId": "ent_01KXG04EK05QG9T8V7MTF554J2",
723
- "name": "MemoryStore",
724
- "scope": "instance",
1110
+ "listens": [
1111
+ {
1112
+ "event": "MEMORY_STORED",
1113
+ "eventId": "evt_01M3V04F9JVZKDNTN015MZJEKW",
1114
+ "source": {
1115
+ "kind": "trait",
1116
+ "trait": "AgentMemoryRecall",
1117
+ "traitId": "trt_01M3TYMQKZ74ZHT3AFPH8EZNNX"
1118
+ },
1119
+ "triggers": "MEMORY_STORED",
1120
+ "triggersId": "evt_01M3V04F9J3JRQE2H50MEBCN0T"
1121
+ }
1122
+ ],
1123
+ "name": "AgentMemoryBrowse",
1124
+ "scope": "collection",
725
1125
  "stateMachine": {
726
1126
  "events": [
727
1127
  {
728
- "id": "evt_01KXG04EK0N9NEAHAYF0TX0JZ7",
1128
+ "id": "evt_01M3V04F9J1HPBD611YAYYRQNG",
729
1129
  "key": "INIT",
730
1130
  "name": "Initialize"
731
1131
  },
732
1132
  {
733
- "id": "evt_01KXG04EK0EB4E11DRWS07JJZM",
734
- "key": "STORE",
735
- "name": "Store",
1133
+ "description": "The stored memories finished loading.",
1134
+ "id": "evt_01M3V04F9JG5TAVE2C0HD475EJ",
1135
+ "key": "AgentMemoriesLoaded",
1136
+ "name": "Agent memories loaded",
736
1137
  "payloadSchema": [
737
1138
  {
738
- "name": "content",
739
- "required": true,
740
- "type": "string"
741
- },
742
- {
743
- "name": "category",
744
- "required": true,
745
- "type": "string"
1139
+ "entity": "AgentMemory",
1140
+ "name": "data",
1141
+ "properties": [
1142
+ {
1143
+ "name": "id",
1144
+ "required": true,
1145
+ "type": "string"
1146
+ },
1147
+ {
1148
+ "name": "ownerId",
1149
+ "required": true,
1150
+ "type": "string"
1151
+ },
1152
+ {
1153
+ "name": "content",
1154
+ "required": true,
1155
+ "type": "string"
1156
+ },
1157
+ {
1158
+ "name": "embedding",
1159
+ "type": "[number]"
1160
+ },
1161
+ {
1162
+ "name": "createdAt",
1163
+ "type": "number"
1164
+ },
1165
+ {
1166
+ "name": "pendingMessages",
1167
+ "type": "[AgentChatMessage]"
1168
+ },
1169
+ {
1170
+ "name": "pendingQuery",
1171
+ "type": "string"
1172
+ },
1173
+ {
1174
+ "name": "pendingContent",
1175
+ "type": "string"
1176
+ },
1177
+ {
1178
+ "name": "queryVector",
1179
+ "type": "[number]"
1180
+ }
1181
+ ],
1182
+ "type": "[object]"
746
1183
  }
747
- ]
1184
+ ],
1185
+ "tier": "internal"
748
1186
  },
749
1187
  {
750
- "id": "evt_01KXG04EK0WETQZ5S1658M06R6",
751
- "key": "STORE_COMPLETE",
752
- "name": "Store Complete",
1188
+ "id": "evt_01M3V04F9JB99VFPH8BVMTZ3M2",
1189
+ "key": "AgentMemoriesLoadFailed",
1190
+ "name": "Agent memories load failed",
753
1191
  "payloadSchema": [
754
1192
  {
755
- "name": "result",
756
- "required": true,
1193
+ "name": "error",
757
1194
  "type": "string"
758
- }
759
- ]
760
- },
761
- {
762
- "id": "evt_01KXG04EK05B1ADEXEAVQAC0A7",
763
- "key": "STORE_FAILED",
764
- "name": "Store Failed"
765
- },
766
- {
767
- "id": "evt_01KXG04EK0YSHWERS2994F51WP",
768
- "key": "RESET",
769
- "name": "Reset"
770
- },
771
- {
772
- "id": "evt_01KXG04EK0D6Q72ZGBE8M8QKY0",
773
- "key": "STORED",
774
- "name": "Stored",
775
- "payloadSchema": [
1195
+ },
776
1196
  {
777
- "name": "memoryId",
778
- "required": true,
1197
+ "name": "code",
779
1198
  "type": "string"
780
1199
  }
781
- ]
1200
+ ],
1201
+ "tier": "internal"
1202
+ },
1203
+ {
1204
+ "id": "evt_01M3V04F9J3JRQE2H50MEBCN0T",
1205
+ "key": "MEMORY_STORED",
1206
+ "name": "Memory Stored"
782
1207
  }
783
1208
  ],
784
1209
  "states": [
785
1210
  {
786
1211
  "isInitial": true,
787
- "name": "idle"
788
- },
789
- {
790
- "name": "storing"
791
- },
792
- {
793
- "name": "stored"
1212
+ "name": "browsing"
794
1213
  }
795
1214
  ],
796
1215
  "transitions": [
797
1216
  {
798
1217
  "effects": [
799
1218
  [
800
- "set",
801
- "@entity.content",
802
- ""
803
- ],
804
- [
805
- "set",
806
- "@entity.category",
807
- ""
808
- ],
809
- [
810
- "set",
811
- "@entity.memoryId",
812
- ""
813
- ],
814
- [
815
- "set",
816
- "@entity.status",
817
- "idle"
818
- ]
819
- ],
820
- "event": "INIT",
821
- "eventId": "evt_01KXG04EK0N9NEAHAYF0TX0JZ7",
822
- "from": "idle",
823
- "to": "idle"
824
- },
825
- {
826
- "effects": [
827
- [
828
- "set",
829
- "@entity.content",
830
- "@payload.content"
831
- ],
832
- [
833
- "set",
834
- "@entity.category",
835
- "@payload.category"
836
- ],
837
- [
838
- "memory/store",
839
- "@entity.content",
840
- "@entity.category",
1219
+ "fetch",
1220
+ "AgentMemory",
841
1221
  {
842
1222
  "emit": {
843
- "failure": "STORE_FAILED",
844
- "success": "STORE_COMPLETE"
1223
+ "failure": "AgentMemoriesLoadFailed",
1224
+ "success": "AgentMemoriesLoaded"
845
1225
  }
846
1226
  }
847
- ]
848
- ],
849
- "event": "STORE",
850
- "eventId": "evt_01KXG04EK0EB4E11DRWS07JJZM",
851
- "from": "idle",
852
- "to": "storing"
853
- },
854
- {
855
- "effects": [
856
- [
857
- "set",
858
- "@entity.memoryId",
859
- "@payload.result"
860
- ],
861
- [
862
- "set",
863
- "@entity.status",
864
- "stored"
865
1227
  ],
866
1228
  [
867
- "emit",
868
- "STORED",
1229
+ "render-ui",
1230
+ "main",
869
1231
  {
870
- "memoryId": "@entity.memoryId"
1232
+ "rows": 6.0,
1233
+ "type": "skeleton",
1234
+ "variant": "list"
871
1235
  }
872
1236
  ]
873
1237
  ],
874
- "event": "STORE_COMPLETE",
875
- "eventId": "evt_01KXG04EK0WETQZ5S1658M06R6",
876
- "from": "storing",
877
- "to": "stored"
1238
+ "event": "INIT",
1239
+ "eventId": "evt_01M3V04F9J1HPBD611YAYYRQNG",
1240
+ "from": "browsing",
1241
+ "to": "browsing"
878
1242
  },
879
1243
  {
880
1244
  "effects": [
881
1245
  [
882
- "set",
883
- "@entity.memoryId",
884
- ""
885
- ],
886
- [
887
- "set",
888
- "@entity.status",
889
- "stored"
890
- ],
891
- [
892
- "emit",
893
- "STORED",
1246
+ "render-ui",
1247
+ "main",
894
1248
  {
895
- "memoryId": "@entity.memoryId"
1249
+ "emptyTitle": "Nothing remembered yet",
1250
+ "entity": [
1251
+ "array/sort",
1252
+ "@payload.data",
1253
+ "createdAt",
1254
+ "desc"
1255
+ ],
1256
+ "fields": [],
1257
+ "gap": "sm",
1258
+ "renderItem": [
1259
+ "fn",
1260
+ "item",
1261
+ {
1262
+ "content": "@item.content",
1263
+ "type": "typography",
1264
+ "variant": "body"
1265
+ }
1266
+ ],
1267
+ "type": "data-list"
896
1268
  }
897
1269
  ]
898
1270
  ],
899
- "event": "STORE_FAILED",
900
- "eventId": "evt_01KXG04EK05B1ADEXEAVQAC0A7",
901
- "from": "storing",
902
- "to": "stored"
903
- },
904
- {
905
- "effects": [
906
- [
907
- "set",
908
- "@entity.status",
909
- "stored"
910
- ]
911
- ],
912
- "event": "INIT",
913
- "eventId": "evt_01KXG04EK0N9NEAHAYF0TX0JZ7",
914
- "from": "stored",
915
- "to": "stored"
916
- },
917
- {
918
- "effects": [
919
- [
920
- "set",
921
- "@entity.content",
922
- ""
923
- ],
924
- [
925
- "set",
926
- "@entity.category",
927
- ""
928
- ],
929
- [
930
- "set",
931
- "@entity.memoryId",
932
- ""
933
- ],
934
- [
935
- "set",
936
- "@entity.status",
937
- "idle"
938
- ]
939
- ],
940
- "event": "RESET",
941
- "eventId": "evt_01KXG04EK0YSHWERS2994F51WP",
942
- "from": "stored",
943
- "to": "idle"
944
- }
945
- ]
946
- }
947
- },
948
- {
949
- "category": "lifecycle",
950
- "effectRow": [
951
- {
952
- "kind": "set",
953
- "resource": "@entity.status"
954
- }
955
- ],
956
- "entityRefIds": {
957
- "AgentMemory": "ent_01KXG04EK05QG9T8V7MTF554J2"
958
- },
959
- "id": "trt_01KXG04EK0H7R48F2R5XN31XVD",
960
- "linkedEntity": "AgentMemory",
961
- "linkedEntityId": "ent_01KXG04EK05QG9T8V7MTF554J2",
962
- "listens": [
963
- {
964
- "event": "RECALLED",
965
- "eventId": "evt_01KXG04EK0NSKTG0HRA95803JP",
966
- "source": {
967
- "kind": "trait",
968
- "trait": "MemoryRecall",
969
- "traitId": "trt_01KXG04EK0J5F3N2TEH1DRRZ40"
970
- },
971
- "triggers": "RECALLED",
972
- "triggersId": "evt_01KXG04EK0YD8QDKJQ2CY69HYR"
973
- },
974
- {
975
- "event": "STORED",
976
- "eventId": "evt_01KXG04EK0D6Q72ZGBE8M8QKY0",
977
- "source": {
978
- "kind": "trait",
979
- "trait": "MemoryStore",
980
- "traitId": "trt_01KXG04EK0SQ82D4EV0WT4E6EJ"
981
- },
982
- "triggers": "STORED",
983
- "triggersId": "evt_01KXG04EK04DVDT44PGZJTKGF1"
984
- }
985
- ],
986
- "name": "MemoryListener",
987
- "scope": "instance",
988
- "stateMachine": {
989
- "events": [
990
- {
991
- "id": "evt_01KXG04EK05N85N1N52RCRKC7G",
992
- "key": "INIT",
993
- "name": "Initialize"
994
- },
995
- {
996
- "id": "evt_01KXG04EK0YD8QDKJQ2CY69HYR",
997
- "key": "RECALLED",
998
- "name": "Recalled"
999
- },
1000
- {
1001
- "id": "evt_01KXG04EK04DVDT44PGZJTKGF1",
1002
- "key": "STORED",
1003
- "name": "Stored"
1004
- },
1005
- {
1006
- "id": "evt_01KXG04EK0PA1899FQSHR2N5KC",
1007
- "key": "RESET",
1008
- "name": "Reset"
1009
- }
1010
- ],
1011
- "states": [
1012
- {
1013
- "isInitial": true,
1014
- "name": "waiting"
1015
- },
1016
- {
1017
- "name": "updated"
1018
- }
1019
- ],
1020
- "transitions": [
1021
- {
1022
- "effects": [
1023
- [
1024
- "set",
1025
- "@entity.status",
1026
- "idle"
1027
- ]
1028
- ],
1029
- "event": "INIT",
1030
- "eventId": "evt_01KXG04EK05N85N1N52RCRKC7G",
1031
- "from": "waiting",
1032
- "to": "waiting"
1033
- },
1034
- {
1035
- "effects": [
1036
- [
1037
- "set",
1038
- "@entity.status",
1039
- "recalled"
1040
- ]
1041
- ],
1042
- "event": "RECALLED",
1043
- "eventId": "evt_01KXG04EK0YD8QDKJQ2CY69HYR",
1044
- "from": "waiting",
1045
- "to": "updated"
1271
+ "event": "AgentMemoriesLoaded",
1272
+ "eventId": "evt_01M3V04F9JG5TAVE2C0HD475EJ",
1273
+ "from": "browsing",
1274
+ "to": "browsing"
1046
1275
  },
1047
1276
  {
1048
1277
  "effects": [
1049
1278
  [
1050
- "set",
1051
- "@entity.status",
1052
- "stored"
1053
- ]
1054
- ],
1055
- "event": "STORED",
1056
- "eventId": "evt_01KXG04EK04DVDT44PGZJTKGF1",
1057
- "from": "waiting",
1058
- "to": "updated"
1059
- },
1060
- {
1061
- "effects": [
1062
- [
1063
- "set",
1064
- "@entity.status",
1065
- "idle"
1279
+ "render-ui",
1280
+ "main",
1281
+ {
1282
+ "message": "@payload.error",
1283
+ "type": "alert",
1284
+ "variant": "error"
1285
+ }
1066
1286
  ]
1067
1287
  ],
1068
- "event": "INIT",
1069
- "eventId": "evt_01KXG04EK05N85N1N52RCRKC7G",
1070
- "from": "updated",
1071
- "to": "updated"
1288
+ "event": "AgentMemoriesLoadFailed",
1289
+ "eventId": "evt_01M3V04F9JB99VFPH8BVMTZ3M2",
1290
+ "from": "browsing",
1291
+ "to": "browsing"
1072
1292
  },
1073
1293
  {
1074
1294
  "effects": [
1075
1295
  [
1076
- "set",
1077
- "@entity.status",
1078
- "idle"
1296
+ "fetch",
1297
+ "AgentMemory",
1298
+ {
1299
+ "emit": {
1300
+ "failure": "AgentMemoriesLoadFailed",
1301
+ "success": "AgentMemoriesLoaded"
1302
+ }
1303
+ }
1079
1304
  ]
1080
1305
  ],
1081
- "event": "RESET",
1082
- "eventId": "evt_01KXG04EK0PA1899FQSHR2N5KC",
1083
- "from": "updated",
1084
- "to": "waiting"
1306
+ "event": "MEMORY_STORED",
1307
+ "eventId": "evt_01M3V04F9J3JRQE2H50MEBCN0T",
1308
+ "from": "browsing",
1309
+ "to": "browsing"
1085
1310
  }
1086
1311
  ]
1087
1312
  }
1088
1313
  }
1089
1314
  ],
1090
1315
  "types": {
1091
- "MemoryRecord": [
1316
+ "AgentChatMessage": [
1092
1317
  {
1093
- "name": "id",
1094
- "required": true,
1318
+ "name": "role",
1095
1319
  "type": "string"
1096
1320
  },
1097
1321
  {
1098
1322
  "name": "content",
1099
1323
  "required": true,
1100
1324
  "type": "string"
1101
- },
1102
- {
1103
- "name": "category",
1104
- "required": true,
1105
- "type": "string"
1106
- },
1107
- {
1108
- "name": "strength",
1109
- "type": "number"
1110
1325
  }
1111
1326
  ]
1112
1327
  }
1113
1328
  }
1114
1329
  ],
1115
1330
  "schemaVersion": 1,
1116
- "version": "1.0.0"
1331
+ "version": "2.0.0"
1117
1332
  }