@almadar/std 16.237.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 (574) hide show
  1. package/behaviors/behaviors-registry.json +56939 -2084
  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-cache-aside.lolo +4 -17
  9. package/behaviors/lolo/infra/atoms/std-notification-preferences.lolo +21 -13
  10. package/behaviors/lolo/ui/avl/atoms/ui-avl-glyph.lolo +90 -0
  11. package/behaviors/lolo/ui/avl/atoms/ui-avl-state-machine.lolo +90 -0
  12. package/behaviors/lolo/ui/avl/atoms/ui-behavior-view.lolo +80 -0
  13. package/behaviors/lolo/ui/avl/atoms/ui-module-card.lolo +80 -0
  14. package/behaviors/lolo/ui/core/atoms/std-billable-hour.lolo +12 -21
  15. package/behaviors/lolo/ui/core/atoms/std-board.lolo +5 -32
  16. package/behaviors/lolo/ui/core/atoms/std-book-reader.lolo +19 -11
  17. package/behaviors/lolo/ui/core/atoms/std-browse.lolo +10 -2
  18. package/behaviors/lolo/ui/core/atoms/std-calendar.lolo +4 -16
  19. package/behaviors/lolo/ui/core/atoms/std-detail-layout.lolo +3 -1
  20. package/behaviors/lolo/ui/core/atoms/std-esign-flow.lolo +21 -13
  21. package/behaviors/lolo/ui/core/atoms/std-esign-request.lolo +12 -2
  22. package/behaviors/lolo/ui/core/atoms/std-event-log.lolo +12 -10
  23. package/behaviors/lolo/ui/core/atoms/std-file-store.lolo +27 -71
  24. package/behaviors/lolo/ui/core/atoms/std-gantt-schedule.lolo +21 -13
  25. package/behaviors/lolo/ui/core/atoms/std-image-upload-multi.lolo +6 -20
  26. package/behaviors/lolo/ui/core/atoms/std-list.lolo +21 -13
  27. package/behaviors/lolo/ui/core/atoms/std-multi-party-flow.lolo +28 -14
  28. package/behaviors/lolo/ui/core/atoms/std-prose.lolo +7 -1
  29. package/behaviors/lolo/ui/core/atoms/std-rating-review.lolo +23 -8
  30. package/behaviors/lolo/ui/core/atoms/std-record-detail.lolo +126 -18
  31. package/behaviors/lolo/ui/core/atoms/std-recurrence.lolo +24 -20
  32. package/behaviors/lolo/ui/core/atoms/std-related.lolo +36 -25
  33. package/behaviors/lolo/ui/core/atoms/std-saved-search.lolo +14 -21
  34. package/behaviors/lolo/ui/core/atoms/std-scoped-list.lolo +143 -0
  35. package/behaviors/lolo/ui/core/atoms/std-selection.lolo +27 -14
  36. package/behaviors/lolo/ui/core/atoms/std-signature-capture.lolo +1 -13
  37. package/behaviors/lolo/ui/core/atoms/std-slide-deck.lolo +2 -2
  38. package/behaviors/lolo/ui/core/atoms/std-step-flow.lolo +4 -16
  39. package/behaviors/lolo/ui/core/atoms/std-tag-taxonomy.lolo +24 -80
  40. package/behaviors/lolo/ui/core/atoms/std-thread.lolo +92 -31
  41. package/behaviors/lolo/ui/core/atoms/std-tree.lolo +18 -22
  42. package/behaviors/lolo/ui/core/atoms/std-version-history.lolo +36 -82
  43. package/behaviors/lolo/ui/core/atoms/std-vote.lolo +2 -39
  44. package/behaviors/lolo/ui/core/atoms/std-wizard.lolo +20 -10
  45. package/behaviors/lolo/ui/core/atoms/ui-animated-graphic.lolo +90 -0
  46. package/behaviors/lolo/ui/core/atoms/ui-animated-reveal.lolo +90 -0
  47. package/behaviors/lolo/ui/core/atoms/ui-aside.lolo +90 -0
  48. package/behaviors/lolo/ui/core/atoms/ui-atlas-image.lolo +16 -0
  49. package/behaviors/lolo/ui/core/atoms/ui-atlas-panel.lolo +16 -0
  50. package/behaviors/lolo/ui/core/atoms/ui-avatar.lolo +91 -1
  51. package/behaviors/lolo/ui/core/atoms/ui-badge.lolo +90 -0
  52. package/behaviors/lolo/ui/core/atoms/ui-box.lolo +98 -13
  53. package/behaviors/lolo/ui/core/atoms/ui-button.lolo +90 -0
  54. package/behaviors/lolo/ui/core/atoms/ui-card.lolo +91 -1
  55. package/behaviors/lolo/ui/core/atoms/ui-center.lolo +90 -0
  56. package/behaviors/lolo/ui/core/atoms/ui-checkbox.lolo +112 -0
  57. package/behaviors/lolo/ui/core/atoms/ui-confetti-effect.lolo +90 -0
  58. package/behaviors/lolo/ui/core/atoms/ui-day-cell.lolo +90 -0
  59. package/behaviors/lolo/ui/core/atoms/ui-dialog.lolo +90 -0
  60. package/behaviors/lolo/ui/core/atoms/ui-divider.lolo +90 -0
  61. package/behaviors/lolo/ui/core/atoms/ui-filter-pill.lolo +90 -0
  62. package/behaviors/lolo/ui/core/atoms/ui-flip-container.lolo +90 -0
  63. package/behaviors/lolo/ui/core/atoms/ui-game-icon.lolo +90 -0
  64. package/behaviors/lolo/ui/core/atoms/ui-hstack.lolo +90 -10
  65. package/behaviors/lolo/ui/core/atoms/ui-icon.lolo +90 -0
  66. package/behaviors/lolo/ui/core/atoms/ui-image.lolo +90 -0
  67. package/behaviors/lolo/ui/core/atoms/ui-infinite-scroll-sentinel.lolo +90 -0
  68. package/behaviors/lolo/ui/core/atoms/ui-input.lolo +11 -1
  69. package/behaviors/lolo/ui/core/atoms/ui-label.lolo +91 -1
  70. package/behaviors/lolo/ui/core/atoms/ui-law-reference-tooltip.lolo +90 -0
  71. package/behaviors/lolo/ui/core/atoms/ui-overlay.lolo +90 -0
  72. package/behaviors/lolo/ui/core/atoms/ui-pattern-tile.lolo +90 -0
  73. package/behaviors/lolo/ui/core/atoms/ui-presence.lolo +90 -0
  74. package/behaviors/lolo/ui/core/atoms/ui-progress-bar.lolo +91 -1
  75. package/behaviors/lolo/ui/core/atoms/ui-radio.lolo +106 -0
  76. package/behaviors/lolo/ui/core/atoms/ui-range-slider.lolo +122 -0
  77. package/behaviors/lolo/ui/core/atoms/ui-section-header.lolo +90 -0
  78. package/behaviors/lolo/ui/core/atoms/ui-select.lolo +95 -0
  79. package/behaviors/lolo/ui/core/atoms/ui-spacer.lolo +90 -0
  80. package/behaviors/lolo/ui/core/atoms/ui-sparkline.lolo +90 -0
  81. package/behaviors/lolo/ui/core/atoms/ui-spinner.lolo +90 -0
  82. package/behaviors/lolo/ui/core/atoms/ui-stack.lolo +90 -10
  83. package/behaviors/lolo/ui/core/atoms/ui-status-dot.lolo +90 -0
  84. package/behaviors/lolo/ui/core/atoms/ui-svg-branch.lolo +90 -0
  85. package/behaviors/lolo/ui/core/atoms/ui-svg-connection.lolo +90 -0
  86. package/behaviors/lolo/ui/core/atoms/ui-svg-flow.lolo +90 -0
  87. package/behaviors/lolo/ui/core/atoms/ui-svg-grid.lolo +90 -0
  88. package/behaviors/lolo/ui/core/atoms/ui-svg-lobe.lolo +90 -0
  89. package/behaviors/lolo/ui/core/atoms/ui-svg-mesh.lolo +90 -0
  90. package/behaviors/lolo/ui/core/atoms/ui-svg-morph.lolo +90 -0
  91. package/behaviors/lolo/ui/core/atoms/ui-svg-node.lolo +90 -0
  92. package/behaviors/lolo/ui/core/atoms/ui-svg-pulse.lolo +90 -0
  93. package/behaviors/lolo/ui/core/atoms/ui-svg-ring.lolo +90 -0
  94. package/behaviors/lolo/ui/core/atoms/ui-svg-shield.lolo +90 -0
  95. package/behaviors/lolo/ui/core/atoms/ui-svg-stack.lolo +90 -0
  96. package/behaviors/lolo/ui/core/atoms/ui-switch.lolo +106 -0
  97. package/behaviors/lolo/ui/core/atoms/ui-text-highlight.lolo +122 -0
  98. package/behaviors/lolo/ui/core/atoms/ui-textarea.lolo +100 -0
  99. package/behaviors/lolo/ui/core/atoms/ui-theme-toggle.lolo +90 -0
  100. package/behaviors/lolo/ui/core/atoms/ui-time-slot-cell.lolo +106 -0
  101. package/behaviors/lolo/ui/core/atoms/ui-trend-indicator.lolo +91 -1
  102. package/behaviors/lolo/ui/core/atoms/ui-typewriter-text.lolo +90 -0
  103. package/behaviors/lolo/ui/core/atoms/ui-typography.lolo +96 -11
  104. package/behaviors/lolo/ui/core/atoms/ui-vstack.lolo +90 -10
  105. package/behaviors/lolo/ui/core/molecules/ui-accordion.lolo +90 -0
  106. package/behaviors/lolo/ui/core/molecules/ui-activation-block.lolo +90 -0
  107. package/behaviors/lolo/ui/core/molecules/ui-alert.lolo +90 -0
  108. package/behaviors/lolo/ui/core/molecules/ui-animated-counter.lolo +90 -0
  109. package/behaviors/lolo/ui/core/molecules/ui-bloom-quiz-block.lolo +90 -0
  110. package/behaviors/lolo/ui/core/molecules/ui-branching-logic-builder.lolo +90 -0
  111. package/behaviors/lolo/ui/core/molecules/ui-breadcrumb.lolo +90 -0
  112. package/behaviors/lolo/ui/core/molecules/ui-calendar-grid.lolo +122 -0
  113. package/behaviors/lolo/ui/core/molecules/ui-carousel.lolo +90 -0
  114. package/behaviors/lolo/ui/core/molecules/ui-change-list.lolo +90 -0
  115. package/behaviors/lolo/ui/core/molecules/ui-chart-legend.lolo +90 -0
  116. package/behaviors/lolo/ui/core/molecules/ui-chart.lolo +93 -3
  117. package/behaviors/lolo/ui/core/molecules/ui-code-block.lolo +202 -0
  118. package/behaviors/lolo/ui/core/molecules/ui-command-palette.lolo +106 -0
  119. package/behaviors/lolo/ui/core/molecules/ui-commit-row.lolo +123 -1
  120. package/behaviors/lolo/ui/core/molecules/ui-confirm-dialog.lolo +90 -0
  121. package/behaviors/lolo/ui/core/molecules/ui-connection-block.lolo +90 -0
  122. package/behaviors/lolo/ui/core/molecules/ui-container.lolo +92 -2
  123. package/behaviors/lolo/ui/core/molecules/ui-content-renderer.lolo +97 -7
  124. package/behaviors/lolo/ui/core/molecules/ui-data-grid.lolo +125 -2
  125. package/behaviors/lolo/ui/core/molecules/ui-data-list.lolo +126 -3
  126. package/behaviors/lolo/ui/core/molecules/ui-date-range-picker.lolo +106 -0
  127. package/behaviors/lolo/ui/core/molecules/ui-date-range-selector.lolo +90 -0
  128. package/behaviors/lolo/ui/core/molecules/ui-doc-breadcrumb.lolo +90 -0
  129. package/behaviors/lolo/ui/core/molecules/ui-doc-pagination.lolo +90 -0
  130. package/behaviors/lolo/ui/core/molecules/ui-doc-search.lolo +90 -0
  131. package/behaviors/lolo/ui/core/molecules/ui-doc-sidebar.lolo +90 -0
  132. package/behaviors/lolo/ui/core/molecules/ui-doc-toc.lolo +90 -0
  133. package/behaviors/lolo/ui/core/molecules/ui-document-details.lolo +138 -0
  134. package/behaviors/lolo/ui/core/molecules/ui-document-panel.lolo +122 -0
  135. package/behaviors/lolo/ui/core/molecules/ui-document-viewer.lolo +90 -0
  136. package/behaviors/lolo/ui/core/molecules/ui-drawer.lolo +90 -0
  137. package/behaviors/lolo/ui/core/molecules/ui-edge-decoration.lolo +10 -0
  138. package/behaviors/lolo/ui/core/molecules/ui-emoji-picker.lolo +90 -0
  139. package/behaviors/lolo/ui/core/molecules/ui-empty-state.lolo +91 -1
  140. package/behaviors/lolo/ui/core/molecules/ui-error-boundary.lolo +10 -0
  141. package/behaviors/lolo/ui/core/molecules/ui-error-state.lolo +90 -0
  142. package/behaviors/lolo/ui/core/molecules/ui-feature-card.lolo +90 -0
  143. package/behaviors/lolo/ui/core/molecules/ui-feature-grid.lolo +90 -0
  144. package/behaviors/lolo/ui/core/molecules/ui-file-tree.lolo +90 -0
  145. package/behaviors/lolo/ui/core/molecules/ui-filter-group.lolo +122 -0
  146. package/behaviors/lolo/ui/core/molecules/ui-flex.lolo +90 -0
  147. package/behaviors/lolo/ui/core/molecules/ui-flip-card.lolo +90 -0
  148. package/behaviors/lolo/ui/core/molecules/ui-floating-action-button.lolo +91 -1
  149. package/behaviors/lolo/ui/core/molecules/ui-floating-toolbar.lolo +90 -0
  150. package/behaviors/lolo/ui/core/molecules/ui-form-actions.lolo +90 -0
  151. package/behaviors/lolo/ui/core/molecules/ui-form-field.lolo +90 -0
  152. package/behaviors/lolo/ui/core/molecules/ui-form-layout.lolo +96 -6
  153. package/behaviors/lolo/ui/core/molecules/ui-form-section-header.lolo +90 -0
  154. package/behaviors/lolo/ui/core/molecules/ui-fx-overlay.lolo +90 -0
  155. package/behaviors/lolo/ui/core/molecules/ui-gantt.lolo +122 -0
  156. package/behaviors/lolo/ui/core/molecules/ui-geometric-pattern.lolo +10 -0
  157. package/behaviors/lolo/ui/core/molecules/ui-gradient-divider.lolo +90 -0
  158. package/behaviors/lolo/ui/core/molecules/ui-graph-canvas.lolo +95 -0
  159. package/behaviors/lolo/ui/core/molecules/ui-graph-view.lolo +90 -0
  160. package/behaviors/lolo/ui/core/molecules/ui-grid.lolo +95 -5
  161. package/behaviors/lolo/ui/core/molecules/ui-header.lolo +90 -0
  162. package/behaviors/lolo/ui/core/molecules/ui-icon-button.lolo +90 -0
  163. package/behaviors/lolo/ui/core/molecules/ui-import-preview-tree.lolo +90 -0
  164. package/behaviors/lolo/ui/core/molecules/ui-import-progress.lolo +90 -0
  165. package/behaviors/lolo/ui/core/molecules/ui-import-source-picker.lolo +90 -0
  166. package/behaviors/lolo/ui/core/molecules/ui-input-group.lolo +91 -1
  167. package/behaviors/lolo/ui/core/molecules/ui-jazari-state-machine.lolo +90 -0
  168. package/behaviors/lolo/ui/core/molecules/ui-lightbox.lolo +90 -0
  169. package/behaviors/lolo/ui/core/molecules/ui-likert-scale.lolo +90 -0
  170. package/behaviors/lolo/ui/core/molecules/ui-line-chart.lolo +90 -0
  171. package/behaviors/lolo/ui/core/molecules/ui-loading-state.lolo +90 -0
  172. package/behaviors/lolo/ui/core/molecules/ui-map-view.lolo +90 -0
  173. package/behaviors/lolo/ui/core/molecules/ui-markdown-content.lolo +90 -0
  174. package/behaviors/lolo/ui/core/molecules/ui-matrix-question.lolo +90 -0
  175. package/behaviors/lolo/ui/core/molecules/ui-menu.lolo +90 -0
  176. package/behaviors/lolo/ui/core/molecules/ui-meter.lolo +90 -0
  177. package/behaviors/lolo/ui/core/molecules/ui-modal.lolo +90 -0
  178. package/behaviors/lolo/ui/core/molecules/ui-navigation.lolo +90 -0
  179. package/behaviors/lolo/ui/core/molecules/ui-notification.lolo +91 -1
  180. package/behaviors/lolo/ui/core/molecules/ui-number-stepper.lolo +122 -0
  181. package/behaviors/lolo/ui/core/molecules/ui-option-constraint-group.lolo +90 -0
  182. package/behaviors/lolo/ui/core/molecules/ui-orbital-visualization.lolo +90 -0
  183. package/behaviors/lolo/ui/core/molecules/ui-page-header.lolo +90 -0
  184. package/behaviors/lolo/ui/core/molecules/ui-page-transition.lolo +90 -0
  185. package/behaviors/lolo/ui/core/molecules/ui-pagination.lolo +106 -0
  186. package/behaviors/lolo/ui/core/molecules/ui-popover.lolo +106 -0
  187. package/behaviors/lolo/ui/core/molecules/ui-positioned-canvas.lolo +122 -0
  188. package/behaviors/lolo/ui/core/molecules/ui-progress-dots.lolo +90 -0
  189. package/behaviors/lolo/ui/core/molecules/ui-pull-to-refresh.lolo +90 -0
  190. package/behaviors/lolo/ui/core/molecules/ui-qr-scanner.lolo +90 -0
  191. package/behaviors/lolo/ui/core/molecules/ui-quiz-block.lolo +90 -0
  192. package/behaviors/lolo/ui/core/molecules/ui-reflection-block.lolo +90 -0
  193. package/behaviors/lolo/ui/core/molecules/ui-relation-select.lolo +106 -0
  194. package/behaviors/lolo/ui/core/molecules/ui-repeatable-form-section.lolo +90 -0
  195. package/behaviors/lolo/ui/core/molecules/ui-reply-tree.lolo +122 -0
  196. package/behaviors/lolo/ui/core/molecules/ui-rich-text-editor.lolo +106 -0
  197. package/behaviors/lolo/ui/core/molecules/ui-scaled-diagram.lolo +90 -0
  198. package/behaviors/lolo/ui/core/molecules/ui-search-input.lolo +106 -0
  199. package/behaviors/lolo/ui/core/molecules/ui-section.lolo +90 -0
  200. package/behaviors/lolo/ui/core/molecules/ui-side-panel.lolo +90 -0
  201. package/behaviors/lolo/ui/core/molecules/ui-sidebar.lolo +106 -0
  202. package/behaviors/lolo/ui/core/molecules/ui-signature-pad.lolo +90 -0
  203. package/behaviors/lolo/ui/core/molecules/ui-simple-grid.lolo +90 -0
  204. package/behaviors/lolo/ui/core/molecules/ui-skeleton.lolo +93 -3
  205. package/behaviors/lolo/ui/core/molecules/ui-social-proof.lolo +90 -0
  206. package/behaviors/lolo/ui/core/molecules/ui-sortable-list.lolo +122 -0
  207. package/behaviors/lolo/ui/core/molecules/ui-split.lolo +90 -0
  208. package/behaviors/lolo/ui/core/molecules/ui-star-rating.lolo +122 -0
  209. package/behaviors/lolo/ui/core/molecules/ui-stat-display.lolo +90 -0
  210. package/behaviors/lolo/ui/core/molecules/ui-swipeable-row.lolo +138 -0
  211. package/behaviors/lolo/ui/core/molecules/ui-table-view.lolo +124 -1
  212. package/behaviors/lolo/ui/core/molecules/ui-tabs.lolo +90 -0
  213. package/behaviors/lolo/ui/core/molecules/ui-tag-input.lolo +90 -0
  214. package/behaviors/lolo/ui/core/molecules/ui-tooltip.lolo +90 -0
  215. package/behaviors/lolo/ui/core/molecules/ui-top-nav-item.lolo +90 -0
  216. package/behaviors/lolo/ui/core/molecules/ui-upload-drop-zone.lolo +90 -0
  217. package/behaviors/lolo/ui/core/molecules/ui-version-diff.lolo +90 -0
  218. package/behaviors/lolo/ui/core/molecules/ui-violation-alert.lolo +91 -1
  219. package/behaviors/lolo/ui/core/molecules/ui-vote-stack.lolo +91 -1
  220. package/behaviors/lolo/ui/core/molecules/ui-wizard-container.lolo +90 -0
  221. package/behaviors/lolo/ui/core/molecules/ui-wizard-navigation.lolo +138 -0
  222. package/behaviors/lolo/ui/core/molecules/ui-wizard-progress.lolo +90 -0
  223. package/behaviors/lolo/ui/core/organisms/ui-chat-bar.lolo +91 -1
  224. package/behaviors/lolo/ui/core/organisms/ui-code-runner-panel.lolo +90 -0
  225. package/behaviors/lolo/ui/core/organisms/ui-dashboard-grid.lolo +91 -1
  226. package/behaviors/lolo/ui/core/organisms/ui-detail-panel.lolo +336 -4
  227. package/behaviors/lolo/ui/core/organisms/ui-dock-layout.lolo +90 -0
  228. package/behaviors/lolo/ui/core/organisms/ui-drawer-slot.lolo +10 -0
  229. package/behaviors/lolo/ui/core/organisms/ui-entity-cards.lolo +127 -4
  230. package/behaviors/lolo/ui/core/organisms/ui-entity-list.lolo +127 -4
  231. package/behaviors/lolo/ui/core/organisms/ui-entity-table.lolo +127 -3
  232. package/behaviors/lolo/ui/core/organisms/ui-form-section.lolo +139 -1
  233. package/behaviors/lolo/ui/core/organisms/ui-form.lolo +139 -1
  234. package/behaviors/lolo/ui/core/organisms/ui-master-detail-layout.lolo +90 -0
  235. package/behaviors/lolo/ui/core/organisms/ui-master-detail.lolo +123 -1
  236. package/behaviors/lolo/ui/core/organisms/ui-media-gallery.lolo +123 -1
  237. package/behaviors/lolo/ui/core/organisms/ui-modal-slot.lolo +10 -0
  238. package/behaviors/lolo/ui/core/organisms/ui-runtime-debugger.lolo +90 -0
  239. package/behaviors/lolo/ui/core/organisms/ui-segment-renderer.lolo +90 -0
  240. package/behaviors/lolo/ui/core/organisms/ui-split-pane.lolo +106 -0
  241. package/behaviors/lolo/ui/core/organisms/ui-stat-card.lolo +124 -2
  242. package/behaviors/lolo/ui/core/organisms/ui-state-machine-view.lolo +92 -2
  243. package/behaviors/lolo/ui/core/organisms/ui-subagent-trace-panel.lolo +91 -1
  244. package/behaviors/lolo/ui/core/organisms/ui-tabbed-container.lolo +90 -0
  245. package/behaviors/lolo/ui/core/organisms/ui-timeline.lolo +122 -0
  246. package/behaviors/lolo/ui/core/organisms/ui-toast-slot.lolo +91 -1
  247. package/behaviors/lolo/ui/core/templates/ui-auth-layout.lolo +80 -0
  248. package/behaviors/lolo/ui/core/templates/ui-counter-template.lolo +91 -1
  249. package/behaviors/lolo/ui/core/templates/ui-generic-app-template.lolo +90 -0
  250. package/behaviors/lolo/ui/game/atoms/ui-action-palette.lolo +90 -0
  251. package/behaviors/lolo/ui/game/atoms/ui-action-tile.lolo +91 -1
  252. package/behaviors/lolo/ui/game/atoms/ui-canvas-2d.lolo +95 -0
  253. package/behaviors/lolo/ui/game/atoms/ui-canvas.lolo +91 -1
  254. package/behaviors/lolo/ui/game/atoms/ui-choice-button.lolo +90 -0
  255. package/behaviors/lolo/ui/game/atoms/ui-control-button.lolo +90 -0
  256. package/behaviors/lolo/ui/game/atoms/ui-control-grid.lolo +90 -0
  257. package/behaviors/lolo/ui/game/atoms/ui-dialogue-bubble.lolo +90 -0
  258. package/behaviors/lolo/ui/game/atoms/ui-draw-mesh.lolo +1 -1
  259. package/behaviors/lolo/ui/game/atoms/ui-draw-shape.lolo +2 -2
  260. package/behaviors/lolo/ui/game/atoms/ui-draw-sprite.lolo +1 -1
  261. package/behaviors/lolo/ui/game/atoms/ui-draw-text.lolo +3 -3
  262. package/behaviors/lolo/ui/game/atoms/ui-game-audio-toggle.lolo +90 -0
  263. package/behaviors/lolo/ui/game/atoms/ui-game-hud.lolo +90 -0
  264. package/behaviors/lolo/ui/game/atoms/ui-game-menu.lolo +90 -0
  265. package/behaviors/lolo/ui/game/atoms/ui-health-bar.lolo +90 -0
  266. package/behaviors/lolo/ui/game/atoms/ui-score-display.lolo +90 -0
  267. package/behaviors/lolo/ui/game/atoms/ui-sequence-bar.lolo +90 -0
  268. package/behaviors/lolo/ui/game/atoms/ui-stat-badge.lolo +90 -0
  269. package/behaviors/lolo/ui/game/atoms/ui-state-graph.lolo +90 -0
  270. package/behaviors/lolo/ui/game/atoms/ui-state-json-view.lolo +90 -0
  271. package/behaviors/lolo/ui/game/atoms/ui-trait-slot.lolo +123 -1
  272. package/behaviors/lolo/ui/learning/atoms/ui-algo-graph-canvas.lolo +90 -0
  273. package/behaviors/lolo/ui/learning/atoms/ui-algorithm-canvas.lolo +106 -0
  274. package/behaviors/lolo/ui/learning/atoms/ui-biology-canvas.lolo +106 -0
  275. package/behaviors/lolo/ui/learning/atoms/ui-chemistry-canvas.lolo +106 -0
  276. package/behaviors/lolo/ui/learning/atoms/ui-learning-canvas.lolo +112 -0
  277. package/behaviors/lolo/ui/learning/atoms/ui-math-canvas.lolo +106 -0
  278. package/behaviors/lolo/ui/learning/atoms/ui-physics-canvas.lolo +106 -0
  279. package/behaviors/lolo-behavior-contracts.json +1 -1
  280. package/behaviors/registry/agent/atoms/std-agent-context.orb +299 -826
  281. package/behaviors/registry/agent/atoms/std-agent-memory.orb +858 -643
  282. package/behaviors/registry/agent/atoms/std-agent-session.orb +833 -770
  283. package/behaviors/registry/agent/atoms/std-agent-tool-loop.orb +505 -707
  284. package/behaviors/registry/agent/atoms/std-agent-trace.orb +680 -195
  285. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +594 -0
  286. package/behaviors/registry/factory-signatures.json +1 -1
  287. package/behaviors/registry/infra/atoms/std-cache-aside.orb +172 -299
  288. package/behaviors/registry/infra/atoms/std-notification-preferences.orb +48 -14
  289. package/behaviors/registry/ui/avl/atoms/ui-avl-glyph.orb +236 -0
  290. package/behaviors/registry/ui/avl/atoms/ui-avl-state-machine.orb +236 -0
  291. package/behaviors/registry/ui/avl/atoms/ui-behavior-view.orb +215 -0
  292. package/behaviors/registry/ui/avl/atoms/ui-module-card.orb +215 -0
  293. package/behaviors/registry/ui/core/atoms/std-billable-hour.orb +26 -18
  294. package/behaviors/registry/ui/core/atoms/std-board.orb +10 -34
  295. package/behaviors/registry/ui/core/atoms/std-book-reader.orb +32 -13
  296. package/behaviors/registry/ui/core/atoms/std-browse.orb +108 -12
  297. package/behaviors/registry/ui/core/atoms/std-calendar.orb +8 -19
  298. package/behaviors/registry/ui/core/atoms/std-detail-layout.orb +3 -1
  299. package/behaviors/registry/ui/core/atoms/std-esign-flow.orb +48 -11
  300. package/behaviors/registry/ui/core/atoms/std-esign-request.orb +28 -4
  301. package/behaviors/registry/ui/core/atoms/std-event-log.orb +42 -14
  302. package/behaviors/registry/ui/core/atoms/std-file-store.orb +56 -58
  303. package/behaviors/registry/ui/core/atoms/std-gantt-schedule.orb +44 -11
  304. package/behaviors/registry/ui/core/atoms/std-image-upload-multi.orb +12 -16
  305. package/behaviors/registry/ui/core/atoms/std-list.orb +48 -11
  306. package/behaviors/registry/ui/core/atoms/std-multi-party-flow.orb +91 -14
  307. package/behaviors/registry/ui/core/atoms/std-prose.orb +14 -1
  308. package/behaviors/registry/ui/core/atoms/std-rating-review.orb +79 -8
  309. package/behaviors/registry/ui/core/atoms/std-record-detail.orb +622 -66
  310. package/behaviors/registry/ui/core/atoms/std-recurrence.orb +108 -28
  311. package/behaviors/registry/ui/core/atoms/std-related.orb +82 -21
  312. package/behaviors/registry/ui/core/atoms/std-saved-search.orb +28 -18
  313. package/behaviors/registry/ui/core/atoms/std-scoped-list.orb +993 -0
  314. package/behaviors/registry/ui/core/atoms/std-selection.orb +62 -12
  315. package/behaviors/registry/ui/core/atoms/std-signature-capture.orb +2 -16
  316. package/behaviors/registry/ui/core/atoms/std-slide-deck.orb +2 -0
  317. package/behaviors/registry/ui/core/atoms/std-step-flow.orb +8 -8
  318. package/behaviors/registry/ui/core/atoms/std-tag-taxonomy.orb +48 -64
  319. package/behaviors/registry/ui/core/atoms/std-thread.orb +863 -141
  320. package/behaviors/registry/ui/core/atoms/std-tree.orb +40 -18
  321. package/behaviors/registry/ui/core/atoms/std-version-history.orb +76 -68
  322. package/behaviors/registry/ui/core/atoms/std-vote.orb +4 -54
  323. package/behaviors/registry/ui/core/atoms/std-wizard.orb +70 -10
  324. package/behaviors/registry/ui/core/atoms/ui-animated-graphic.orb +236 -0
  325. package/behaviors/registry/ui/core/atoms/ui-animated-reveal.orb +236 -0
  326. package/behaviors/registry/ui/core/atoms/ui-aside.orb +236 -0
  327. package/behaviors/registry/ui/core/atoms/ui-atlas-image.orb +29 -0
  328. package/behaviors/registry/ui/core/atoms/ui-atlas-panel.orb +29 -0
  329. package/behaviors/registry/ui/core/atoms/ui-avatar.orb +236 -1
  330. package/behaviors/registry/ui/core/atoms/ui-badge.orb +236 -0
  331. package/behaviors/registry/ui/core/atoms/ui-box.orb +231 -10
  332. package/behaviors/registry/ui/core/atoms/ui-button.orb +236 -0
  333. package/behaviors/registry/ui/core/atoms/ui-card.orb +236 -1
  334. package/behaviors/registry/ui/core/atoms/ui-center.orb +236 -0
  335. package/behaviors/registry/ui/core/atoms/ui-checkbox.orb +260 -0
  336. package/behaviors/registry/ui/core/atoms/ui-confetti-effect.orb +236 -0
  337. package/behaviors/registry/ui/core/atoms/ui-day-cell.orb +236 -0
  338. package/behaviors/registry/ui/core/atoms/ui-dialog.orb +236 -0
  339. package/behaviors/registry/ui/core/atoms/ui-divider.orb +236 -0
  340. package/behaviors/registry/ui/core/atoms/ui-filter-pill.orb +236 -0
  341. package/behaviors/registry/ui/core/atoms/ui-flip-container.orb +236 -0
  342. package/behaviors/registry/ui/core/atoms/ui-game-icon.orb +236 -0
  343. package/behaviors/registry/ui/core/atoms/ui-hstack.orb +225 -3
  344. package/behaviors/registry/ui/core/atoms/ui-icon.orb +236 -0
  345. package/behaviors/registry/ui/core/atoms/ui-image.orb +236 -0
  346. package/behaviors/registry/ui/core/atoms/ui-infinite-scroll-sentinel.orb +236 -0
  347. package/behaviors/registry/ui/core/atoms/ui-input.orb +21 -1
  348. package/behaviors/registry/ui/core/atoms/ui-label.orb +237 -1
  349. package/behaviors/registry/ui/core/atoms/ui-law-reference-tooltip.orb +236 -0
  350. package/behaviors/registry/ui/core/atoms/ui-overlay.orb +236 -0
  351. package/behaviors/registry/ui/core/atoms/ui-pattern-tile.orb +236 -0
  352. package/behaviors/registry/ui/core/atoms/ui-presence.orb +236 -0
  353. package/behaviors/registry/ui/core/atoms/ui-progress-bar.orb +236 -1
  354. package/behaviors/registry/ui/core/atoms/ui-radio.orb +252 -0
  355. package/behaviors/registry/ui/core/atoms/ui-range-slider.orb +268 -0
  356. package/behaviors/registry/ui/core/atoms/ui-section-header.orb +236 -0
  357. package/behaviors/registry/ui/core/atoms/ui-select.orb +243 -0
  358. package/behaviors/registry/ui/core/atoms/ui-spacer.orb +236 -0
  359. package/behaviors/registry/ui/core/atoms/ui-sparkline.orb +236 -0
  360. package/behaviors/registry/ui/core/atoms/ui-spinner.orb +236 -0
  361. package/behaviors/registry/ui/core/atoms/ui-stack.orb +225 -3
  362. package/behaviors/registry/ui/core/atoms/ui-status-dot.orb +236 -0
  363. package/behaviors/registry/ui/core/atoms/ui-svg-branch.orb +236 -0
  364. package/behaviors/registry/ui/core/atoms/ui-svg-connection.orb +236 -0
  365. package/behaviors/registry/ui/core/atoms/ui-svg-flow.orb +236 -0
  366. package/behaviors/registry/ui/core/atoms/ui-svg-grid.orb +236 -0
  367. package/behaviors/registry/ui/core/atoms/ui-svg-lobe.orb +236 -0
  368. package/behaviors/registry/ui/core/atoms/ui-svg-mesh.orb +236 -0
  369. package/behaviors/registry/ui/core/atoms/ui-svg-morph.orb +236 -0
  370. package/behaviors/registry/ui/core/atoms/ui-svg-node.orb +236 -0
  371. package/behaviors/registry/ui/core/atoms/ui-svg-pulse.orb +236 -0
  372. package/behaviors/registry/ui/core/atoms/ui-svg-ring.orb +236 -0
  373. package/behaviors/registry/ui/core/atoms/ui-svg-shield.orb +236 -0
  374. package/behaviors/registry/ui/core/atoms/ui-svg-stack.orb +236 -0
  375. package/behaviors/registry/ui/core/atoms/ui-switch.orb +252 -0
  376. package/behaviors/registry/ui/core/atoms/ui-text-highlight.orb +268 -0
  377. package/behaviors/registry/ui/core/atoms/ui-textarea.orb +250 -0
  378. package/behaviors/registry/ui/core/atoms/ui-theme-toggle.orb +236 -0
  379. package/behaviors/registry/ui/core/atoms/ui-time-slot-cell.orb +252 -0
  380. package/behaviors/registry/ui/core/atoms/ui-trend-indicator.orb +236 -1
  381. package/behaviors/registry/ui/core/atoms/ui-typewriter-text.orb +236 -0
  382. package/behaviors/registry/ui/core/atoms/ui-typography.orb +231 -8
  383. package/behaviors/registry/ui/core/atoms/ui-vstack.orb +225 -3
  384. package/behaviors/registry/ui/core/molecules/ui-accordion.orb +236 -0
  385. package/behaviors/registry/ui/core/molecules/ui-activation-block.orb +236 -0
  386. package/behaviors/registry/ui/core/molecules/ui-alert.orb +236 -0
  387. package/behaviors/registry/ui/core/molecules/ui-animated-counter.orb +236 -0
  388. package/behaviors/registry/ui/core/molecules/ui-bloom-quiz-block.orb +236 -0
  389. package/behaviors/registry/ui/core/molecules/ui-branching-logic-builder.orb +236 -0
  390. package/behaviors/registry/ui/core/molecules/ui-breadcrumb.orb +236 -0
  391. package/behaviors/registry/ui/core/molecules/ui-calendar-grid.orb +268 -0
  392. package/behaviors/registry/ui/core/molecules/ui-carousel.orb +236 -0
  393. package/behaviors/registry/ui/core/molecules/ui-change-list.orb +236 -0
  394. package/behaviors/registry/ui/core/molecules/ui-chart-legend.orb +236 -0
  395. package/behaviors/registry/ui/core/molecules/ui-chart.orb +236 -3
  396. package/behaviors/registry/ui/core/molecules/ui-code-block.orb +348 -0
  397. package/behaviors/registry/ui/core/molecules/ui-command-palette.orb +252 -0
  398. package/behaviors/registry/ui/core/molecules/ui-commit-row.orb +268 -1
  399. package/behaviors/registry/ui/core/molecules/ui-confirm-dialog.orb +236 -0
  400. package/behaviors/registry/ui/core/molecules/ui-connection-block.orb +236 -0
  401. package/behaviors/registry/ui/core/molecules/ui-container.orb +236 -2
  402. package/behaviors/registry/ui/core/molecules/ui-content-renderer.orb +241 -7
  403. package/behaviors/registry/ui/core/molecules/ui-data-grid.orb +279 -0
  404. package/behaviors/registry/ui/core/molecules/ui-data-list.orb +279 -1
  405. package/behaviors/registry/ui/core/molecules/ui-date-range-picker.orb +252 -0
  406. package/behaviors/registry/ui/core/molecules/ui-date-range-selector.orb +236 -0
  407. package/behaviors/registry/ui/core/molecules/ui-doc-breadcrumb.orb +236 -0
  408. package/behaviors/registry/ui/core/molecules/ui-doc-pagination.orb +236 -0
  409. package/behaviors/registry/ui/core/molecules/ui-doc-search.orb +236 -0
  410. package/behaviors/registry/ui/core/molecules/ui-doc-sidebar.orb +236 -0
  411. package/behaviors/registry/ui/core/molecules/ui-doc-toc.orb +236 -0
  412. package/behaviors/registry/ui/core/molecules/ui-document-details.orb +284 -0
  413. package/behaviors/registry/ui/core/molecules/ui-document-panel.orb +268 -0
  414. package/behaviors/registry/ui/core/molecules/ui-document-viewer.orb +236 -0
  415. package/behaviors/registry/ui/core/molecules/ui-drawer.orb +236 -0
  416. package/behaviors/registry/ui/core/molecules/ui-edge-decoration.orb +21 -0
  417. package/behaviors/registry/ui/core/molecules/ui-emoji-picker.orb +236 -0
  418. package/behaviors/registry/ui/core/molecules/ui-empty-state.orb +236 -1
  419. package/behaviors/registry/ui/core/molecules/ui-error-boundary.orb +21 -0
  420. package/behaviors/registry/ui/core/molecules/ui-error-state.orb +236 -0
  421. package/behaviors/registry/ui/core/molecules/ui-feature-card.orb +236 -0
  422. package/behaviors/registry/ui/core/molecules/ui-feature-grid.orb +236 -0
  423. package/behaviors/registry/ui/core/molecules/ui-file-tree.orb +236 -0
  424. package/behaviors/registry/ui/core/molecules/ui-filter-group.orb +268 -0
  425. package/behaviors/registry/ui/core/molecules/ui-flex.orb +236 -0
  426. package/behaviors/registry/ui/core/molecules/ui-flip-card.orb +236 -0
  427. package/behaviors/registry/ui/core/molecules/ui-floating-action-button.orb +236 -1
  428. package/behaviors/registry/ui/core/molecules/ui-floating-toolbar.orb +236 -0
  429. package/behaviors/registry/ui/core/molecules/ui-form-actions.orb +236 -0
  430. package/behaviors/registry/ui/core/molecules/ui-form-field.orb +236 -0
  431. package/behaviors/registry/ui/core/molecules/ui-form-layout.orb +241 -6
  432. package/behaviors/registry/ui/core/molecules/ui-form-section-header.orb +236 -0
  433. package/behaviors/registry/ui/core/molecules/ui-fx-overlay.orb +236 -0
  434. package/behaviors/registry/ui/core/molecules/ui-gantt.orb +268 -0
  435. package/behaviors/registry/ui/core/molecules/ui-geometric-pattern.orb +21 -0
  436. package/behaviors/registry/ui/core/molecules/ui-gradient-divider.orb +236 -0
  437. package/behaviors/registry/ui/core/molecules/ui-graph-canvas.orb +243 -0
  438. package/behaviors/registry/ui/core/molecules/ui-graph-view.orb +236 -0
  439. package/behaviors/registry/ui/core/molecules/ui-grid.orb +236 -5
  440. package/behaviors/registry/ui/core/molecules/ui-header.orb +236 -0
  441. package/behaviors/registry/ui/core/molecules/ui-icon-button.orb +236 -0
  442. package/behaviors/registry/ui/core/molecules/ui-import-preview-tree.orb +236 -0
  443. package/behaviors/registry/ui/core/molecules/ui-import-progress.orb +236 -0
  444. package/behaviors/registry/ui/core/molecules/ui-import-source-picker.orb +236 -0
  445. package/behaviors/registry/ui/core/molecules/ui-input-group.orb +236 -1
  446. package/behaviors/registry/ui/core/molecules/ui-jazari-state-machine.orb +236 -0
  447. package/behaviors/registry/ui/core/molecules/ui-lightbox.orb +236 -0
  448. package/behaviors/registry/ui/core/molecules/ui-likert-scale.orb +236 -0
  449. package/behaviors/registry/ui/core/molecules/ui-line-chart.orb +236 -0
  450. package/behaviors/registry/ui/core/molecules/ui-loading-state.orb +236 -0
  451. package/behaviors/registry/ui/core/molecules/ui-map-view.orb +236 -0
  452. package/behaviors/registry/ui/core/molecules/ui-markdown-content.orb +236 -0
  453. package/behaviors/registry/ui/core/molecules/ui-matrix-question.orb +236 -0
  454. package/behaviors/registry/ui/core/molecules/ui-menu.orb +236 -0
  455. package/behaviors/registry/ui/core/molecules/ui-meter.orb +236 -0
  456. package/behaviors/registry/ui/core/molecules/ui-modal.orb +236 -0
  457. package/behaviors/registry/ui/core/molecules/ui-navigation.orb +236 -0
  458. package/behaviors/registry/ui/core/molecules/ui-notification.orb +237 -1
  459. package/behaviors/registry/ui/core/molecules/ui-number-stepper.orb +268 -0
  460. package/behaviors/registry/ui/core/molecules/ui-option-constraint-group.orb +236 -0
  461. package/behaviors/registry/ui/core/molecules/ui-orbital-visualization.orb +236 -0
  462. package/behaviors/registry/ui/core/molecules/ui-page-header.orb +236 -0
  463. package/behaviors/registry/ui/core/molecules/ui-page-transition.orb +236 -0
  464. package/behaviors/registry/ui/core/molecules/ui-pagination.orb +252 -0
  465. package/behaviors/registry/ui/core/molecules/ui-popover.orb +252 -0
  466. package/behaviors/registry/ui/core/molecules/ui-positioned-canvas.orb +268 -0
  467. package/behaviors/registry/ui/core/molecules/ui-progress-dots.orb +236 -0
  468. package/behaviors/registry/ui/core/molecules/ui-pull-to-refresh.orb +236 -0
  469. package/behaviors/registry/ui/core/molecules/ui-qr-scanner.orb +236 -0
  470. package/behaviors/registry/ui/core/molecules/ui-quiz-block.orb +236 -0
  471. package/behaviors/registry/ui/core/molecules/ui-reflection-block.orb +236 -0
  472. package/behaviors/registry/ui/core/molecules/ui-relation-select.orb +252 -0
  473. package/behaviors/registry/ui/core/molecules/ui-repeatable-form-section.orb +236 -0
  474. package/behaviors/registry/ui/core/molecules/ui-reply-tree.orb +268 -0
  475. package/behaviors/registry/ui/core/molecules/ui-rich-text-editor.orb +252 -0
  476. package/behaviors/registry/ui/core/molecules/ui-scaled-diagram.orb +236 -0
  477. package/behaviors/registry/ui/core/molecules/ui-search-input.orb +252 -0
  478. package/behaviors/registry/ui/core/molecules/ui-section.orb +236 -0
  479. package/behaviors/registry/ui/core/molecules/ui-side-panel.orb +236 -0
  480. package/behaviors/registry/ui/core/molecules/ui-sidebar.orb +252 -0
  481. package/behaviors/registry/ui/core/molecules/ui-signature-pad.orb +236 -0
  482. package/behaviors/registry/ui/core/molecules/ui-simple-grid.orb +236 -0
  483. package/behaviors/registry/ui/core/molecules/ui-skeleton.orb +242 -2
  484. package/behaviors/registry/ui/core/molecules/ui-social-proof.orb +236 -0
  485. package/behaviors/registry/ui/core/molecules/ui-sortable-list.orb +268 -0
  486. package/behaviors/registry/ui/core/molecules/ui-split.orb +236 -0
  487. package/behaviors/registry/ui/core/molecules/ui-star-rating.orb +268 -0
  488. package/behaviors/registry/ui/core/molecules/ui-stat-display.orb +236 -0
  489. package/behaviors/registry/ui/core/molecules/ui-swipeable-row.orb +284 -0
  490. package/behaviors/registry/ui/core/molecules/ui-table-view.orb +277 -1
  491. package/behaviors/registry/ui/core/molecules/ui-tabs.orb +236 -0
  492. package/behaviors/registry/ui/core/molecules/ui-tag-input.orb +236 -0
  493. package/behaviors/registry/ui/core/molecules/ui-tooltip.orb +236 -0
  494. package/behaviors/registry/ui/core/molecules/ui-top-nav-item.orb +236 -0
  495. package/behaviors/registry/ui/core/molecules/ui-upload-drop-zone.orb +236 -0
  496. package/behaviors/registry/ui/core/molecules/ui-version-diff.orb +236 -0
  497. package/behaviors/registry/ui/core/molecules/ui-violation-alert.orb +236 -1
  498. package/behaviors/registry/ui/core/molecules/ui-vote-stack.orb +236 -1
  499. package/behaviors/registry/ui/core/molecules/ui-wizard-container.orb +236 -0
  500. package/behaviors/registry/ui/core/molecules/ui-wizard-navigation.orb +284 -0
  501. package/behaviors/registry/ui/core/molecules/ui-wizard-progress.orb +236 -0
  502. package/behaviors/registry/ui/core/organisms/ui-chat-bar.orb +236 -1
  503. package/behaviors/registry/ui/core/organisms/ui-code-runner-panel.orb +236 -0
  504. package/behaviors/registry/ui/core/organisms/ui-dashboard-grid.orb +236 -1
  505. package/behaviors/registry/ui/core/organisms/ui-detail-panel.orb +1167 -22
  506. package/behaviors/registry/ui/core/organisms/ui-dock-layout.orb +236 -0
  507. package/behaviors/registry/ui/core/organisms/ui-drawer-slot.orb +21 -0
  508. package/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +280 -2
  509. package/behaviors/registry/ui/core/organisms/ui-entity-list.orb +279 -3
  510. package/behaviors/registry/ui/core/organisms/ui-entity-table.orb +289 -1
  511. package/behaviors/registry/ui/core/organisms/ui-form-section.orb +284 -1
  512. package/behaviors/registry/ui/core/organisms/ui-form.orb +284 -1
  513. package/behaviors/registry/ui/core/organisms/ui-master-detail-layout.orb +236 -0
  514. package/behaviors/registry/ui/core/organisms/ui-master-detail.orb +268 -1
  515. package/behaviors/registry/ui/core/organisms/ui-media-gallery.orb +268 -1
  516. package/behaviors/registry/ui/core/organisms/ui-modal-slot.orb +21 -0
  517. package/behaviors/registry/ui/core/organisms/ui-runtime-debugger.orb +236 -0
  518. package/behaviors/registry/ui/core/organisms/ui-segment-renderer.orb +236 -0
  519. package/behaviors/registry/ui/core/organisms/ui-split-pane.orb +252 -0
  520. package/behaviors/registry/ui/core/organisms/ui-stat-card.orb +268 -2
  521. package/behaviors/registry/ui/core/organisms/ui-state-machine-view.orb +236 -2
  522. package/behaviors/registry/ui/core/organisms/ui-subagent-trace-panel.orb +236 -1
  523. package/behaviors/registry/ui/core/organisms/ui-tabbed-container.orb +236 -0
  524. package/behaviors/registry/ui/core/organisms/ui-timeline.orb +268 -0
  525. package/behaviors/registry/ui/core/organisms/ui-toast-slot.orb +236 -1
  526. package/behaviors/registry/ui/core/templates/ui-auth-layout.orb +215 -0
  527. package/behaviors/registry/ui/core/templates/ui-counter-template.orb +236 -1
  528. package/behaviors/registry/ui/core/templates/ui-generic-app-template.orb +236 -0
  529. package/behaviors/registry/ui/game/atoms/ui-action-palette.orb +236 -0
  530. package/behaviors/registry/ui/game/atoms/ui-action-tile.orb +236 -1
  531. package/behaviors/registry/ui/game/atoms/ui-canvas-2d.orb +243 -0
  532. package/behaviors/registry/ui/game/atoms/ui-canvas.orb +236 -1
  533. package/behaviors/registry/ui/game/atoms/ui-choice-button.orb +236 -0
  534. package/behaviors/registry/ui/game/atoms/ui-control-button.orb +236 -0
  535. package/behaviors/registry/ui/game/atoms/ui-control-grid.orb +236 -0
  536. package/behaviors/registry/ui/game/atoms/ui-dialogue-bubble.orb +236 -0
  537. package/behaviors/registry/ui/game/atoms/ui-draw-mesh.orb +0 -1
  538. package/behaviors/registry/ui/game/atoms/ui-draw-shape.orb +0 -2
  539. package/behaviors/registry/ui/game/atoms/ui-draw-sprite.orb +0 -1
  540. package/behaviors/registry/ui/game/atoms/ui-draw-text.orb +0 -3
  541. package/behaviors/registry/ui/game/atoms/ui-game-audio-toggle.orb +236 -0
  542. package/behaviors/registry/ui/game/atoms/ui-game-hud.orb +236 -0
  543. package/behaviors/registry/ui/game/atoms/ui-game-menu.orb +236 -0
  544. package/behaviors/registry/ui/game/atoms/ui-health-bar.orb +236 -0
  545. package/behaviors/registry/ui/game/atoms/ui-score-display.orb +236 -0
  546. package/behaviors/registry/ui/game/atoms/ui-sequence-bar.orb +236 -0
  547. package/behaviors/registry/ui/game/atoms/ui-stat-badge.orb +236 -0
  548. package/behaviors/registry/ui/game/atoms/ui-state-graph.orb +236 -0
  549. package/behaviors/registry/ui/game/atoms/ui-state-json-view.orb +236 -0
  550. package/behaviors/registry/ui/game/atoms/ui-trait-slot.orb +268 -1
  551. package/behaviors/registry/ui/learning/atoms/ui-algo-graph-canvas.orb +236 -0
  552. package/behaviors/registry/ui/learning/atoms/ui-algorithm-canvas.orb +252 -0
  553. package/behaviors/registry/ui/learning/atoms/ui-biology-canvas.orb +252 -0
  554. package/behaviors/registry/ui/learning/atoms/ui-chemistry-canvas.orb +252 -0
  555. package/behaviors/registry/ui/learning/atoms/ui-learning-canvas.orb +260 -0
  556. package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +252 -0
  557. package/behaviors/registry/ui/learning/atoms/ui-physics-canvas.orb +252 -0
  558. package/dist/behaviors/exports-reader.js +14291 -7304
  559. package/dist/behaviors/functions/index.d.ts +4188 -339
  560. package/dist/behaviors/functions/index.js +14261 -7266
  561. package/dist/behaviors/index.d.ts +1 -1
  562. package/dist/behaviors/index.js +14292 -7305
  563. package/dist/behaviors/query.js +14291 -7304
  564. package/dist/behaviors-embeddings.hash.json +3 -3
  565. package/dist/behaviors-embeddings.json +23 -19
  566. package/dist/behaviors-registry.json +56939 -2084
  567. package/dist/index.d.ts +1 -1
  568. package/dist/index.js +14292 -7305
  569. package/dist/knob-embeddings.hash.json +3 -3
  570. package/dist/knob-embeddings.json +14821 -245
  571. package/dist/registry/factory-signatures.json +1 -1
  572. package/package.json +3 -3
  573. package/behaviors/lolo/agent/organisms/std-agent-rabit.lolo +0 -301
  574. package/behaviors/registry/agent/organisms/std-agent-rabit.orb +0 -2181
@@ -1,143 +1,267 @@
1
- app std-agent-session "1.0.0"
2
- "Wraps session/read-spec + session/write-spec + session/read-history — orbital session data."
1
+ app std-agent-session "2.0.0"
2
+ "std-agent-session — the persisted conversation with an in-app assistant. Owns AgentMessage rows (role, content, ownerId stamped with the real @user, createdAt). SEND stores the user's message, reloads the thread and emits CONVERSE with the whole conversation, oldest first, for std-agent-tool-loop to answer; REPLIED stores the assistant's reply and redraws; REPLY_FAILED redraws the conversation (the tool loop shows the error). Rows are meant to be private to their owner: owner-scoped access needs an [identity] roster, so the binding organism declares the @read/@create scoping on AgentMessage — this generic atom cannot."
3
3
 
4
- type OrbitalSpec = { orbitalName: string, organism: string!, method: string!, deltaPrompt: string! }
5
- type HistoryEntry = { role: string!, content: string!, timestamp: number }
4
+ type AgentChatMessage = {
5
+ role : "user" | "assistant"
6
+ content : string!
7
+ }
8
+ type AgentLink = {
9
+ label : string!
10
+ href : string!
11
+ }
6
12
 
7
13
  orbital AgentSessionOrbital {
14
+ type AgentMessagesLoaded = Event { data : [AgentMessage] } "Fired when the conversation finishes loading"
15
+ type AgentMessagesLoadFailed = Event { error : string, code : string } "Fired when the conversation fails to load"
16
+ type AgentMessageSaved = Event AgentMessage "Fired after a message persists"
17
+ type AgentMessageSaveFailed = Event { error : string, code : string } "Fired when a message fails to persist"
8
18
 
9
- entity AgentSession [runtime] {
10
- orbitalName : string = ""
11
- spec : OrbitalSpec = {}
12
- history : [HistoryEntry] = []
13
- status : "idle" | "read" | "written" = idle
19
+ entity AgentMessage [persistent: agentMessages] {
20
+ id : string!
21
+ ownerId : string! @description "Whose conversation this message belongs to (the real @user). The binding organism scopes @read to it." @synonyms "user, owner, account"
22
+ role : "user" | "assistant" @description "Who said it." @synonyms "speaker, author" = user
23
+ content : string! @description "What was said." @synonyms "text, message, body"
24
+ createdAt : number @description "When it was said (ms)." @synonyms "time, timestamp" = 0
25
+ draft : string @intrinsic @description "The message being typed." = ""
14
26
  }
15
27
 
16
- trait SessionReader -> AgentSession [lifecycle, instance] {
17
- initial: idle
18
-
19
- state idle {
20
- INIT -> idle
21
- (set @entity.orbitalName "")
22
- (set @entity.spec {})
23
- (set @entity.history [])
24
- (set @entity.status idle)
25
- READ_SPEC -> reading
26
- (set @entity.orbitalName ?orbitalName)
27
- (session/read-spec @entity.orbitalName { emit: { success: SPEC_LOADED, failure: SPEC_LOAD_FAILED } })
28
+ trait AgentThread -> @rebindable AgentMessage [interaction, collection] {
29
+ config {
30
+ title : string = "Assistant"
31
+ @label "Title"
32
+ @description "Heading above the conversation."
33
+ @tier "presentation"
34
+ placeholder : string = "Ask the assistant…"
35
+ @label "Message placeholder"
36
+ @tier "presentation"
37
+ links : [AgentLink] = []
38
+ @label "Links above the conversation"
39
+ @description "Related pages (e.g. the run history), shown under the title."
40
+ @tier "presentation"
28
41
  }
42
+ initial: loading
29
43
 
30
- state reading {
31
- SPEC_LOADED -> loadingHistory
32
- (set @entity.spec ?result)
33
- (session/read-history @entity.orbitalName { emit: { success: HISTORY_LOADED, failure: HISTORY_LOAD_FAILED } })
34
- SPEC_LOAD_FAILED -> idle
35
- (set @entity.status idle)
44
+ state loading {
45
+ INIT -> loading
46
+ (fetch AgentMessage {
47
+ emit: { failure: AgentMessagesLoadFailed, success: AgentMessagesLoaded }
48
+ })
49
+ (render-ui main {
50
+ type: stack
51
+ direction: vertical
52
+ gap: lg
53
+ children: [{ type: skeleton, variant: header }, { type: skeleton, variant: list, rows: 6 }]
54
+ })
55
+ AgentMessagesLoaded -> chatting
56
+ (render-ui main {
57
+ children: [{
58
+ content: @config.title
59
+ type: typography
60
+ variant: h4
61
+ }, {
62
+ children: (array/map @config.links (fn item {
63
+ href: @item.href
64
+ label: @item.label
65
+ type: button
66
+ variant: ghost
67
+ }))
68
+ direction: horizontal
69
+ gap: sm
70
+ type: stack
71
+ }, {
72
+ entity: (array/sort ?data createdAt asc)
73
+ fields: []
74
+ gap: sm
75
+ renderItem: (fn item {
76
+ children: [{
77
+ label: @item.role
78
+ size: sm
79
+ type: badge
80
+ variant: neutral
81
+ }, {
82
+ content: @item.content
83
+ type: typography
84
+ variant: body
85
+ }]
86
+ direction: vertical
87
+ gap: xs
88
+ type: stack
89
+ })
90
+ type: data-list
91
+ }, {
92
+ children: [{
93
+ aria-label: "Message"
94
+ onChange: EDIT_MESSAGE
95
+ placeholder: @config.placeholder
96
+ type: textarea
97
+ }, {
98
+ action: SEND_DRAFT
99
+ icon: send
100
+ label: Send
101
+ type: button
102
+ variant: primary
103
+ }]
104
+ direction: horizontal
105
+ gap: sm
106
+ type: stack
107
+ }]
108
+ direction: vertical
109
+ gap: md
110
+ type: stack
111
+ })
112
+ AgentMessagesLoadFailed -> chatting
113
+ (render-ui main {
114
+ message: ?error
115
+ type: alert
116
+ variant: error
117
+ })
36
118
  }
37
119
 
38
- state loadingHistory {
39
- HISTORY_LOADED -> read
40
- (set @entity.history ?result)
41
- (set @entity.status read)
42
- (emit SPEC_READ { spec: @entity.spec, history: @entity.history })
43
- HISTORY_LOAD_FAILED -> idle
44
- (set @entity.status idle)
120
+ state chatting {
121
+ INIT -> loading
122
+ (fetch AgentMessage {
123
+ emit: { failure: AgentMessagesLoadFailed, success: AgentMessagesLoaded }
124
+ })
125
+ (render-ui main {
126
+ type: stack
127
+ direction: vertical
128
+ gap: lg
129
+ children: [{ type: skeleton, variant: header }, { type: skeleton, variant: list, rows: 6 }]
130
+ })
131
+ EDIT_MESSAGE -> chatting
132
+ (set @entity.draft ?value)
133
+ SEND_DRAFT -> waiting when (not ["=", (str/default @entity.draft ""), ""])
134
+ (persist create AgentMessage {
135
+ ownerId: @user.id
136
+ role: user
137
+ content: @entity.draft
138
+ createdAt: @now
139
+ } {
140
+ emit: { failure: AgentMessageSaveFailed, success: AgentMessageSaved }
141
+ })
142
+ (set @entity.draft "")
143
+ SEND -> waiting when (not ["=", (str/default ?message ""), ""])
144
+ (persist create AgentMessage {
145
+ ownerId: @user.id
146
+ role: user
147
+ content: ?message
148
+ createdAt: @now
149
+ } {
150
+ emit: { failure: AgentMessageSaveFailed, success: AgentMessageSaved }
151
+ })
152
+ REPLIED -> loading
153
+ (persist create AgentMessage {
154
+ ownerId: @user.id
155
+ role: assistant
156
+ content: ?reply
157
+ createdAt: @now
158
+ })
159
+ (fetch AgentMessage {
160
+ emit: { failure: AgentMessagesLoadFailed, success: AgentMessagesLoaded }
161
+ })
162
+ REPLY_FAILED -> loading
163
+ (fetch AgentMessage {
164
+ emit: { failure: AgentMessagesLoadFailed, success: AgentMessagesLoaded }
165
+ })
45
166
  }
46
167
 
47
- state read {
48
- INIT -> read
49
- (set @entity.status read)
50
- RESET -> idle
51
- (set @entity.spec {})
52
- (set @entity.history [])
53
- (set @entity.status idle)
168
+ state waiting {
169
+ AgentMessageSaved -> waiting
170
+ (fetch AgentMessage {
171
+ emit: { failure: AgentMessagesLoadFailed, success: AgentConversationLoaded }
172
+ })
173
+ (render-ui main {
174
+ size: sm
175
+ type: spinner
176
+ })
177
+ AgentConversationLoaded -> waiting
178
+ (emit CONVERSE {
179
+ messages: (array/map (array/sort ?data createdAt asc) (fn item { role: @item.role, content: @item.content }))
180
+ })
181
+ REPLIED -> loading
182
+ (persist create AgentMessage {
183
+ ownerId: @user.id
184
+ role: assistant
185
+ content: ?reply
186
+ createdAt: @now
187
+ })
188
+ (fetch AgentMessage {
189
+ emit: { failure: AgentMessagesLoadFailed, success: AgentMessagesLoaded }
190
+ })
191
+ REPLY_FAILED -> loading
192
+ (fetch AgentMessage {
193
+ emit: { failure: AgentMessagesLoadFailed, success: AgentMessagesLoaded }
194
+ })
195
+ AgentMessageSaveFailed -> chatting
196
+ (render-ui main {
197
+ message: ?error
198
+ type: alert
199
+ variant: error
200
+ })
201
+ AgentMessagesLoadFailed -> chatting
202
+ (render-ui main {
203
+ message: ?error
204
+ type: alert
205
+ variant: error
206
+ })
54
207
  }
55
208
 
56
209
  emits {
57
- SPEC_READ {
58
- spec : OrbitalSpec!
59
- history : [HistoryEntry]!
210
+ CONVERSE -> external {
211
+ messages : [AgentChatMessage]!
60
212
  }
61
- SPEC_LOADED {
62
- result : OrbitalSpec!
213
+ @description "The conversation to answer, oldest first; the last turn is the request."
214
+ @synonyms "ask, converse, request"
215
+ @tier "domain"
216
+ AgentConversationLoaded -> internal {
217
+ data : [AgentMessage]
63
218
  }
64
- HISTORY_LOADED {
65
- result : [HistoryEntry]!
219
+ @tier "internal"
220
+ AgentMessagesLoaded {
221
+ data : [AgentMessage]
66
222
  }
67
- }
68
-
69
- listens {
70
- READ_SPEC {
71
- orbitalName : string!
223
+ @description "The conversation finished loading."
224
+ @tier "internal"
225
+ AgentMessagesLoadFailed {
226
+ error : string
227
+ code : string
72
228
  }
73
- }
74
- }
75
-
76
- trait SessionWriter -> AgentSession [lifecycle, instance] {
77
- initial: idle
78
-
79
- state idle {
80
- INIT -> idle
81
- (set @entity.orbitalName "")
82
- (set @entity.spec {})
83
- (set @entity.status idle)
84
- WRITE_SPEC -> written
85
- (set @entity.orbitalName ?orbitalName)
86
- (set @entity.spec ?spec)
87
- (session/write-spec @entity.orbitalName @entity.spec)
88
- (set @entity.status written)
89
- (emit SPEC_WRITTEN { orbitalName: @entity.orbitalName })
90
- }
91
-
92
- state written {
93
- INIT -> written
94
- (set @entity.status written)
95
- RESET -> idle
96
- (set @entity.spec {})
97
- (set @entity.status idle)
98
- }
99
-
100
- emits {
101
- SPEC_WRITTEN {
102
- orbitalName : string!
229
+ @tier "internal"
230
+ AgentMessageSaved
231
+ @description "A message persisted — payload is the created AgentMessage row itself."
232
+ @tier "internal"
233
+ AgentMessageSaveFailed {
234
+ error : string
235
+ code : string
103
236
  }
104
- }
105
-
106
- listens {
107
- WRITE_SPEC {
108
- orbitalName : string!
109
- spec : OrbitalSpec!
237
+ @tier "internal"
238
+ EDIT_MESSAGE {
239
+ value : string!
110
240
  }
111
- }
112
- }
113
-
114
- trait SessionListener -> AgentSession [lifecycle, instance] {
115
- initial: waiting
116
-
117
- state waiting {
118
- INIT -> waiting
119
- (set @entity.status idle)
120
- SPEC_READ -> active
121
- (set @entity.status read)
122
- SPEC_WRITTEN -> active
123
- (set @entity.status written)
124
- RESET -> waiting
125
- (set @entity.status idle)
126
- }
127
-
128
- state active {
129
- INIT -> active
130
- (set @entity.status idle)
131
- RESET -> waiting
132
- (set @entity.status idle)
241
+ @description "The message being typed changed."
242
+ @tier "presentation"
243
+ SEND_DRAFT
244
+ @description "Send the typed message."
245
+ @synonyms "send, ask, submit"
246
+ @tier "domain"
133
247
  }
134
248
 
135
249
  listens {
136
- SessionReader.SPEC_READ -> SPEC_READ
137
- SessionWriter.SPEC_WRITTEN -> SPEC_WRITTEN
138
- RESET
250
+ SEND {
251
+ message : string!
252
+ }
253
+ @description "Ask the assistant something."
254
+ @synonyms "ask, message, chat"
255
+ REPLIED {
256
+ reply : string!
257
+ }
258
+ @description "The assistant answered."
259
+ REPLY_FAILED {
260
+ error : string!
261
+ }
262
+ @description "The assistant could not answer."
139
263
  }
140
264
  }
141
265
 
142
- page "/agent-session" as AgentSessionPage -> SessionReader, SessionWriter, SessionListener
266
+ page "/agent-session" as AgentSessionPage -> AgentThread
143
267
  }
@@ -1,116 +1,122 @@
1
- app std-agent-tool-loop "1.0.0"
2
- "Agent tool-loop molecule — call-tools, check response, emit result for iteration."
1
+ app std-agent-tool-loop "2.0.0"
2
+ "std-agent-tool-loop — answers a conversation by operating the running app as the caller, through `call-service llm call-tools`. The `tools` allowlist names declared external inputs (addressed like a listens source: `Trait.EVENT`, `Orbital.Trait.EVENT`) and entities to read; each input fires as the signed-in user through the ordinary dispatch (guards and entity policies apply) and each read returns only the rows the caller may read. Headless: the conversation UI (std-agent-session) shows the reply; a failure shows as a toast. CONVERSE carries the conversation (and optionally what std-agent-memory recalled); REPLIED carries the reply, every tool step and the token usage; REPLY_FAILED carries the error. Compose with std-agent-session (the conversation) and std-agent-trace (the step record)."
3
3
 
4
- type LlmToolCall = { id: string!, type: "function", function: { name: string!, arguments: string! } }
5
- ;; JSON Schema is recursive (@almadar/core JsonSchema: properties/items/$defs self-reference)
6
- ;; and .lolo has no recursive-JSON type; this deliberately partial shape declares only the
7
- ;; always-scalar top-level keys and leaves the recursive keys undeclared (honest, not checked).
8
- type LlmToolSchema = { type: string, description: string }
9
- type LlmMessage = { role: string!, content: string!, toolCalls: [LlmToolCall], toolCallId: string }
10
- type LlmToolDef = { name: string!, description: string!, schema: LlmToolSchema }
4
+ type AgentTool = {
5
+ event : event
6
+ read : string
7
+ }
8
+ type AgentChatMessage = {
9
+ role : "user" | "assistant"
10
+ content : string!
11
+ }
12
+ type AgentStep = {
13
+ kind : "input" | "read" | "invalid"
14
+ target : string!
15
+ args : string!
16
+ ok : boolean!
17
+ detail : string
18
+ }
19
+ type AgentUsage = {
20
+ promptTokens : number!
21
+ completionTokens : number!
22
+ totalTokens : number!
23
+ modelCalls : number!
24
+ }
11
25
 
12
26
  orbital AgentToolLoopOrbital {
13
-
14
- entity ToolLoop [runtime] {
15
- messages : [LlmMessage] = []
16
- tools : [LlmToolDef] = []
17
- response : string = ""
18
- iterations : number = 0
19
- status : "idle" | "calling" | "done" = idle
27
+ entity AgentTurn [runtime] {
28
+ id : string!
29
+ status : "idle" | "thinking" | "answered" | "failed" @description "Where the current turn is." = idle
30
+ reply : string @description "The last reply." = ""
31
+ error : string @description "Why the last turn failed." = ""
20
32
  }
21
33
 
22
- trait ToolLoopExecution -> ToolLoop [lifecycle, instance] {
34
+ trait AgentToolLoop -> AgentTurn [interaction] {
35
+ config {
36
+ tools : [AgentTool] = []
37
+ @label "What may the assistant do?"
38
+ @description "The declared inputs it may fire (`{ event: Trait.EVENT }`) and the entities it may read (`{ read: Entity }`), as the signed-in user."
39
+ @synonyms "allowlist, abilities, actions, permissions"
40
+ @tier "domain"
41
+ instructions : string = "You operate this app for the signed-in user. Use the tools to act and to look things up; when a tool reports that something was refused or denied, say so plainly."
42
+ @label "How should the assistant behave?"
43
+ @description "Standing instructions sent with every conversation."
44
+ @synonyms "system prompt, persona, guidance"
45
+ @tier "domain"
46
+ maxSteps : number = 8
47
+ @label "Model round-trips per request"
48
+ @description "How many model calls one request may take before it fails."
49
+ @tier "policy"
50
+ }
23
51
  initial: idle
24
52
 
25
53
  state idle {
26
54
  INIT -> idle
27
- (set @entity.messages [])
28
- (set @entity.tools [])
29
- (set @entity.response "")
30
- (set @entity.iterations 0)
31
55
  (set @entity.status idle)
32
- EXECUTE -> calling
33
- (set @entity.messages ?messages)
34
- (set @entity.tools ?tools)
35
- (llm/call-tools @entity.messages @entity.tools { emit: { success: TOOLS_CALLED_1, failure: TOOLS_FAILED_1 } })
56
+ CONVERSE -> thinking
57
+ (set @entity.status thinking)
58
+ (call-service llm call-tools {
59
+ messages: ?messages
60
+ tools: @config.tools
61
+ instructions: (if ["=", (str/default ?context ""), ""] @config.instructions (str/concat @config.instructions "\n\nWhat you remember that may be relevant:\n" ?context))
62
+ maxSteps: @config.maxSteps
63
+ } {
64
+ emit: { failure: ASK_FAILED, success: ANSWERED }
65
+ })
36
66
  }
37
67
 
38
- state calling {
39
- TOOLS_CALLED_1 -> done
40
- (set @entity.response ?result)
41
- (set @entity.iterations (+ @entity.iterations 1))
42
- (set @entity.status done)
43
- (emit LOOP_STEP { response: @entity.response, iteration: @entity.iterations })
44
- TOOLS_FAILED_1 -> done
45
- (set @entity.response "")
46
- (set @entity.status done)
47
- TOOLS_CALLED_2 -> done
48
- (set @entity.response ?result)
49
- (set @entity.iterations (+ @entity.iterations 1))
50
- (set @entity.status done)
51
- (emit LOOP_STEP { response: @entity.response, iteration: @entity.iterations })
52
- TOOLS_FAILED_2 -> done
53
- (set @entity.response "")
54
- (set @entity.status done)
55
- }
56
-
57
- state done {
58
- INIT -> done
59
- (set @entity.status done)
60
- CONTINUE -> calling
61
- (llm/call-tools @entity.messages @entity.tools { emit: { success: TOOLS_CALLED_2, failure: TOOLS_FAILED_2 } })
62
- RESET -> idle
63
- (set @entity.messages [])
64
- (set @entity.tools [])
65
- (set @entity.response "")
66
- (set @entity.iterations 0)
67
- (set @entity.status idle)
68
+ state thinking {
69
+ ANSWERED -> idle
70
+ (set @entity.status answered)
71
+ (set @entity.reply ?reply)
72
+ (emit REPLIED { reply: ?reply, steps: ?steps, usage: ?usage })
73
+ ASK_FAILED -> idle
74
+ (set @entity.status failed)
75
+ (set @entity.error ?error)
76
+ (emit REPLY_FAILED { error: ?error })
77
+ (render-ui toast {
78
+ message: ?error
79
+ type: alert
80
+ variant: error
81
+ })
68
82
  }
69
83
 
70
84
  emits {
71
- LOOP_STEP {
72
- response : string!
73
- iteration : number!
85
+ REPLIED -> external {
86
+ reply : string!
87
+ steps : [AgentStep]!
88
+ usage : AgentUsage!
74
89
  }
75
- TOOLS_CALLED_1 {
76
- result : string!
90
+ @description "The assistant answered; carries every tool step it took and the tokens it used."
91
+ @synonyms "answered, responded, done"
92
+ @tier "domain"
93
+ REPLY_FAILED -> external {
94
+ error : string!
77
95
  }
78
- TOOLS_CALLED_2 {
79
- result : string!
96
+ @description "The assistant could not answer (model unavailable, or out of steps)."
97
+ @synonyms "failed, error, gave up"
98
+ @tier "domain"
99
+ ANSWERED -> internal {
100
+ reply : string!
101
+ steps : [AgentStep]!
102
+ usage : AgentUsage!
80
103
  }
81
- }
82
-
83
- listens {
84
- EXECUTE {
85
- messages : [LlmMessage]!
86
- tools : [LlmToolDef]!
104
+ @tier "internal"
105
+ ASK_FAILED -> internal {
106
+ error : string!
87
107
  }
88
- CONTINUE
89
- }
90
- }
91
-
92
- trait ToolLoopListener -> ToolLoop [lifecycle, instance] {
93
- initial: waiting
94
-
95
- state waiting {
96
- INIT -> waiting
97
- (set @entity.status idle)
98
- LOOP_STEP -> active
99
- (set @entity.status done)
100
- }
101
-
102
- state active {
103
- INIT -> active
104
- (set @entity.status done)
105
- RESET -> waiting
106
- (set @entity.status idle)
108
+ @tier "internal"
107
109
  }
108
110
 
109
111
  listens {
110
- ToolLoopExecution.LOOP_STEP -> LOOP_STEP
111
- RESET
112
+ CONVERSE {
113
+ messages : [AgentChatMessage]!
114
+ context : string
115
+ }
116
+ @description "Answer this conversation; the last turn is the request. `context` is what the assistant remembers that may be relevant."
117
+ @synonyms "ask, chat, request"
112
118
  }
113
119
  }
114
120
 
115
- page "/agent-tool-loop" as AgentToolLoopPage -> ToolLoopExecution, ToolLoopListener
121
+ page "/agent-tool-loop" as AgentToolLoopPage -> AgentToolLoop
116
122
  }