@almadar/std 16.238.0 → 16.241.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 (567) hide show
  1. package/behaviors/behaviors-registry.json +31682 -26740
  2. package/behaviors/lolo/agent/atoms/std-agent-memory.lolo +2 -2
  3. package/behaviors/lolo/agent/atoms/std-agent-session.lolo +337 -167
  4. package/behaviors/lolo/agent/atoms/std-agent-tool-loop.lolo +48 -9
  5. package/behaviors/lolo/agent/atoms/std-agent-trace.lolo +45 -8
  6. package/behaviors/lolo/agent/organisms/std-agent-assistant.lolo +33 -9
  7. package/behaviors/lolo/ui/avl/atoms/ui-avl-glyph.lolo +6 -1
  8. package/behaviors/lolo/ui/avl/atoms/ui-avl-state-machine.lolo +5 -0
  9. package/behaviors/lolo/ui/core/.hand-authored.json +0 -4
  10. package/behaviors/lolo/ui/core/atoms/std-billable-hour.lolo +23 -10
  11. package/behaviors/lolo/ui/core/atoms/std-board.lolo +53 -6
  12. package/behaviors/lolo/ui/core/atoms/std-browse.lolo +30 -100
  13. package/behaviors/lolo/ui/core/atoms/std-graphs.lolo +2 -2
  14. package/behaviors/lolo/ui/core/atoms/std-panel-launcher.lolo +97 -0
  15. package/behaviors/lolo/ui/core/atoms/std-site-header.lolo +15 -3
  16. package/behaviors/lolo/ui/core/atoms/std-stats.lolo +1 -1
  17. package/behaviors/lolo/ui/core/atoms/std-tag-strip.lolo +2 -2
  18. package/behaviors/lolo/ui/core/atoms/std-tag-taxonomy.lolo +7 -7
  19. package/behaviors/lolo/ui/core/atoms/std-version-history.lolo +1 -1
  20. package/behaviors/lolo/ui/core/atoms/ui-animated-graphic.lolo +5 -0
  21. package/behaviors/lolo/ui/core/atoms/ui-animated-reveal.lolo +5 -0
  22. package/behaviors/lolo/ui/core/atoms/ui-aside.lolo +5 -0
  23. package/behaviors/lolo/ui/core/atoms/ui-atlas-image.lolo +5 -0
  24. package/behaviors/lolo/ui/core/atoms/ui-atlas-panel.lolo +5 -0
  25. package/behaviors/lolo/ui/core/atoms/ui-avatar.lolo +5 -0
  26. package/behaviors/lolo/ui/core/atoms/ui-badge.lolo +5 -0
  27. package/behaviors/lolo/ui/core/atoms/ui-box.lolo +5 -0
  28. package/behaviors/lolo/ui/core/atoms/ui-button.lolo +5 -0
  29. package/behaviors/lolo/ui/core/atoms/ui-card.lolo +5 -0
  30. package/behaviors/lolo/ui/core/atoms/ui-center.lolo +5 -0
  31. package/behaviors/lolo/ui/core/atoms/ui-checkbox.lolo +6 -0
  32. package/behaviors/lolo/ui/core/atoms/ui-confetti-effect.lolo +5 -0
  33. package/behaviors/lolo/ui/core/atoms/ui-day-cell.lolo +5 -0
  34. package/behaviors/lolo/ui/core/atoms/ui-dialog.lolo +5 -0
  35. package/behaviors/lolo/ui/core/atoms/ui-divider.lolo +5 -0
  36. package/behaviors/lolo/ui/core/atoms/ui-filter-pill.lolo +5 -0
  37. package/behaviors/lolo/ui/core/atoms/ui-flip-container.lolo +5 -0
  38. package/behaviors/lolo/ui/core/atoms/ui-game-icon.lolo +5 -0
  39. package/behaviors/lolo/ui/core/atoms/ui-hstack.lolo +5 -0
  40. package/behaviors/lolo/ui/core/atoms/ui-icon.lolo +5 -0
  41. package/behaviors/lolo/ui/core/atoms/ui-image.lolo +5 -0
  42. package/behaviors/lolo/ui/core/atoms/ui-infinite-scroll-sentinel.lolo +5 -0
  43. package/behaviors/lolo/ui/core/atoms/ui-input.lolo +5 -0
  44. package/behaviors/lolo/ui/core/atoms/ui-label.lolo +5 -0
  45. package/behaviors/lolo/ui/core/atoms/ui-law-reference-tooltip.lolo +5 -0
  46. package/behaviors/lolo/ui/core/atoms/ui-overlay.lolo +5 -0
  47. package/behaviors/lolo/ui/core/atoms/ui-pattern-tile.lolo +5 -0
  48. package/behaviors/lolo/ui/core/atoms/ui-presence.lolo +6 -1
  49. package/behaviors/lolo/ui/core/atoms/ui-progress-bar.lolo +6 -1
  50. package/behaviors/lolo/ui/core/atoms/ui-radio.lolo +6 -0
  51. package/behaviors/lolo/ui/core/atoms/ui-range-slider.lolo +7 -0
  52. package/behaviors/lolo/ui/core/atoms/ui-section-header.lolo +5 -0
  53. package/behaviors/lolo/ui/core/atoms/ui-select.lolo +5 -0
  54. package/behaviors/lolo/ui/core/atoms/ui-spacer.lolo +5 -0
  55. package/behaviors/lolo/ui/core/atoms/ui-sparkline.lolo +5 -0
  56. package/behaviors/lolo/ui/core/atoms/ui-spinner.lolo +5 -0
  57. package/behaviors/lolo/ui/core/atoms/ui-stack.lolo +5 -0
  58. package/behaviors/lolo/ui/core/atoms/ui-status-dot.lolo +5 -0
  59. package/behaviors/lolo/ui/core/atoms/ui-svg-branch.lolo +5 -0
  60. package/behaviors/lolo/ui/core/atoms/ui-svg-connection.lolo +5 -0
  61. package/behaviors/lolo/ui/core/atoms/ui-svg-flow.lolo +5 -0
  62. package/behaviors/lolo/ui/core/atoms/ui-svg-grid.lolo +5 -0
  63. package/behaviors/lolo/ui/core/atoms/ui-svg-lobe.lolo +5 -0
  64. package/behaviors/lolo/ui/core/atoms/ui-svg-mesh.lolo +5 -0
  65. package/behaviors/lolo/ui/core/atoms/ui-svg-morph.lolo +5 -0
  66. package/behaviors/lolo/ui/core/atoms/ui-svg-node.lolo +5 -0
  67. package/behaviors/lolo/ui/core/atoms/ui-svg-pulse.lolo +5 -0
  68. package/behaviors/lolo/ui/core/atoms/ui-svg-ring.lolo +5 -0
  69. package/behaviors/lolo/ui/core/atoms/ui-svg-shield.lolo +5 -0
  70. package/behaviors/lolo/ui/core/atoms/ui-svg-stack.lolo +5 -0
  71. package/behaviors/lolo/ui/core/atoms/ui-switch.lolo +6 -0
  72. package/behaviors/lolo/ui/core/atoms/ui-text-highlight.lolo +7 -0
  73. package/behaviors/lolo/ui/core/atoms/ui-textarea.lolo +5 -0
  74. package/behaviors/lolo/ui/core/atoms/ui-theme-toggle.lolo +5 -0
  75. package/behaviors/lolo/ui/core/atoms/ui-time-slot-cell.lolo +6 -0
  76. package/behaviors/lolo/ui/core/atoms/ui-trend-indicator.lolo +5 -0
  77. package/behaviors/lolo/ui/core/atoms/ui-typewriter-text.lolo +5 -0
  78. package/behaviors/lolo/ui/core/atoms/ui-typography.lolo +5 -0
  79. package/behaviors/lolo/ui/core/atoms/ui-vstack.lolo +5 -0
  80. package/behaviors/lolo/ui/core/molecules/ui-accordion.lolo +10 -0
  81. package/behaviors/lolo/ui/core/molecules/ui-activation-block.lolo +5 -0
  82. package/behaviors/lolo/ui/core/molecules/ui-agent-activity-feed.lolo +249 -0
  83. package/behaviors/lolo/ui/core/molecules/ui-agent-activity-row.lolo +218 -0
  84. package/behaviors/lolo/ui/core/molecules/ui-agent-chat-feed.lolo +231 -0
  85. package/behaviors/lolo/ui/core/molecules/ui-alert.lolo +5 -0
  86. package/behaviors/lolo/ui/core/molecules/ui-animated-counter.lolo +5 -0
  87. package/behaviors/lolo/ui/core/molecules/ui-bloom-quiz-block.lolo +5 -0
  88. package/behaviors/lolo/ui/core/molecules/ui-branching-logic-builder.lolo +10 -0
  89. package/behaviors/lolo/ui/core/molecules/ui-breadcrumb.lolo +5 -0
  90. package/behaviors/lolo/ui/core/molecules/ui-calendar-grid.lolo +14 -0
  91. package/behaviors/lolo/ui/core/molecules/ui-carousel.lolo +5 -0
  92. package/behaviors/lolo/ui/core/molecules/ui-change-list.lolo +5 -0
  93. package/behaviors/lolo/ui/core/molecules/ui-chart-legend.lolo +5 -0
  94. package/behaviors/lolo/ui/core/molecules/ui-chart.lolo +10 -0
  95. package/behaviors/lolo/ui/core/molecules/ui-code-block.lolo +12 -0
  96. package/behaviors/lolo/ui/core/molecules/ui-command-palette.lolo +6 -0
  97. package/behaviors/lolo/ui/core/molecules/ui-commit-row.lolo +7 -0
  98. package/behaviors/lolo/ui/core/molecules/ui-confirm-dialog.lolo +5 -0
  99. package/behaviors/lolo/ui/core/molecules/ui-connection-block.lolo +5 -0
  100. package/behaviors/lolo/ui/core/molecules/ui-container.lolo +5 -0
  101. package/behaviors/lolo/ui/core/molecules/ui-content-renderer.lolo +5 -9
  102. package/behaviors/lolo/ui/core/molecules/ui-data-grid.lolo +18 -4
  103. package/behaviors/lolo/ui/core/molecules/ui-data-list.lolo +18 -4
  104. package/behaviors/lolo/ui/core/molecules/ui-date-range-picker.lolo +6 -0
  105. package/behaviors/lolo/ui/core/molecules/ui-date-range-selector.lolo +5 -0
  106. package/behaviors/lolo/ui/core/molecules/ui-doc-breadcrumb.lolo +5 -0
  107. package/behaviors/lolo/ui/core/molecules/ui-doc-pagination.lolo +5 -0
  108. package/behaviors/lolo/ui/core/molecules/ui-doc-search.lolo +5 -0
  109. package/behaviors/lolo/ui/core/molecules/ui-doc-sidebar.lolo +5 -0
  110. package/behaviors/lolo/ui/core/molecules/ui-doc-toc.lolo +5 -0
  111. package/behaviors/lolo/ui/core/molecules/ui-document-details.lolo +8 -0
  112. package/behaviors/lolo/ui/core/molecules/ui-document-panel.lolo +7 -0
  113. package/behaviors/lolo/ui/core/molecules/ui-document-viewer.lolo +10 -0
  114. package/behaviors/lolo/ui/core/molecules/ui-drawer.lolo +5 -0
  115. package/behaviors/lolo/ui/core/molecules/ui-edge-decoration.lolo +5 -0
  116. package/behaviors/lolo/ui/core/molecules/ui-emoji-picker.lolo +6 -1
  117. package/behaviors/lolo/ui/core/molecules/ui-empty-state.lolo +5 -0
  118. package/behaviors/lolo/ui/core/molecules/ui-error-boundary.lolo +5 -0
  119. package/behaviors/lolo/ui/core/molecules/ui-error-state.lolo +5 -0
  120. package/behaviors/lolo/ui/core/molecules/ui-feature-card.lolo +5 -0
  121. package/behaviors/lolo/ui/core/molecules/ui-feature-grid.lolo +5 -0
  122. package/behaviors/lolo/ui/core/molecules/ui-file-tree.lolo +5 -0
  123. package/behaviors/lolo/ui/core/molecules/ui-filter-group.lolo +7 -0
  124. package/behaviors/lolo/ui/core/molecules/ui-flex.lolo +5 -0
  125. package/behaviors/lolo/ui/core/molecules/ui-flip-card.lolo +5 -0
  126. package/behaviors/lolo/ui/core/molecules/ui-floating-action-button.lolo +5 -0
  127. package/behaviors/lolo/ui/core/molecules/ui-floating-toolbar.lolo +5 -0
  128. package/behaviors/lolo/ui/core/molecules/ui-form-actions.lolo +5 -0
  129. package/behaviors/lolo/ui/core/molecules/ui-form-field.lolo +5 -0
  130. package/behaviors/lolo/ui/core/molecules/ui-form-layout.lolo +5 -0
  131. package/behaviors/lolo/ui/core/molecules/ui-form-section-header.lolo +5 -0
  132. package/behaviors/lolo/ui/core/molecules/ui-fx-overlay.lolo +5 -0
  133. package/behaviors/lolo/ui/core/molecules/ui-gantt.lolo +14 -0
  134. package/behaviors/lolo/ui/core/molecules/ui-geometric-pattern.lolo +5 -0
  135. package/behaviors/lolo/ui/core/molecules/ui-gradient-divider.lolo +5 -0
  136. package/behaviors/lolo/ui/core/molecules/ui-graph-canvas.lolo +40 -5
  137. package/behaviors/lolo/ui/core/molecules/ui-graph-view.lolo +10 -0
  138. package/behaviors/lolo/ui/core/molecules/ui-grid.lolo +5 -0
  139. package/behaviors/lolo/ui/core/molecules/ui-header.lolo +10 -0
  140. package/behaviors/lolo/ui/core/molecules/ui-icon-button.lolo +5 -0
  141. package/behaviors/lolo/ui/core/molecules/ui-import-preview-tree.lolo +10 -0
  142. package/behaviors/lolo/ui/core/molecules/ui-import-progress.lolo +5 -0
  143. package/behaviors/lolo/ui/core/molecules/ui-import-source-picker.lolo +5 -0
  144. package/behaviors/lolo/ui/core/molecules/ui-input-group.lolo +5 -0
  145. package/behaviors/lolo/ui/core/molecules/ui-jazari-state-machine.lolo +5 -0
  146. package/behaviors/lolo/ui/core/molecules/ui-lightbox.lolo +5 -0
  147. package/behaviors/lolo/ui/core/molecules/ui-likert-scale.lolo +5 -0
  148. package/behaviors/lolo/ui/core/molecules/ui-line-chart.lolo +5 -0
  149. package/behaviors/lolo/ui/core/molecules/ui-loading-state.lolo +5 -0
  150. package/behaviors/lolo/ui/core/molecules/ui-map-view.lolo +10 -0
  151. package/behaviors/lolo/ui/core/molecules/ui-markdown-content.lolo +5 -0
  152. package/behaviors/lolo/ui/core/molecules/ui-matrix-question.lolo +5 -0
  153. package/behaviors/lolo/ui/core/molecules/ui-menu.lolo +5 -0
  154. package/behaviors/lolo/ui/core/molecules/ui-meter.lolo +5 -0
  155. package/behaviors/lolo/ui/core/molecules/ui-modal.lolo +5 -0
  156. package/behaviors/lolo/ui/core/molecules/ui-navigation.lolo +5 -0
  157. package/behaviors/lolo/ui/core/molecules/ui-notification.lolo +5 -0
  158. package/behaviors/lolo/ui/core/molecules/ui-number-stepper.lolo +7 -0
  159. package/behaviors/lolo/ui/core/molecules/ui-option-constraint-group.lolo +20 -0
  160. package/behaviors/lolo/ui/core/molecules/ui-orbital-visualization.lolo +5 -0
  161. package/behaviors/lolo/ui/core/molecules/ui-page-header.lolo +5 -0
  162. package/behaviors/lolo/ui/core/molecules/ui-page-transition.lolo +5 -0
  163. package/behaviors/lolo/ui/core/molecules/ui-pagination.lolo +6 -0
  164. package/behaviors/lolo/ui/core/molecules/ui-popover.lolo +6 -0
  165. package/behaviors/lolo/ui/core/molecules/ui-positioned-canvas.lolo +7 -0
  166. package/behaviors/lolo/ui/core/molecules/ui-progress-dots.lolo +5 -0
  167. package/behaviors/lolo/ui/core/molecules/ui-pull-to-refresh.lolo +5 -0
  168. package/behaviors/lolo/ui/core/molecules/ui-qr-scanner.lolo +5 -0
  169. package/behaviors/lolo/ui/core/molecules/ui-quiz-block.lolo +5 -0
  170. package/behaviors/lolo/ui/core/molecules/ui-reflection-block.lolo +5 -0
  171. package/behaviors/lolo/ui/core/molecules/ui-relation-select.lolo +6 -0
  172. package/behaviors/lolo/ui/core/molecules/ui-repeatable-form-section.lolo +5 -0
  173. package/behaviors/lolo/ui/core/molecules/ui-reply-tree.lolo +7 -0
  174. package/behaviors/lolo/ui/core/molecules/ui-rich-text-editor.lolo +6 -0
  175. package/behaviors/lolo/ui/core/molecules/ui-scaled-diagram.lolo +5 -0
  176. package/behaviors/lolo/ui/core/molecules/ui-search-input.lolo +7 -1
  177. package/behaviors/lolo/ui/core/molecules/ui-section.lolo +5 -0
  178. package/behaviors/lolo/ui/core/molecules/ui-side-panel.lolo +5 -0
  179. package/behaviors/lolo/ui/core/molecules/ui-sidebar.lolo +6 -0
  180. package/behaviors/lolo/ui/core/molecules/ui-signature-pad.lolo +5 -0
  181. package/behaviors/lolo/ui/core/molecules/ui-simple-grid.lolo +5 -0
  182. package/behaviors/lolo/ui/core/molecules/ui-skeleton.lolo +10 -0
  183. package/behaviors/lolo/ui/core/molecules/ui-social-proof.lolo +5 -0
  184. package/behaviors/lolo/ui/core/molecules/ui-sortable-list.lolo +7 -0
  185. package/behaviors/lolo/ui/core/molecules/ui-split.lolo +5 -0
  186. package/behaviors/lolo/ui/core/molecules/ui-star-rating.lolo +7 -0
  187. package/behaviors/lolo/ui/core/molecules/ui-stat-display.lolo +10 -0
  188. package/behaviors/lolo/ui/core/molecules/ui-swipeable-row.lolo +8 -0
  189. package/behaviors/lolo/ui/core/molecules/ui-table-view.lolo +14 -0
  190. package/behaviors/lolo/ui/core/molecules/ui-tabs.lolo +5 -0
  191. package/behaviors/lolo/ui/core/molecules/ui-tag-input.lolo +5 -0
  192. package/behaviors/lolo/ui/core/molecules/ui-tooltip.lolo +5 -0
  193. package/behaviors/lolo/ui/core/molecules/ui-top-nav-item.lolo +5 -0
  194. package/behaviors/lolo/ui/core/molecules/ui-upload-drop-zone.lolo +5 -0
  195. package/behaviors/lolo/ui/core/molecules/ui-version-diff.lolo +5 -0
  196. package/behaviors/lolo/ui/core/molecules/ui-violation-alert.lolo +5 -0
  197. package/behaviors/lolo/ui/core/molecules/ui-vote-stack.lolo +5 -0
  198. package/behaviors/lolo/ui/core/molecules/ui-wizard-container.lolo +5 -0
  199. package/behaviors/lolo/ui/core/molecules/ui-wizard-navigation.lolo +8 -0
  200. package/behaviors/lolo/ui/core/molecules/ui-wizard-progress.lolo +5 -0
  201. package/behaviors/lolo/ui/core/organisms/ui-chat-bar.lolo +16 -0
  202. package/behaviors/lolo/ui/core/organisms/ui-code-runner-panel.lolo +5 -0
  203. package/behaviors/lolo/ui/core/organisms/ui-dashboard-grid.lolo +10 -0
  204. package/behaviors/lolo/ui/core/organisms/ui-detail-panel.lolo +21 -5
  205. package/behaviors/lolo/ui/core/organisms/ui-dock-layout.lolo +8 -3
  206. package/behaviors/lolo/ui/core/organisms/ui-drawer-slot.lolo +5 -0
  207. package/behaviors/lolo/ui/core/organisms/ui-form-section.lolo +16 -0
  208. package/behaviors/lolo/ui/core/organisms/ui-form.lolo +16 -0
  209. package/behaviors/lolo/ui/core/organisms/ui-master-detail-layout.lolo +5 -0
  210. package/behaviors/lolo/ui/core/organisms/ui-media-gallery.lolo +14 -0
  211. package/behaviors/lolo/ui/core/organisms/ui-modal-slot.lolo +5 -0
  212. package/behaviors/lolo/ui/core/organisms/ui-runtime-debugger.lolo +5 -0
  213. package/behaviors/lolo/ui/core/organisms/ui-segment-renderer.lolo +9 -3
  214. package/behaviors/lolo/ui/core/organisms/ui-split-pane.lolo +6 -0
  215. package/behaviors/lolo/ui/core/organisms/ui-stat-card.lolo +14 -0
  216. package/behaviors/lolo/ui/core/organisms/ui-state-machine-view.lolo +8 -3
  217. package/behaviors/lolo/ui/core/organisms/ui-subagent-trace-panel.lolo +232 -0
  218. package/behaviors/lolo/ui/core/organisms/ui-tabbed-container.lolo +5 -0
  219. package/behaviors/lolo/ui/core/organisms/ui-timeline.lolo +14 -0
  220. package/behaviors/lolo/ui/core/organisms/ui-toast-slot.lolo +5 -0
  221. package/behaviors/lolo/ui/core/templates/ui-counter-template.lolo +5 -0
  222. package/behaviors/lolo/ui/core/templates/ui-generic-app-template.lolo +5 -0
  223. package/behaviors/lolo/ui/game/.hand-authored.json +2 -2
  224. package/behaviors/lolo/ui/game/atoms/ui-action-palette.lolo +5 -0
  225. package/behaviors/lolo/ui/game/atoms/ui-action-tile.lolo +5 -0
  226. package/behaviors/lolo/ui/game/atoms/ui-canvas-2d.lolo +5 -0
  227. package/behaviors/lolo/ui/game/atoms/ui-canvas.lolo +5 -0
  228. package/behaviors/lolo/ui/game/atoms/ui-choice-button.lolo +5 -0
  229. package/behaviors/lolo/ui/game/atoms/ui-control-button.lolo +5 -0
  230. package/behaviors/lolo/ui/game/atoms/ui-control-grid.lolo +5 -0
  231. package/behaviors/lolo/ui/game/atoms/ui-dialogue-bubble.lolo +5 -0
  232. package/behaviors/lolo/ui/game/atoms/ui-game-audio-toggle.lolo +5 -0
  233. package/behaviors/lolo/ui/game/atoms/ui-game-hud.lolo +5 -0
  234. package/behaviors/lolo/ui/game/atoms/ui-game-menu.lolo +5 -0
  235. package/behaviors/lolo/ui/game/atoms/ui-health-bar.lolo +5 -0
  236. package/behaviors/lolo/ui/game/atoms/ui-score-display.lolo +5 -0
  237. package/behaviors/lolo/ui/game/atoms/ui-sequence-bar.lolo +5 -0
  238. package/behaviors/lolo/ui/game/atoms/ui-stat-badge.lolo +5 -0
  239. package/behaviors/lolo/ui/game/atoms/ui-state-graph.lolo +5 -0
  240. package/behaviors/lolo/ui/game/atoms/ui-state-json-view.lolo +5 -0
  241. package/behaviors/lolo/ui/game/atoms/ui-trait-slot.lolo +7 -0
  242. package/behaviors/lolo/ui/learning/atoms/ui-algo-graph-canvas.lolo +5 -0
  243. package/behaviors/lolo/ui/learning/atoms/ui-algorithm-canvas.lolo +6 -0
  244. package/behaviors/lolo/ui/learning/atoms/ui-biology-canvas.lolo +6 -0
  245. package/behaviors/lolo/ui/learning/atoms/ui-chemistry-canvas.lolo +6 -0
  246. package/behaviors/lolo/ui/learning/atoms/ui-learning-canvas.lolo +6 -0
  247. package/behaviors/lolo/ui/learning/atoms/ui-math-canvas.lolo +6 -0
  248. package/behaviors/lolo/ui/learning/atoms/ui-physics-canvas.lolo +6 -0
  249. package/behaviors/lolo-behavior-contracts.json +1 -1
  250. package/behaviors/registry/agent/atoms/std-agent-memory.orb +30 -7
  251. package/behaviors/registry/agent/atoms/std-agent-session.orb +1509 -601
  252. package/behaviors/registry/agent/atoms/std-agent-tool-loop.orb +549 -116
  253. package/behaviors/registry/agent/atoms/std-agent-trace.orb +383 -87
  254. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +116 -9
  255. package/behaviors/registry/factory-signatures.json +1 -1
  256. package/behaviors/registry/ui/avl/atoms/ui-avl-glyph.orb +20 -0
  257. package/behaviors/registry/ui/avl/atoms/ui-avl-state-machine.orb +19 -0
  258. package/behaviors/registry/ui/core/atoms/std-billable-hour.orb +44 -21
  259. package/behaviors/registry/ui/core/atoms/std-board.orb +110 -14
  260. package/behaviors/registry/ui/core/atoms/std-browse.orb +117 -142
  261. package/behaviors/registry/ui/core/atoms/std-graphs.orb +14 -2
  262. package/behaviors/registry/ui/core/atoms/std-panel-launcher.orb +312 -0
  263. package/behaviors/registry/ui/core/atoms/std-site-header.orb +40 -2
  264. package/behaviors/registry/ui/core/atoms/std-stats.orb +1 -1
  265. package/behaviors/registry/ui/core/atoms/std-tag-strip.orb +2 -0
  266. package/behaviors/registry/ui/core/atoms/std-tag-taxonomy.orb +24 -0
  267. package/behaviors/registry/ui/core/atoms/std-version-history.orb +8 -1
  268. package/behaviors/registry/ui/core/atoms/ui-animated-graphic.orb +19 -0
  269. package/behaviors/registry/ui/core/atoms/ui-animated-reveal.orb +19 -0
  270. package/behaviors/registry/ui/core/atoms/ui-aside.orb +19 -0
  271. package/behaviors/registry/ui/core/atoms/ui-atlas-image.orb +19 -0
  272. package/behaviors/registry/ui/core/atoms/ui-atlas-panel.orb +19 -0
  273. package/behaviors/registry/ui/core/atoms/ui-avatar.orb +19 -0
  274. package/behaviors/registry/ui/core/atoms/ui-badge.orb +19 -0
  275. package/behaviors/registry/ui/core/atoms/ui-box.orb +19 -0
  276. package/behaviors/registry/ui/core/atoms/ui-button.orb +19 -0
  277. package/behaviors/registry/ui/core/atoms/ui-card.orb +19 -0
  278. package/behaviors/registry/ui/core/atoms/ui-center.orb +19 -0
  279. package/behaviors/registry/ui/core/atoms/ui-checkbox.orb +20 -0
  280. package/behaviors/registry/ui/core/atoms/ui-confetti-effect.orb +19 -0
  281. package/behaviors/registry/ui/core/atoms/ui-day-cell.orb +19 -0
  282. package/behaviors/registry/ui/core/atoms/ui-dialog.orb +19 -0
  283. package/behaviors/registry/ui/core/atoms/ui-divider.orb +19 -0
  284. package/behaviors/registry/ui/core/atoms/ui-filter-pill.orb +19 -0
  285. package/behaviors/registry/ui/core/atoms/ui-flip-container.orb +19 -0
  286. package/behaviors/registry/ui/core/atoms/ui-game-icon.orb +19 -0
  287. package/behaviors/registry/ui/core/atoms/ui-hstack.orb +19 -0
  288. package/behaviors/registry/ui/core/atoms/ui-icon.orb +19 -0
  289. package/behaviors/registry/ui/core/atoms/ui-image.orb +19 -0
  290. package/behaviors/registry/ui/core/atoms/ui-infinite-scroll-sentinel.orb +19 -0
  291. package/behaviors/registry/ui/core/atoms/ui-input.orb +19 -0
  292. package/behaviors/registry/ui/core/atoms/ui-label.orb +19 -0
  293. package/behaviors/registry/ui/core/atoms/ui-law-reference-tooltip.orb +19 -0
  294. package/behaviors/registry/ui/core/atoms/ui-overlay.orb +19 -0
  295. package/behaviors/registry/ui/core/atoms/ui-pattern-tile.orb +19 -0
  296. package/behaviors/registry/ui/core/atoms/ui-presence.orb +20 -0
  297. package/behaviors/registry/ui/core/atoms/ui-progress-bar.orb +20 -1
  298. package/behaviors/registry/ui/core/atoms/ui-radio.orb +20 -0
  299. package/behaviors/registry/ui/core/atoms/ui-range-slider.orb +21 -0
  300. package/behaviors/registry/ui/core/atoms/ui-section-header.orb +19 -0
  301. package/behaviors/registry/ui/core/atoms/ui-select.orb +19 -0
  302. package/behaviors/registry/ui/core/atoms/ui-spacer.orb +19 -0
  303. package/behaviors/registry/ui/core/atoms/ui-sparkline.orb +19 -0
  304. package/behaviors/registry/ui/core/atoms/ui-spinner.orb +19 -0
  305. package/behaviors/registry/ui/core/atoms/ui-stack.orb +19 -0
  306. package/behaviors/registry/ui/core/atoms/ui-status-dot.orb +19 -0
  307. package/behaviors/registry/ui/core/atoms/ui-svg-branch.orb +19 -0
  308. package/behaviors/registry/ui/core/atoms/ui-svg-connection.orb +19 -0
  309. package/behaviors/registry/ui/core/atoms/ui-svg-flow.orb +19 -0
  310. package/behaviors/registry/ui/core/atoms/ui-svg-grid.orb +19 -0
  311. package/behaviors/registry/ui/core/atoms/ui-svg-lobe.orb +19 -0
  312. package/behaviors/registry/ui/core/atoms/ui-svg-mesh.orb +19 -0
  313. package/behaviors/registry/ui/core/atoms/ui-svg-morph.orb +19 -0
  314. package/behaviors/registry/ui/core/atoms/ui-svg-node.orb +19 -0
  315. package/behaviors/registry/ui/core/atoms/ui-svg-pulse.orb +19 -0
  316. package/behaviors/registry/ui/core/atoms/ui-svg-ring.orb +19 -0
  317. package/behaviors/registry/ui/core/atoms/ui-svg-shield.orb +19 -0
  318. package/behaviors/registry/ui/core/atoms/ui-svg-stack.orb +19 -0
  319. package/behaviors/registry/ui/core/atoms/ui-switch.orb +20 -0
  320. package/behaviors/registry/ui/core/atoms/ui-text-highlight.orb +21 -0
  321. package/behaviors/registry/ui/core/atoms/ui-textarea.orb +19 -0
  322. package/behaviors/registry/ui/core/atoms/ui-theme-toggle.orb +19 -0
  323. package/behaviors/registry/ui/core/atoms/ui-time-slot-cell.orb +20 -0
  324. package/behaviors/registry/ui/core/atoms/ui-trend-indicator.orb +19 -0
  325. package/behaviors/registry/ui/core/atoms/ui-typewriter-text.orb +19 -0
  326. package/behaviors/registry/ui/core/atoms/ui-typography.orb +19 -0
  327. package/behaviors/registry/ui/core/atoms/ui-vstack.orb +19 -0
  328. package/behaviors/registry/ui/core/molecules/ui-accordion.orb +31 -0
  329. package/behaviors/registry/ui/core/molecules/ui-activation-block.orb +19 -0
  330. package/behaviors/registry/ui/core/molecules/ui-agent-activity-feed.orb +1881 -0
  331. package/behaviors/registry/ui/core/molecules/ui-agent-activity-row.orb +1817 -0
  332. package/behaviors/registry/ui/core/molecules/ui-agent-chat-feed.orb +1792 -0
  333. package/behaviors/registry/ui/core/molecules/ui-alert.orb +19 -0
  334. package/behaviors/registry/ui/core/molecules/ui-animated-counter.orb +19 -0
  335. package/behaviors/registry/ui/core/molecules/ui-bloom-quiz-block.orb +19 -0
  336. package/behaviors/registry/ui/core/molecules/ui-branching-logic-builder.orb +31 -0
  337. package/behaviors/registry/ui/core/molecules/ui-breadcrumb.orb +19 -0
  338. package/behaviors/registry/ui/core/molecules/ui-calendar-grid.orb +35 -0
  339. package/behaviors/registry/ui/core/molecules/ui-carousel.orb +19 -0
  340. package/behaviors/registry/ui/core/molecules/ui-change-list.orb +19 -0
  341. package/behaviors/registry/ui/core/molecules/ui-chart-legend.orb +19 -0
  342. package/behaviors/registry/ui/core/molecules/ui-chart.orb +32 -0
  343. package/behaviors/registry/ui/core/molecules/ui-code-block.orb +26 -0
  344. package/behaviors/registry/ui/core/molecules/ui-command-palette.orb +20 -0
  345. package/behaviors/registry/ui/core/molecules/ui-commit-row.orb +21 -0
  346. package/behaviors/registry/ui/core/molecules/ui-confirm-dialog.orb +19 -0
  347. package/behaviors/registry/ui/core/molecules/ui-connection-block.orb +19 -0
  348. package/behaviors/registry/ui/core/molecules/ui-container.orb +19 -0
  349. package/behaviors/registry/ui/core/molecules/ui-content-renderer.orb +19 -38
  350. package/behaviors/registry/ui/core/molecules/ui-data-grid.orb +42 -0
  351. package/behaviors/registry/ui/core/molecules/ui-data-list.orb +42 -0
  352. package/behaviors/registry/ui/core/molecules/ui-date-range-picker.orb +20 -0
  353. package/behaviors/registry/ui/core/molecules/ui-date-range-selector.orb +19 -0
  354. package/behaviors/registry/ui/core/molecules/ui-doc-breadcrumb.orb +19 -0
  355. package/behaviors/registry/ui/core/molecules/ui-doc-pagination.orb +19 -0
  356. package/behaviors/registry/ui/core/molecules/ui-doc-search.orb +19 -0
  357. package/behaviors/registry/ui/core/molecules/ui-doc-sidebar.orb +19 -0
  358. package/behaviors/registry/ui/core/molecules/ui-doc-toc.orb +19 -0
  359. package/behaviors/registry/ui/core/molecules/ui-document-details.orb +22 -0
  360. package/behaviors/registry/ui/core/molecules/ui-document-panel.orb +21 -0
  361. package/behaviors/registry/ui/core/molecules/ui-document-viewer.orb +31 -0
  362. package/behaviors/registry/ui/core/molecules/ui-drawer.orb +19 -0
  363. package/behaviors/registry/ui/core/molecules/ui-edge-decoration.orb +19 -0
  364. package/behaviors/registry/ui/core/molecules/ui-emoji-picker.orb +20 -1
  365. package/behaviors/registry/ui/core/molecules/ui-empty-state.orb +19 -0
  366. package/behaviors/registry/ui/core/molecules/ui-error-boundary.orb +19 -0
  367. package/behaviors/registry/ui/core/molecules/ui-error-state.orb +19 -0
  368. package/behaviors/registry/ui/core/molecules/ui-feature-card.orb +19 -0
  369. package/behaviors/registry/ui/core/molecules/ui-feature-grid.orb +19 -0
  370. package/behaviors/registry/ui/core/molecules/ui-file-tree.orb +19 -0
  371. package/behaviors/registry/ui/core/molecules/ui-filter-group.orb +21 -0
  372. package/behaviors/registry/ui/core/molecules/ui-flex.orb +19 -0
  373. package/behaviors/registry/ui/core/molecules/ui-flip-card.orb +19 -0
  374. package/behaviors/registry/ui/core/molecules/ui-floating-action-button.orb +19 -0
  375. package/behaviors/registry/ui/core/molecules/ui-floating-toolbar.orb +19 -0
  376. package/behaviors/registry/ui/core/molecules/ui-form-actions.orb +19 -0
  377. package/behaviors/registry/ui/core/molecules/ui-form-field.orb +19 -0
  378. package/behaviors/registry/ui/core/molecules/ui-form-layout.orb +19 -0
  379. package/behaviors/registry/ui/core/molecules/ui-form-section-header.orb +19 -0
  380. package/behaviors/registry/ui/core/molecules/ui-fx-overlay.orb +19 -0
  381. package/behaviors/registry/ui/core/molecules/ui-gantt.orb +35 -0
  382. package/behaviors/registry/ui/core/molecules/ui-geometric-pattern.orb +19 -0
  383. package/behaviors/registry/ui/core/molecules/ui-gradient-divider.orb +19 -0
  384. package/behaviors/registry/ui/core/molecules/ui-graph-canvas.orb +579 -108
  385. package/behaviors/registry/ui/core/molecules/ui-graph-view.orb +31 -0
  386. package/behaviors/registry/ui/core/molecules/ui-grid.orb +19 -0
  387. package/behaviors/registry/ui/core/molecules/ui-header.orb +26 -0
  388. package/behaviors/registry/ui/core/molecules/ui-icon-button.orb +19 -0
  389. package/behaviors/registry/ui/core/molecules/ui-import-preview-tree.orb +31 -0
  390. package/behaviors/registry/ui/core/molecules/ui-import-progress.orb +19 -0
  391. package/behaviors/registry/ui/core/molecules/ui-import-source-picker.orb +19 -0
  392. package/behaviors/registry/ui/core/molecules/ui-input-group.orb +19 -0
  393. package/behaviors/registry/ui/core/molecules/ui-jazari-state-machine.orb +19 -0
  394. package/behaviors/registry/ui/core/molecules/ui-lightbox.orb +19 -0
  395. package/behaviors/registry/ui/core/molecules/ui-likert-scale.orb +19 -0
  396. package/behaviors/registry/ui/core/molecules/ui-line-chart.orb +19 -0
  397. package/behaviors/registry/ui/core/molecules/ui-loading-state.orb +19 -0
  398. package/behaviors/registry/ui/core/molecules/ui-map-view.orb +31 -0
  399. package/behaviors/registry/ui/core/molecules/ui-markdown-content.orb +19 -0
  400. package/behaviors/registry/ui/core/molecules/ui-matrix-question.orb +19 -0
  401. package/behaviors/registry/ui/core/molecules/ui-menu.orb +19 -0
  402. package/behaviors/registry/ui/core/molecules/ui-meter.orb +19 -0
  403. package/behaviors/registry/ui/core/molecules/ui-modal.orb +19 -0
  404. package/behaviors/registry/ui/core/molecules/ui-navigation.orb +19 -0
  405. package/behaviors/registry/ui/core/molecules/ui-notification.orb +19 -0
  406. package/behaviors/registry/ui/core/molecules/ui-number-stepper.orb +21 -0
  407. package/behaviors/registry/ui/core/molecules/ui-option-constraint-group.orb +97 -0
  408. package/behaviors/registry/ui/core/molecules/ui-orbital-visualization.orb +19 -0
  409. package/behaviors/registry/ui/core/molecules/ui-page-header.orb +20 -0
  410. package/behaviors/registry/ui/core/molecules/ui-page-transition.orb +19 -0
  411. package/behaviors/registry/ui/core/molecules/ui-pagination.orb +20 -0
  412. package/behaviors/registry/ui/core/molecules/ui-popover.orb +20 -0
  413. package/behaviors/registry/ui/core/molecules/ui-positioned-canvas.orb +21 -0
  414. package/behaviors/registry/ui/core/molecules/ui-progress-dots.orb +19 -0
  415. package/behaviors/registry/ui/core/molecules/ui-pull-to-refresh.orb +19 -0
  416. package/behaviors/registry/ui/core/molecules/ui-qr-scanner.orb +19 -0
  417. package/behaviors/registry/ui/core/molecules/ui-quiz-block.orb +19 -0
  418. package/behaviors/registry/ui/core/molecules/ui-reflection-block.orb +19 -0
  419. package/behaviors/registry/ui/core/molecules/ui-relation-select.orb +20 -0
  420. package/behaviors/registry/ui/core/molecules/ui-repeatable-form-section.orb +19 -0
  421. package/behaviors/registry/ui/core/molecules/ui-reply-tree.orb +21 -0
  422. package/behaviors/registry/ui/core/molecules/ui-rich-text-editor.orb +20 -0
  423. package/behaviors/registry/ui/core/molecules/ui-scaled-diagram.orb +19 -0
  424. package/behaviors/registry/ui/core/molecules/ui-search-input.orb +21 -1
  425. package/behaviors/registry/ui/core/molecules/ui-section.orb +19 -0
  426. package/behaviors/registry/ui/core/molecules/ui-side-panel.orb +19 -0
  427. package/behaviors/registry/ui/core/molecules/ui-sidebar.orb +20 -0
  428. package/behaviors/registry/ui/core/molecules/ui-signature-pad.orb +19 -0
  429. package/behaviors/registry/ui/core/molecules/ui-simple-grid.orb +19 -0
  430. package/behaviors/registry/ui/core/molecules/ui-skeleton.orb +38 -0
  431. package/behaviors/registry/ui/core/molecules/ui-social-proof.orb +19 -0
  432. package/behaviors/registry/ui/core/molecules/ui-sortable-list.orb +21 -0
  433. package/behaviors/registry/ui/core/molecules/ui-split.orb +19 -0
  434. package/behaviors/registry/ui/core/molecules/ui-star-rating.orb +21 -0
  435. package/behaviors/registry/ui/core/molecules/ui-stat-display.orb +31 -0
  436. package/behaviors/registry/ui/core/molecules/ui-swipeable-row.orb +22 -0
  437. package/behaviors/registry/ui/core/molecules/ui-table-view.orb +36 -0
  438. package/behaviors/registry/ui/core/molecules/ui-tabs.orb +19 -0
  439. package/behaviors/registry/ui/core/molecules/ui-tag-input.orb +19 -0
  440. package/behaviors/registry/ui/core/molecules/ui-tooltip.orb +19 -0
  441. package/behaviors/registry/ui/core/molecules/ui-top-nav-item.orb +19 -0
  442. package/behaviors/registry/ui/core/molecules/ui-upload-drop-zone.orb +19 -0
  443. package/behaviors/registry/ui/core/molecules/ui-version-diff.orb +19 -0
  444. package/behaviors/registry/ui/core/molecules/ui-violation-alert.orb +19 -0
  445. package/behaviors/registry/ui/core/molecules/ui-vote-stack.orb +19 -0
  446. package/behaviors/registry/ui/core/molecules/ui-wizard-container.orb +19 -0
  447. package/behaviors/registry/ui/core/molecules/ui-wizard-navigation.orb +22 -0
  448. package/behaviors/registry/ui/core/molecules/ui-wizard-progress.orb +19 -0
  449. package/behaviors/registry/ui/core/organisms/ui-chat-bar.orb +53 -0
  450. package/behaviors/registry/ui/core/organisms/ui-code-runner-panel.orb +19 -0
  451. package/behaviors/registry/ui/core/organisms/ui-dashboard-grid.orb +31 -0
  452. package/behaviors/registry/ui/core/organisms/ui-detail-panel.orb +45 -1
  453. package/behaviors/registry/ui/core/organisms/ui-dock-layout.orb +22 -3
  454. package/behaviors/registry/ui/core/organisms/ui-drawer-slot.orb +19 -0
  455. package/behaviors/registry/ui/core/organisms/ui-form-section.orb +38 -0
  456. package/behaviors/registry/ui/core/organisms/ui-form.orb +38 -0
  457. package/behaviors/registry/ui/core/organisms/ui-master-detail-layout.orb +19 -0
  458. package/behaviors/registry/ui/core/organisms/ui-media-gallery.orb +35 -0
  459. package/behaviors/registry/ui/core/organisms/ui-modal-slot.orb +19 -0
  460. package/behaviors/registry/ui/core/organisms/ui-runtime-debugger.orb +19 -0
  461. package/behaviors/registry/ui/core/organisms/ui-segment-renderer.orb +39 -8
  462. package/behaviors/registry/ui/core/organisms/ui-split-pane.orb +20 -0
  463. package/behaviors/registry/ui/core/organisms/ui-stat-card.orb +35 -0
  464. package/behaviors/registry/ui/core/organisms/ui-state-machine-view.orb +22 -0
  465. package/behaviors/registry/ui/core/organisms/ui-subagent-trace-panel.orb +2222 -48
  466. package/behaviors/registry/ui/core/organisms/ui-tabbed-container.orb +19 -0
  467. package/behaviors/registry/ui/core/organisms/ui-timeline.orb +36 -0
  468. package/behaviors/registry/ui/core/organisms/ui-toast-slot.orb +19 -0
  469. package/behaviors/registry/ui/core/templates/ui-counter-template.orb +19 -0
  470. package/behaviors/registry/ui/core/templates/ui-generic-app-template.orb +19 -0
  471. package/behaviors/registry/ui/game/atoms/ui-action-palette.orb +19 -0
  472. package/behaviors/registry/ui/game/atoms/ui-action-tile.orb +19 -0
  473. package/behaviors/registry/ui/game/atoms/ui-canvas-2d.orb +19 -0
  474. package/behaviors/registry/ui/game/atoms/ui-canvas.orb +19 -0
  475. package/behaviors/registry/ui/game/atoms/ui-choice-button.orb +19 -0
  476. package/behaviors/registry/ui/game/atoms/ui-control-button.orb +19 -0
  477. package/behaviors/registry/ui/game/atoms/ui-control-grid.orb +19 -0
  478. package/behaviors/registry/ui/game/atoms/ui-dialogue-bubble.orb +19 -0
  479. package/behaviors/registry/ui/game/atoms/ui-game-audio-toggle.orb +19 -0
  480. package/behaviors/registry/ui/game/atoms/ui-game-hud.orb +19 -0
  481. package/behaviors/registry/ui/game/atoms/ui-game-menu.orb +19 -0
  482. package/behaviors/registry/ui/game/atoms/ui-health-bar.orb +19 -0
  483. package/behaviors/registry/ui/game/atoms/ui-score-display.orb +19 -0
  484. package/behaviors/registry/ui/game/atoms/ui-sequence-bar.orb +19 -0
  485. package/behaviors/registry/ui/game/atoms/ui-stat-badge.orb +19 -0
  486. package/behaviors/registry/ui/game/atoms/ui-state-graph.orb +19 -0
  487. package/behaviors/registry/ui/game/atoms/ui-state-json-view.orb +19 -0
  488. package/behaviors/registry/ui/game/atoms/ui-trait-slot.orb +21 -0
  489. package/behaviors/registry/ui/learning/atoms/ui-algo-graph-canvas.orb +19 -0
  490. package/behaviors/registry/ui/learning/atoms/ui-algorithm-canvas.orb +20 -0
  491. package/behaviors/registry/ui/learning/atoms/ui-biology-canvas.orb +20 -0
  492. package/behaviors/registry/ui/learning/atoms/ui-chemistry-canvas.orb +20 -0
  493. package/behaviors/registry/ui/learning/atoms/ui-learning-canvas.orb +20 -0
  494. package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +20 -0
  495. package/behaviors/registry/ui/learning/atoms/ui-physics-canvas.orb +20 -0
  496. package/behaviors/signatures.lolo +5306 -611
  497. package/canonical-operators.json +35 -1
  498. package/dist/behaviors/exports-reader.js +10353 -13958
  499. package/dist/behaviors/functions/index.d.ts +666 -974
  500. package/dist/behaviors/functions/index.js +10340 -13930
  501. package/dist/behaviors/index.d.ts +1 -1
  502. package/dist/behaviors/index.js +10354 -13959
  503. package/dist/behaviors/query.js +10353 -13958
  504. package/dist/behaviors-embeddings.hash.json +3 -3
  505. package/dist/behaviors-embeddings.json +35 -35
  506. package/dist/behaviors-registry.json +31682 -26740
  507. package/dist/index.d.ts +4 -4
  508. package/dist/index.js +10392 -13959
  509. package/dist/knob-embeddings.hash.json +3 -3
  510. package/dist/knob-embeddings.json +1167 -815
  511. package/dist/modules/anim.d.ts +1 -1
  512. package/dist/modules/array.d.ts +1 -1
  513. package/dist/modules/async.d.ts +1 -1
  514. package/dist/modules/behavior.d.ts +1 -1
  515. package/dist/modules/browser.d.ts +1 -1
  516. package/dist/modules/composition.d.ts +1 -1
  517. package/dist/modules/contract.d.ts +1 -1
  518. package/dist/modules/core.d.ts +1 -1
  519. package/dist/modules/core.js +2 -0
  520. package/dist/modules/data.d.ts +1 -1
  521. package/dist/modules/ease.d.ts +1 -1
  522. package/dist/modules/format.d.ts +1 -1
  523. package/dist/modules/geo.d.ts +1 -1
  524. package/dist/modules/graph.d.ts +1 -1
  525. package/dist/modules/grid.d.ts +1 -1
  526. package/dist/modules/i18n.d.ts +17 -0
  527. package/dist/modules/i18n.js +22 -0
  528. package/dist/modules/index.d.ts +2 -1
  529. package/dist/modules/index.js +24 -1
  530. package/dist/modules/integration.d.ts +1 -1
  531. package/dist/modules/json.d.ts +1 -1
  532. package/dist/modules/llm.d.ts +1 -1
  533. package/dist/modules/math.d.ts +1 -1
  534. package/dist/modules/memory.d.ts +1 -1
  535. package/dist/modules/nn.d.ts +1 -1
  536. package/dist/modules/noise.d.ts +1 -1
  537. package/dist/modules/object.d.ts +1 -1
  538. package/dist/modules/os.d.ts +1 -1
  539. package/dist/modules/path.d.ts +1 -1
  540. package/dist/modules/prob.d.ts +1 -1
  541. package/dist/modules/session.d.ts +1 -1
  542. package/dist/modules/str.d.ts +1 -1
  543. package/dist/modules/tensor.d.ts +1 -1
  544. package/dist/modules/time.d.ts +1 -1
  545. package/dist/modules/trace.d.ts +1 -1
  546. package/dist/modules/train.d.ts +1 -1
  547. package/dist/modules/validate.d.ts +1 -1
  548. package/dist/modules/vector.d.ts +1 -1
  549. package/dist/modules/workspace.d.ts +1 -1
  550. package/dist/registry/factory-signatures.json +1 -1
  551. package/dist/registry.d.ts +10 -3
  552. package/dist/registry.js +31 -1
  553. package/dist/{types-DLx38UFZ.d.ts → types-Cdb321uM.d.ts} +9 -3
  554. package/i18n/ar.json +1 -0
  555. package/i18n/en.json +1 -0
  556. package/i18n/sl.json +1 -0
  557. package/package.json +3 -3
  558. package/behaviors/lolo/ui/core/atoms/std-list.lolo +0 -613
  559. package/behaviors/lolo/ui/core/organisms/ui-entity-cards.lolo +0 -399
  560. package/behaviors/lolo/ui/core/organisms/ui-entity-list.lolo +0 -379
  561. package/behaviors/lolo/ui/core/organisms/ui-entity-table.lolo +0 -447
  562. package/behaviors/lolo/ui/core/organisms/ui-master-detail.lolo +0 -276
  563. package/behaviors/registry/ui/core/atoms/std-list.orb +0 -2135
  564. package/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +0 -1346
  565. package/behaviors/registry/ui/core/organisms/ui-entity-list.orb +0 -1248
  566. package/behaviors/registry/ui/core/organisms/ui-entity-table.orb +0 -1761
  567. package/behaviors/registry/ui/core/organisms/ui-master-detail.orb +0 -715
@@ -1,5 +1,5 @@
1
1
  {
2
- "description": "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.",
2
+ "description": "std-agent-session — the conversation with an in-app assistant. AgentThread owns the persisted 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 reply. AgentConversation is what the user sees, in the browser: the thread as chat bubbles with every step the assistant takes interleaved live (STEP: each model call, each tool it used and what the app answered), a thinking row while it works, and a chat bar. 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
  "ledger": {
4
4
  "entries": {
5
5
  "ent_01M3TYMQH8YF6HGJJVC3GRECJP": {
@@ -10,6 +10,14 @@
10
10
  "owner": "workspace",
11
11
  "renames": []
12
12
  },
13
+ "ent_01M3WC4PY11QN1558Y1ZV83259": {
14
+ "bakedName": "AgentConversationView",
15
+ "curName": "AgentConversationView",
16
+ "id": "ent_01M3WC4PY11QN1558Y1ZV83259",
17
+ "kind": "entity",
18
+ "owner": "workspace",
19
+ "renames": []
20
+ },
13
21
  "evt_01M3TYMQH81AV51TX8HBD3BVVY": {
14
22
  "bakedName": "INIT",
15
23
  "curName": "INIT",
@@ -19,15 +27,6 @@
19
27
  "parent": "trt_01M3TYMQH8QP9883EWJYRT49M8",
20
28
  "renames": []
21
29
  },
22
- "evt_01M3TYMQH844NH7EYEBPA4XVG6": {
23
- "bakedName": "REPLY_FAILED",
24
- "curName": "REPLY_FAILED",
25
- "id": "evt_01M3TYMQH844NH7EYEBPA4XVG6",
26
- "kind": "event",
27
- "owner": "workspace",
28
- "parent": "trt_01M3TYMQH8QP9883EWJYRT49M8",
29
- "renames": []
30
- },
31
30
  "evt_01M3TYMQH87CAV0ETMWW6P6W6P": {
32
31
  "bakedName": "SEND",
33
32
  "curName": "SEND",
@@ -91,33 +90,87 @@
91
90
  "parent": "trt_01M3TYMQH8QP9883EWJYRT49M8",
92
91
  "renames": []
93
92
  },
94
- "evt_01M3TYMQH8HHGS90VQR6Y0RK1K": {
95
- "bakedName": "EDIT_MESSAGE",
96
- "curName": "EDIT_MESSAGE",
97
- "id": "evt_01M3TYMQH8HHGS90VQR6Y0RK1K",
93
+ "evt_01M3TYMQH8PJZ22902FWBBMMK4": {
94
+ "bakedName": "REPLIED",
95
+ "curName": "REPLIED",
96
+ "id": "evt_01M3TYMQH8PJZ22902FWBBMMK4",
98
97
  "kind": "event",
99
98
  "owner": "workspace",
100
99
  "parent": "trt_01M3TYMQH8QP9883EWJYRT49M8",
101
100
  "renames": []
102
101
  },
103
- "evt_01M3TYMQH8PJZ22902FWBBMMK4": {
102
+ "evt_01M3WC4PY11N0BPZ1WZMMGJGR8": {
103
+ "bakedName": "THREAD_LOADED",
104
+ "curName": "THREAD_LOADED",
105
+ "id": "evt_01M3WC4PY11N0BPZ1WZMMGJGR8",
106
+ "kind": "event",
107
+ "owner": "workspace",
108
+ "parent": "trt_01M3WC4PY19N3FHQ4JQF6R9SA4",
109
+ "renames": []
110
+ },
111
+ "evt_01M3WC4PY16PAX6BAR4QCWZMJR": {
112
+ "bakedName": "SEND",
113
+ "curName": "SEND",
114
+ "id": "evt_01M3WC4PY16PAX6BAR4QCWZMJR",
115
+ "kind": "event",
116
+ "owner": "workspace",
117
+ "parent": "trt_01M3WC4PY19N3FHQ4JQF6R9SA4",
118
+ "renames": []
119
+ },
120
+ "evt_01M3WC4PY17CBXZBP39ZBSYT2B": {
104
121
  "bakedName": "REPLIED",
105
122
  "curName": "REPLIED",
106
- "id": "evt_01M3TYMQH8PJZ22902FWBBMMK4",
123
+ "id": "evt_01M3WC4PY17CBXZBP39ZBSYT2B",
107
124
  "kind": "event",
108
125
  "owner": "workspace",
109
- "parent": "trt_01M3TYMQH8QP9883EWJYRT49M8",
126
+ "parent": "trt_01M3WC4PY19N3FHQ4JQF6R9SA4",
127
+ "renames": []
128
+ },
129
+ "evt_01M3WC4PY186J45C1NERG11RG8": {
130
+ "bakedName": "INIT",
131
+ "curName": "INIT",
132
+ "id": "evt_01M3WC4PY186J45C1NERG11RG8",
133
+ "kind": "event",
134
+ "owner": "workspace",
135
+ "parent": "trt_01M3WC4PY19N3FHQ4JQF6R9SA4",
136
+ "renames": []
137
+ },
138
+ "evt_01M3WC4PY1FP4JAXE259KW86F8": {
139
+ "bakedName": "REPLY_FAILED",
140
+ "curName": "REPLY_FAILED",
141
+ "id": "evt_01M3WC4PY1FP4JAXE259KW86F8",
142
+ "kind": "event",
143
+ "owner": "workspace",
144
+ "parent": "trt_01M3WC4PY19N3FHQ4JQF6R9SA4",
110
145
  "renames": []
111
146
  },
112
- "evt_01M3TYMQH8RCRDSVZ3DQ6DZ2YF": {
113
- "bakedName": "SEND_DRAFT",
114
- "curName": "SEND_DRAFT",
115
- "id": "evt_01M3TYMQH8RCRDSVZ3DQ6DZ2YF",
147
+ "evt_01M3WC4PY1REQ5RNNQBSR6JFXP": {
148
+ "bakedName": "STEP",
149
+ "curName": "STEP",
150
+ "id": "evt_01M3WC4PY1REQ5RNNQBSR6JFXP",
151
+ "kind": "event",
152
+ "owner": "workspace",
153
+ "parent": "trt_01M3WC4PY19N3FHQ4JQF6R9SA4",
154
+ "renames": []
155
+ },
156
+ "evt_01M3WC4PY1SBZM2NR5EQ1JARQK": {
157
+ "bakedName": "THREAD_FAILED",
158
+ "curName": "THREAD_FAILED",
159
+ "id": "evt_01M3WC4PY1SBZM2NR5EQ1JARQK",
116
160
  "kind": "event",
117
161
  "owner": "workspace",
118
162
  "parent": "trt_01M3TYMQH8QP9883EWJYRT49M8",
119
163
  "renames": []
120
164
  },
165
+ "evt_01M3WC4PY1TK0PTERMDE5BWR5W": {
166
+ "bakedName": "ASK",
167
+ "curName": "ASK",
168
+ "id": "evt_01M3WC4PY1TK0PTERMDE5BWR5W",
169
+ "kind": "event",
170
+ "owner": "workspace",
171
+ "parent": "trt_01M3WC4PY19N3FHQ4JQF6R9SA4",
172
+ "renames": []
173
+ },
121
174
  "orb_01KXG04EKXYAHSWY6RJPZ81FXF": {
122
175
  "bakedName": "AgentSessionOrbital",
123
176
  "curName": "AgentSessionOrbital",
@@ -141,6 +194,14 @@
141
194
  "kind": "trait",
142
195
  "owner": "workspace",
143
196
  "renames": []
197
+ },
198
+ "trt_01M3WC4PY19N3FHQ4JQF6R9SA4": {
199
+ "bakedName": "AgentConversation",
200
+ "curName": "AgentConversation",
201
+ "id": "trt_01M3WC4PY19N3FHQ4JQF6R9SA4",
202
+ "kind": "trait",
203
+ "owner": "workspace",
204
+ "renames": []
144
205
  }
145
206
  },
146
207
  "schemaVersion": 1
@@ -148,6 +209,290 @@
148
209
  "name": "std-agent-session",
149
210
  "orbitals": [
150
211
  {
212
+ "auxiliaryEntities": [
213
+ {
214
+ "fields": [
215
+ {
216
+ "name": "id",
217
+ "required": true,
218
+ "type": "string"
219
+ },
220
+ {
221
+ "default": [],
222
+ "description": "The conversation as shown: messages with the assistant's steps between them.",
223
+ "items": {
224
+ "properties": {
225
+ "AgentErrorEntry": {
226
+ "name": "AgentErrorEntry",
227
+ "properties": {
228
+ "message": {
229
+ "name": "message",
230
+ "required": true,
231
+ "type": "string"
232
+ },
233
+ "timestamp": {
234
+ "name": "timestamp",
235
+ "required": true,
236
+ "type": "number"
237
+ },
238
+ "type": {
239
+ "name": "type",
240
+ "required": true,
241
+ "type": "string",
242
+ "values": [
243
+ "error"
244
+ ]
245
+ }
246
+ },
247
+ "type": "object"
248
+ },
249
+ "AgentLlmResponseActivity": {
250
+ "name": "AgentLlmResponseActivity",
251
+ "properties": {
252
+ "content": {
253
+ "name": "content",
254
+ "required": true,
255
+ "type": "string"
256
+ },
257
+ "llm": {
258
+ "name": "llm",
259
+ "properties": {
260
+ "attempt": {
261
+ "name": "attempt",
262
+ "required": false,
263
+ "type": "number"
264
+ },
265
+ "cachedPromptTokens": {
266
+ "name": "cachedPromptTokens",
267
+ "required": false,
268
+ "type": "number"
269
+ },
270
+ "completionTokens": {
271
+ "name": "completionTokens",
272
+ "required": false,
273
+ "type": "number"
274
+ },
275
+ "costUSD": {
276
+ "name": "costUSD",
277
+ "required": false,
278
+ "type": "number"
279
+ },
280
+ "durationMs": {
281
+ "name": "durationMs",
282
+ "required": true,
283
+ "type": "number"
284
+ },
285
+ "model": {
286
+ "name": "model",
287
+ "required": true,
288
+ "type": "string"
289
+ },
290
+ "promptTokens": {
291
+ "name": "promptTokens",
292
+ "required": false,
293
+ "type": "number"
294
+ },
295
+ "provider": {
296
+ "name": "provider",
297
+ "required": true,
298
+ "type": "string"
299
+ },
300
+ "service": {
301
+ "name": "service",
302
+ "required": true,
303
+ "type": "string"
304
+ },
305
+ "systemPrompt": {
306
+ "name": "systemPrompt",
307
+ "required": true,
308
+ "type": "string"
309
+ },
310
+ "toolCallsJson": {
311
+ "name": "toolCallsJson",
312
+ "required": false,
313
+ "type": "string"
314
+ },
315
+ "userPrompt": {
316
+ "name": "userPrompt",
317
+ "required": true,
318
+ "type": "string"
319
+ }
320
+ },
321
+ "required": false,
322
+ "type": "object"
323
+ },
324
+ "timestamp": {
325
+ "name": "timestamp",
326
+ "required": true,
327
+ "type": "number"
328
+ },
329
+ "type": {
330
+ "name": "type",
331
+ "required": true,
332
+ "type": "string",
333
+ "values": [
334
+ "llm_response"
335
+ ]
336
+ }
337
+ },
338
+ "type": "object"
339
+ },
340
+ "AgentMessageEntry": {
341
+ "name": "AgentMessageEntry",
342
+ "properties": {
343
+ "content": {
344
+ "name": "content",
345
+ "required": true,
346
+ "type": "string"
347
+ },
348
+ "role": {
349
+ "name": "role",
350
+ "required": true,
351
+ "type": "string",
352
+ "values": [
353
+ "user",
354
+ "assistant"
355
+ ]
356
+ },
357
+ "timestamp": {
358
+ "name": "timestamp",
359
+ "required": true,
360
+ "type": "number"
361
+ },
362
+ "type": {
363
+ "name": "type",
364
+ "required": true,
365
+ "type": "string",
366
+ "values": [
367
+ "message"
368
+ ]
369
+ }
370
+ },
371
+ "type": "object"
372
+ },
373
+ "AgentToolCallActivity": {
374
+ "name": "AgentToolCallActivity",
375
+ "properties": {
376
+ "argsText": {
377
+ "name": "argsText",
378
+ "required": true,
379
+ "type": "string"
380
+ },
381
+ "isExecuting": {
382
+ "name": "isExecuting",
383
+ "required": false,
384
+ "type": "boolean"
385
+ },
386
+ "kind": {
387
+ "name": "kind",
388
+ "required": false,
389
+ "type": "string",
390
+ "values": [
391
+ "input",
392
+ "read",
393
+ "invalid"
394
+ ]
395
+ },
396
+ "timestamp": {
397
+ "name": "timestamp",
398
+ "required": true,
399
+ "type": "number"
400
+ },
401
+ "tool": {
402
+ "name": "tool",
403
+ "required": true,
404
+ "type": "string"
405
+ },
406
+ "type": {
407
+ "name": "type",
408
+ "required": true,
409
+ "type": "string",
410
+ "values": [
411
+ "tool_call"
412
+ ]
413
+ }
414
+ },
415
+ "type": "object"
416
+ },
417
+ "AgentToolResultActivity": {
418
+ "name": "AgentToolResultActivity",
419
+ "properties": {
420
+ "detail": {
421
+ "name": "detail",
422
+ "required": false,
423
+ "type": "string"
424
+ },
425
+ "kind": {
426
+ "name": "kind",
427
+ "required": false,
428
+ "type": "string",
429
+ "values": [
430
+ "input",
431
+ "read",
432
+ "invalid"
433
+ ]
434
+ },
435
+ "resultText": {
436
+ "name": "resultText",
437
+ "required": true,
438
+ "type": "string"
439
+ },
440
+ "rows": {
441
+ "name": "rows",
442
+ "required": false,
443
+ "type": "number"
444
+ },
445
+ "success": {
446
+ "name": "success",
447
+ "required": true,
448
+ "type": "boolean"
449
+ },
450
+ "timestamp": {
451
+ "name": "timestamp",
452
+ "required": true,
453
+ "type": "number"
454
+ },
455
+ "tool": {
456
+ "name": "tool",
457
+ "required": true,
458
+ "type": "string"
459
+ },
460
+ "type": {
461
+ "name": "type",
462
+ "required": true,
463
+ "type": "string",
464
+ "values": [
465
+ "tool_result"
466
+ ]
467
+ }
468
+ },
469
+ "type": "object"
470
+ }
471
+ },
472
+ "type": "union",
473
+ "values": [
474
+ "AgentMessageEntry",
475
+ "AgentToolCallActivity",
476
+ "AgentToolResultActivity",
477
+ "AgentLlmResponseActivity",
478
+ "AgentErrorEntry"
479
+ ]
480
+ },
481
+ "name": "entries",
482
+ "type": "array"
483
+ },
484
+ {
485
+ "default": false,
486
+ "description": "The assistant is answering.",
487
+ "name": "working",
488
+ "type": "boolean"
489
+ }
490
+ ],
491
+ "id": "ent_01M3WC4PY11QN1558Y1ZV83259",
492
+ "name": "AgentConversationView",
493
+ "persistence": "runtime"
494
+ }
495
+ ],
151
496
  "entity": {
152
497
  "collection": "agentMessages",
153
498
  "fields": [
@@ -187,13 +532,6 @@
187
532
  "name": "createdAt",
188
533
  "synonyms": "time, timestamp",
189
534
  "type": "number"
190
- },
191
- {
192
- "default": "",
193
- "description": "The message being typed.",
194
- "intrinsic": true,
195
- "name": "draft",
196
- "type": "string"
197
535
  }
198
536
  ],
199
537
  "id": "ent_01M3TYMQH8YF6HGJJVC3GRECJP",
@@ -208,6 +546,10 @@
208
546
  "name": "AgentSessionPage",
209
547
  "path": "/agent-session",
210
548
  "traits": [
549
+ {
550
+ "ref": "AgentConversation",
551
+ "refId": "trt_01M3WC4PY19N3FHQ4JQF6R9SA4"
552
+ },
211
553
  {
212
554
  "ref": "AgentThread",
213
555
  "refId": "trt_01M3TYMQH8QP9883EWJYRT49M8"
@@ -217,49 +559,16 @@
217
559
  ],
218
560
  "traits": [
219
561
  {
220
- "category": "interaction",
221
- "config": {
222
- "links": {
223
- "default": [],
224
- "description": "Related pages (e.g. the run history), shown under the title.",
225
- "items": {
226
- "properties": {
227
- "href": {
228
- "name": "href",
229
- "required": true,
230
- "type": "string"
231
- },
232
- "label": {
233
- "name": "label",
234
- "required": true,
235
- "type": "string"
236
- }
237
- },
238
- "type": "object"
239
- },
240
- "label": "Links above the conversation",
241
- "tier": "presentation",
242
- "type": "[AgentLink]"
243
- },
244
- "placeholder": {
245
- "default": "Ask the assistant…",
246
- "label": "Message placeholder",
247
- "tier": "presentation",
248
- "type": "string"
249
- },
250
- "title": {
251
- "default": "Assistant",
252
- "description": "Heading above the conversation.",
253
- "label": "Title",
254
- "tier": "presentation",
255
- "type": "string"
256
- }
257
- },
562
+ "category": "lifecycle",
258
563
  "effectRow": [
259
564
  {
260
565
  "kind": "emit",
261
566
  "resource": "CONVERSE"
262
567
  },
568
+ {
569
+ "kind": "emit",
570
+ "resource": "THREAD_FAILED"
571
+ },
263
572
  {
264
573
  "kind": "fetch",
265
574
  "resource": "AgentMessage"
@@ -270,14 +579,25 @@
270
579
  },
271
580
  {
272
581
  "kind": "render-ui",
273
- "resource": "main"
274
- },
275
- {
276
- "kind": "set",
277
- "resource": "@entity.draft"
582
+ "resource": "toast"
278
583
  }
279
584
  ],
280
585
  "emits": [
586
+ {
587
+ "description": "The conversation could not be loaded or a message could not be stored.",
588
+ "event": "THREAD_FAILED",
589
+ "eventId": "evt_01M3WC4PY1SBZM2NR5EQ1JARQK",
590
+ "payloadSchema": [
591
+ {
592
+ "name": "error",
593
+ "required": true,
594
+ "type": "string"
595
+ }
596
+ ],
597
+ "scope": "external",
598
+ "synonyms": "failed, error",
599
+ "tier": "domain"
600
+ },
281
601
  {
282
602
  "description": "The conversation to answer, oldest first; the last turn is the request.",
283
603
  "event": "CONVERSE",
@@ -289,6 +609,7 @@
289
609
  "properties": [
290
610
  {
291
611
  "name": "role",
612
+ "required": true,
292
613
  "type": "string"
293
614
  },
294
615
  {
@@ -306,8 +627,9 @@
306
627
  "tier": "domain"
307
628
  },
308
629
  {
309
- "event": "AgentConversationLoaded",
310
- "eventId": "evt_01M3TYMQH8H65NTWP1KYX7WM6C",
630
+ "description": "The conversation finished loading.",
631
+ "event": "AgentMessagesLoaded",
632
+ "eventId": "evt_01M3TYMQH87K7NK4H6DHKPYPM6",
311
633
  "payloadSchema": [
312
634
  {
313
635
  "entity": "AgentMessage",
@@ -335,22 +657,34 @@
335
657
  {
336
658
  "name": "createdAt",
337
659
  "type": "number"
338
- },
339
- {
340
- "name": "draft",
341
- "type": "string"
342
660
  }
343
661
  ],
344
662
  "type": "[object]"
345
663
  }
346
664
  ],
347
- "scope": "internal",
665
+ "scope": "external",
348
666
  "tier": "internal"
349
667
  },
350
668
  {
351
- "description": "The conversation finished loading.",
352
- "event": "AgentMessagesLoaded",
353
- "eventId": "evt_01M3TYMQH87K7NK4H6DHKPYPM6",
669
+ "description": "The conversation could not be loaded.",
670
+ "event": "AgentMessagesLoadFailed",
671
+ "eventId": "evt_01M3TYMQH8BHTWREJV617WFH68",
672
+ "payloadSchema": [
673
+ {
674
+ "name": "error",
675
+ "type": "string"
676
+ },
677
+ {
678
+ "name": "code",
679
+ "type": "string"
680
+ }
681
+ ],
682
+ "scope": "external",
683
+ "tier": "internal"
684
+ },
685
+ {
686
+ "event": "AgentConversationLoaded",
687
+ "eventId": "evt_01M3TYMQH8H65NTWP1KYX7WM6C",
354
688
  "payloadSchema": [
355
689
  {
356
690
  "entity": "AgentMessage",
@@ -378,46 +712,28 @@
378
712
  {
379
713
  "name": "createdAt",
380
714
  "type": "number"
381
- },
382
- {
383
- "name": "draft",
384
- "type": "string"
385
715
  }
386
716
  ],
387
717
  "type": "[object]"
388
718
  }
389
719
  ],
720
+ "scope": "internal",
390
721
  "tier": "internal"
391
722
  },
392
723
  {
393
- "event": "AgentMessagesLoadFailed",
394
- "eventId": "evt_01M3TYMQH8BHTWREJV617WFH68",
724
+ "description": "A message persisted — payload is the created AgentMessage row itself.",
725
+ "event": "AgentMessageSaved",
726
+ "eventId": "evt_01M3TYMQH8ACSRY02P4HWBHJWV",
727
+ "payloadEntity": "AgentMessage",
395
728
  "payloadSchema": [
396
729
  {
397
- "name": "error",
730
+ "name": "id",
731
+ "required": true,
398
732
  "type": "string"
399
733
  },
400
734
  {
401
- "name": "code",
402
- "type": "string"
403
- }
404
- ],
405
- "tier": "internal"
406
- },
407
- {
408
- "description": "A message persisted — payload is the created AgentMessage row itself.",
409
- "event": "AgentMessageSaved",
410
- "eventId": "evt_01M3TYMQH8ACSRY02P4HWBHJWV",
411
- "payloadEntity": "AgentMessage",
412
- "payloadSchema": [
413
- {
414
- "name": "id",
415
- "required": true,
416
- "type": "string"
417
- },
418
- {
419
- "name": "ownerId",
420
- "required": true,
735
+ "name": "ownerId",
736
+ "required": true,
421
737
  "type": "string"
422
738
  },
423
739
  {
@@ -432,16 +748,13 @@
432
748
  {
433
749
  "name": "createdAt",
434
750
  "type": "number"
435
- },
436
- {
437
- "name": "draft",
438
- "type": "string"
439
751
  }
440
752
  ],
441
753
  "scope": "internal",
442
754
  "tier": "internal"
443
755
  },
444
756
  {
757
+ "description": "The message could not be stored.",
445
758
  "event": "AgentMessageSaveFailed",
446
759
  "eventId": "evt_01M3TYMQH8CEE16439Z6N25V08",
447
760
  "payloadSchema": [
@@ -454,33 +767,12 @@
454
767
  "type": "string"
455
768
  }
456
769
  ],
770
+ "scope": "external",
457
771
  "tier": "internal"
458
- },
459
- {
460
- "description": "The message being typed changed.",
461
- "event": "EDIT_MESSAGE",
462
- "eventId": "evt_01M3TYMQH8HHGS90VQR6Y0RK1K",
463
- "payloadSchema": [
464
- {
465
- "name": "value",
466
- "required": true,
467
- "type": "string"
468
- }
469
- ],
470
- "tier": "presentation"
471
- },
472
- {
473
- "description": "Send the typed message.",
474
- "event": "SEND_DRAFT",
475
- "eventId": "evt_01M3TYMQH8RCRDSVZ3DQ6DZ2YF",
476
- "synonyms": "send, ask, submit",
477
- "tier": "domain"
478
772
  }
479
773
  ],
480
774
  "entityContract": {
481
- "provides": [
482
- "draft"
483
- ],
775
+ "provides": [],
484
776
  "requires": []
485
777
  },
486
778
  "entityRebindable": true,
@@ -490,8 +782,21 @@
490
782
  "id": "trt_01M3TYMQH8QP9883EWJYRT49M8",
491
783
  "linkedEntity": "AgentMessage",
492
784
  "linkedEntityId": "ent_01M3TYMQH8YF6HGJJVC3GRECJP",
785
+ "listens": [
786
+ {
787
+ "event": "SEND",
788
+ "eventId": "evt_01M3TYMQH87CAV0ETMWW6P6W6P",
789
+ "source": {
790
+ "kind": "trait",
791
+ "trait": "AgentConversation",
792
+ "traitId": "trt_01M3WC4PY19N3FHQ4JQF6R9SA4"
793
+ },
794
+ "triggers": "SEND",
795
+ "triggersId": "evt_01M3TYMQH87CAV0ETMWW6P6W6P"
796
+ }
797
+ ],
493
798
  "name": "AgentThread",
494
- "scope": "collection",
799
+ "scope": "instance",
495
800
  "stateMachine": {
496
801
  "events": [
497
802
  {
@@ -500,88 +805,7 @@
500
805
  "name": "Initialize"
501
806
  },
502
807
  {
503
- "description": "The conversation finished loading.",
504
- "id": "evt_01M3TYMQH87K7NK4H6DHKPYPM6",
505
- "key": "AgentMessagesLoaded",
506
- "name": "AgentMessage s loaded",
507
- "payloadSchema": [
508
- {
509
- "entity": "AgentMessage",
510
- "name": "data",
511
- "properties": [
512
- {
513
- "name": "id",
514
- "required": true,
515
- "type": "string"
516
- },
517
- {
518
- "name": "ownerId",
519
- "required": true,
520
- "type": "string"
521
- },
522
- {
523
- "name": "role",
524
- "type": "string"
525
- },
526
- {
527
- "name": "content",
528
- "required": true,
529
- "type": "string"
530
- },
531
- {
532
- "name": "createdAt",
533
- "type": "number"
534
- },
535
- {
536
- "name": "draft",
537
- "type": "string"
538
- }
539
- ],
540
- "type": "[object]"
541
- }
542
- ],
543
- "tier": "internal"
544
- },
545
- {
546
- "id": "evt_01M3TYMQH8BHTWREJV617WFH68",
547
- "key": "AgentMessagesLoadFailed",
548
- "name": "AgentMessage s load failed",
549
- "payloadSchema": [
550
- {
551
- "name": "error",
552
- "type": "string"
553
- },
554
- {
555
- "name": "code",
556
- "type": "string"
557
- }
558
- ],
559
- "tier": "internal"
560
- },
561
- {
562
- "description": "The message being typed changed.",
563
- "id": "evt_01M3TYMQH8HHGS90VQR6Y0RK1K",
564
- "key": "EDIT_MESSAGE",
565
- "name": "Edit Message",
566
- "payloadSchema": [
567
- {
568
- "name": "value",
569
- "required": true,
570
- "type": "string"
571
- }
572
- ],
573
- "tier": "presentation"
574
- },
575
- {
576
- "description": "Send the typed message.",
577
- "id": "evt_01M3TYMQH8RCRDSVZ3DQ6DZ2YF",
578
- "key": "SEND_DRAFT",
579
- "name": "Send Draft",
580
- "synonyms": "send, ask, submit",
581
- "tier": "domain"
582
- },
583
- {
584
- "description": "Ask the assistant something.",
808
+ "description": "Store the user's message and ask the assistant.",
585
809
  "id": "evt_01M3TYMQH87CAV0ETMWW6P6W6P",
586
810
  "key": "SEND",
587
811
  "name": "Send",
@@ -594,32 +818,6 @@
594
818
  ],
595
819
  "synonyms": "ask, message, chat"
596
820
  },
597
- {
598
- "description": "The assistant answered.",
599
- "id": "evt_01M3TYMQH8PJZ22902FWBBMMK4",
600
- "key": "REPLIED",
601
- "name": "Replied",
602
- "payloadSchema": [
603
- {
604
- "name": "reply",
605
- "required": true,
606
- "type": "string"
607
- }
608
- ]
609
- },
610
- {
611
- "description": "The assistant could not answer.",
612
- "id": "evt_01M3TYMQH844NH7EYEBPA4XVG6",
613
- "key": "REPLY_FAILED",
614
- "name": "Reply Failed",
615
- "payloadSchema": [
616
- {
617
- "name": "error",
618
- "required": true,
619
- "type": "string"
620
- }
621
- ]
622
- },
623
821
  {
624
822
  "description": "A message persisted — payload is the created AgentMessage row itself.",
625
823
  "id": "evt_01M3TYMQH8ACSRY02P4HWBHJWV",
@@ -649,10 +847,6 @@
649
847
  {
650
848
  "name": "createdAt",
651
849
  "type": "number"
652
- },
653
- {
654
- "name": "draft",
655
- "type": "string"
656
850
  }
657
851
  ],
658
852
  "tier": "internal"
@@ -688,10 +882,6 @@
688
882
  {
689
883
  "name": "createdAt",
690
884
  "type": "number"
691
- },
692
- {
693
- "name": "draft",
694
- "type": "string"
695
885
  }
696
886
  ],
697
887
  "type": "[object]"
@@ -700,6 +890,37 @@
700
890
  "tier": "internal"
701
891
  },
702
892
  {
893
+ "description": "Store the assistant's answer.",
894
+ "id": "evt_01M3TYMQH8PJZ22902FWBBMMK4",
895
+ "key": "REPLIED",
896
+ "name": "Replied",
897
+ "payloadSchema": [
898
+ {
899
+ "name": "reply",
900
+ "required": true,
901
+ "type": "string"
902
+ }
903
+ ]
904
+ },
905
+ {
906
+ "description": "The conversation could not be loaded.",
907
+ "id": "evt_01M3TYMQH8BHTWREJV617WFH68",
908
+ "key": "AgentMessagesLoadFailed",
909
+ "name": "AgentMessage s load failed",
910
+ "payloadSchema": [
911
+ {
912
+ "name": "error",
913
+ "type": "string"
914
+ },
915
+ {
916
+ "name": "code",
917
+ "type": "string"
918
+ }
919
+ ],
920
+ "tier": "internal"
921
+ },
922
+ {
923
+ "description": "The message could not be stored.",
703
924
  "id": "evt_01M3TYMQH8CEE16439Z6N25V08",
704
925
  "key": "AgentMessageSaveFailed",
705
926
  "name": "AgentMessage save failed",
@@ -715,6 +936,21 @@
715
936
  ],
716
937
  "tier": "internal"
717
938
  },
939
+ {
940
+ "description": "The conversation could not be loaded or a message could not be stored.",
941
+ "id": "evt_01M3WC4PY1SBZM2NR5EQ1JARQK",
942
+ "key": "THREAD_FAILED",
943
+ "name": "Thread Failed",
944
+ "payloadSchema": [
945
+ {
946
+ "name": "error",
947
+ "required": true,
948
+ "type": "string"
949
+ }
950
+ ],
951
+ "synonyms": "failed, error",
952
+ "tier": "domain"
953
+ },
718
954
  {
719
955
  "description": "The conversation to answer, oldest first; the last turn is the request.",
720
956
  "id": "evt_01M3TYMQH8CS3YHB2R90D5J678",
@@ -727,6 +963,7 @@
727
963
  "properties": [
728
964
  {
729
965
  "name": "role",
966
+ "required": true,
730
967
  "type": "string"
731
968
  },
732
969
  {
@@ -741,18 +978,51 @@
741
978
  ],
742
979
  "synonyms": "ask, converse, request",
743
980
  "tier": "domain"
981
+ },
982
+ {
983
+ "description": "The conversation finished loading.",
984
+ "id": "evt_01M3TYMQH87K7NK4H6DHKPYPM6",
985
+ "key": "AgentMessagesLoaded",
986
+ "name": "AgentMessage s loaded",
987
+ "payloadSchema": [
988
+ {
989
+ "entity": "AgentMessage",
990
+ "name": "data",
991
+ "properties": [
992
+ {
993
+ "name": "id",
994
+ "required": true,
995
+ "type": "string"
996
+ },
997
+ {
998
+ "name": "ownerId",
999
+ "required": true,
1000
+ "type": "string"
1001
+ },
1002
+ {
1003
+ "name": "role",
1004
+ "type": "string"
1005
+ },
1006
+ {
1007
+ "name": "content",
1008
+ "required": true,
1009
+ "type": "string"
1010
+ },
1011
+ {
1012
+ "name": "createdAt",
1013
+ "type": "number"
1014
+ }
1015
+ ],
1016
+ "type": "[object]"
1017
+ }
1018
+ ],
1019
+ "tier": "internal"
744
1020
  }
745
1021
  ],
746
1022
  "states": [
747
1023
  {
748
1024
  "isInitial": true,
749
- "name": "loading"
750
- },
751
- {
752
- "name": "chatting"
753
- },
754
- {
755
- "name": "waiting"
1025
+ "name": "ready"
756
1026
  }
757
1027
  ],
758
1028
  "transitions": [
@@ -767,245 +1037,19 @@
767
1037
  "success": "AgentMessagesLoaded"
768
1038
  }
769
1039
  }
770
- ],
771
- [
772
- "render-ui",
773
- "main",
774
- {
775
- "children": [
776
- {
777
- "type": "skeleton",
778
- "variant": "header"
779
- },
780
- {
781
- "rows": 6.0,
782
- "type": "skeleton",
783
- "variant": "list"
784
- }
785
- ],
786
- "direction": "vertical",
787
- "gap": "lg",
788
- "type": "stack"
789
- }
790
1040
  ]
791
1041
  ],
792
1042
  "event": "INIT",
793
1043
  "eventId": "evt_01M3TYMQH81AV51TX8HBD3BVVY",
794
- "from": "loading",
795
- "to": "loading"
1044
+ "from": "ready",
1045
+ "to": "ready"
796
1046
  },
797
1047
  {
798
1048
  "effects": [
799
1049
  [
800
- "render-ui",
801
- "main",
802
- {
803
- "children": [
804
- {
805
- "content": "@config.title",
806
- "type": "typography",
807
- "variant": "h4"
808
- },
809
- {
810
- "children": [
811
- "array/map",
812
- "@config.links",
813
- [
814
- "fn",
815
- "item",
816
- {
817
- "href": "@item.href",
818
- "label": "@item.label",
819
- "type": "button",
820
- "variant": "ghost"
821
- }
822
- ]
823
- ],
824
- "direction": "horizontal",
825
- "gap": "sm",
826
- "type": "stack"
827
- },
828
- {
829
- "entity": [
830
- "array/sort",
831
- "@payload.data",
832
- "createdAt",
833
- "asc"
834
- ],
835
- "fields": [],
836
- "gap": "sm",
837
- "renderItem": [
838
- "fn",
839
- "item",
840
- {
841
- "children": [
842
- {
843
- "label": "@item.role",
844
- "size": "sm",
845
- "type": "badge",
846
- "variant": "neutral"
847
- },
848
- {
849
- "content": "@item.content",
850
- "type": "typography",
851
- "variant": "body"
852
- }
853
- ],
854
- "direction": "vertical",
855
- "gap": "xs",
856
- "type": "stack"
857
- }
858
- ],
859
- "type": "data-list"
860
- },
861
- {
862
- "children": [
863
- {
864
- "aria-label": "Message",
865
- "onChange": "EDIT_MESSAGE",
866
- "placeholder": "@config.placeholder",
867
- "type": "textarea"
868
- },
869
- {
870
- "action": "SEND_DRAFT",
871
- "icon": "send",
872
- "label": "Send",
873
- "type": "button",
874
- "variant": "primary"
875
- }
876
- ],
877
- "direction": "horizontal",
878
- "gap": "sm",
879
- "type": "stack"
880
- }
881
- ],
882
- "direction": "vertical",
883
- "gap": "md",
884
- "type": "stack"
885
- }
886
- ]
887
- ],
888
- "event": "AgentMessagesLoaded",
889
- "eventId": "evt_01M3TYMQH87K7NK4H6DHKPYPM6",
890
- "from": "loading",
891
- "to": "chatting"
892
- },
893
- {
894
- "effects": [
895
- [
896
- "render-ui",
897
- "main",
898
- {
899
- "message": "@payload.error",
900
- "type": "alert",
901
- "variant": "error"
902
- }
903
- ]
904
- ],
905
- "event": "AgentMessagesLoadFailed",
906
- "eventId": "evt_01M3TYMQH8BHTWREJV617WFH68",
907
- "from": "loading",
908
- "to": "chatting"
909
- },
910
- {
911
- "effects": [
912
- [
913
- "fetch",
914
- "AgentMessage",
915
- {
916
- "emit": {
917
- "failure": "AgentMessagesLoadFailed",
918
- "success": "AgentMessagesLoaded"
919
- }
920
- }
921
- ],
922
- [
923
- "render-ui",
924
- "main",
925
- {
926
- "children": [
927
- {
928
- "type": "skeleton",
929
- "variant": "header"
930
- },
931
- {
932
- "rows": 6.0,
933
- "type": "skeleton",
934
- "variant": "list"
935
- }
936
- ],
937
- "direction": "vertical",
938
- "gap": "lg",
939
- "type": "stack"
940
- }
941
- ]
942
- ],
943
- "event": "INIT",
944
- "eventId": "evt_01M3TYMQH81AV51TX8HBD3BVVY",
945
- "from": "chatting",
946
- "to": "loading"
947
- },
948
- {
949
- "effects": [
950
- [
951
- "set",
952
- "@entity.draft",
953
- "@payload.value"
954
- ]
955
- ],
956
- "event": "EDIT_MESSAGE",
957
- "eventId": "evt_01M3TYMQH8HHGS90VQR6Y0RK1K",
958
- "from": "chatting",
959
- "to": "chatting"
960
- },
961
- {
962
- "effects": [
963
- [
964
- "persist",
965
- "create",
966
- "AgentMessage",
967
- {
968
- "content": "@entity.draft",
969
- "createdAt": "@now",
970
- "ownerId": "@user.id",
971
- "role": "user"
972
- },
973
- {
974
- "emit": {
975
- "failure": "AgentMessageSaveFailed",
976
- "success": "AgentMessageSaved"
977
- }
978
- }
979
- ],
980
- [
981
- "set",
982
- "@entity.draft",
983
- ""
984
- ]
985
- ],
986
- "event": "SEND_DRAFT",
987
- "eventId": "evt_01M3TYMQH8RCRDSVZ3DQ6DZ2YF",
988
- "from": "chatting",
989
- "guard": [
990
- "not",
991
- [
992
- "=",
993
- [
994
- "str/default",
995
- "@entity.draft",
996
- ""
997
- ],
998
- ""
999
- ]
1000
- ],
1001
- "to": "waiting"
1002
- },
1003
- {
1004
- "effects": [
1005
- [
1006
- "persist",
1007
- "create",
1008
- "AgentMessage",
1050
+ "persist",
1051
+ "create",
1052
+ "AgentMessage",
1009
1053
  {
1010
1054
  "content": "@payload.message",
1011
1055
  "createdAt": "@now",
@@ -1022,7 +1066,7 @@
1022
1066
  ],
1023
1067
  "event": "SEND",
1024
1068
  "eventId": "evt_01M3TYMQH87CAV0ETMWW6P6W6P",
1025
- "from": "chatting",
1069
+ "from": "ready",
1026
1070
  "guard": [
1027
1071
  "not",
1028
1072
  [
@@ -1035,54 +1079,7 @@
1035
1079
  ""
1036
1080
  ]
1037
1081
  ],
1038
- "to": "waiting"
1039
- },
1040
- {
1041
- "effects": [
1042
- [
1043
- "persist",
1044
- "create",
1045
- "AgentMessage",
1046
- {
1047
- "content": "@payload.reply",
1048
- "createdAt": "@now",
1049
- "ownerId": "@user.id",
1050
- "role": "assistant"
1051
- }
1052
- ],
1053
- [
1054
- "fetch",
1055
- "AgentMessage",
1056
- {
1057
- "emit": {
1058
- "failure": "AgentMessagesLoadFailed",
1059
- "success": "AgentMessagesLoaded"
1060
- }
1061
- }
1062
- ]
1063
- ],
1064
- "event": "REPLIED",
1065
- "eventId": "evt_01M3TYMQH8PJZ22902FWBBMMK4",
1066
- "from": "chatting",
1067
- "to": "loading"
1068
- },
1069
- {
1070
- "effects": [
1071
- [
1072
- "fetch",
1073
- "AgentMessage",
1074
- {
1075
- "emit": {
1076
- "failure": "AgentMessagesLoadFailed",
1077
- "success": "AgentMessagesLoaded"
1078
- }
1079
- }
1080
- ]
1081
- ],
1082
- "event": "REPLY_FAILED",
1083
- "eventId": "evt_01M3TYMQH844NH7EYEBPA4XVG6",
1084
- "from": "chatting",
1085
- "to": "loading"
1082
+ "to": "ready"
1086
1083
  },
1087
1084
  {
1088
1085
  "effects": [
@@ -1095,20 +1092,12 @@
1095
1092
  "success": "AgentConversationLoaded"
1096
1093
  }
1097
1094
  }
1098
- ],
1099
- [
1100
- "render-ui",
1101
- "main",
1102
- {
1103
- "size": "sm",
1104
- "type": "spinner"
1105
- }
1106
1095
  ]
1107
1096
  ],
1108
1097
  "event": "AgentMessageSaved",
1109
1098
  "eventId": "evt_01M3TYMQH8ACSRY02P4HWBHJWV",
1110
- "from": "waiting",
1111
- "to": "waiting"
1099
+ "from": "ready",
1100
+ "to": "ready"
1112
1101
  },
1113
1102
  {
1114
1103
  "effects": [
@@ -1138,8 +1127,8 @@
1138
1127
  ],
1139
1128
  "event": "AgentConversationLoaded",
1140
1129
  "eventId": "evt_01M3TYMQH8H65NTWP1KYX7WM6C",
1141
- "from": "waiting",
1142
- "to": "waiting"
1130
+ "from": "ready",
1131
+ "to": "ready"
1143
1132
  },
1144
1133
  {
1145
1134
  "effects": [
@@ -1153,46 +1142,25 @@
1153
1142
  "ownerId": "@user.id",
1154
1143
  "role": "assistant"
1155
1144
  }
1156
- ],
1157
- [
1158
- "fetch",
1159
- "AgentMessage",
1160
- {
1161
- "emit": {
1162
- "failure": "AgentMessagesLoadFailed",
1163
- "success": "AgentMessagesLoaded"
1164
- }
1165
- }
1166
1145
  ]
1167
1146
  ],
1168
1147
  "event": "REPLIED",
1169
1148
  "eventId": "evt_01M3TYMQH8PJZ22902FWBBMMK4",
1170
- "from": "waiting",
1171
- "to": "loading"
1149
+ "from": "ready",
1150
+ "to": "ready"
1172
1151
  },
1173
1152
  {
1174
1153
  "effects": [
1175
1154
  [
1176
- "fetch",
1177
- "AgentMessage",
1155
+ "emit",
1156
+ "THREAD_FAILED",
1178
1157
  {
1179
- "emit": {
1180
- "failure": "AgentMessagesLoadFailed",
1181
- "success": "AgentMessagesLoaded"
1182
- }
1158
+ "error": "@payload.error"
1183
1159
  }
1184
- ]
1185
- ],
1186
- "event": "REPLY_FAILED",
1187
- "eventId": "evt_01M3TYMQH844NH7EYEBPA4XVG6",
1188
- "from": "waiting",
1189
- "to": "loading"
1190
- },
1191
- {
1192
- "effects": [
1160
+ ],
1193
1161
  [
1194
1162
  "render-ui",
1195
- "main",
1163
+ "toast",
1196
1164
  {
1197
1165
  "message": "@payload.error",
1198
1166
  "type": "alert",
@@ -1200,16 +1168,23 @@
1200
1168
  }
1201
1169
  ]
1202
1170
  ],
1203
- "event": "AgentMessageSaveFailed",
1204
- "eventId": "evt_01M3TYMQH8CEE16439Z6N25V08",
1205
- "from": "waiting",
1206
- "to": "chatting"
1171
+ "event": "AgentMessagesLoadFailed",
1172
+ "eventId": "evt_01M3TYMQH8BHTWREJV617WFH68",
1173
+ "from": "ready",
1174
+ "to": "ready"
1207
1175
  },
1208
1176
  {
1209
1177
  "effects": [
1178
+ [
1179
+ "emit",
1180
+ "THREAD_FAILED",
1181
+ {
1182
+ "error": "@payload.error"
1183
+ }
1184
+ ],
1210
1185
  [
1211
1186
  "render-ui",
1212
- "main",
1187
+ "toast",
1213
1188
  {
1214
1189
  "message": "@payload.error",
1215
1190
  "type": "alert",
@@ -1217,26 +1192,719 @@
1217
1192
  }
1218
1193
  ]
1219
1194
  ],
1220
- "event": "AgentMessagesLoadFailed",
1221
- "eventId": "evt_01M3TYMQH8BHTWREJV617WFH68",
1222
- "from": "waiting",
1223
- "to": "chatting"
1195
+ "event": "AgentMessageSaveFailed",
1196
+ "eventId": "evt_01M3TYMQH8CEE16439Z6N25V08",
1197
+ "from": "ready",
1198
+ "to": "ready"
1224
1199
  }
1225
1200
  ]
1226
1201
  }
1227
- }
1228
- ],
1229
- "types": {
1230
- "AgentChatMessage": [
1231
- {
1232
- "name": "role",
1233
- "type": "string"
1202
+ },
1203
+ {
1204
+ "category": "interaction",
1205
+ "config": {
1206
+ "emptyTitle": {
1207
+ "default": "Ask me to do something in this app",
1208
+ "label": "Empty conversation title",
1209
+ "tier": "presentation",
1210
+ "type": "string"
1211
+ },
1212
+ "links": {
1213
+ "default": [],
1214
+ "description": "Related pages (e.g. the run history).",
1215
+ "items": {
1216
+ "properties": {
1217
+ "href": {
1218
+ "name": "href",
1219
+ "required": true,
1220
+ "type": "string"
1221
+ },
1222
+ "label": {
1223
+ "name": "label",
1224
+ "required": true,
1225
+ "type": "string"
1226
+ }
1227
+ },
1228
+ "type": "object"
1229
+ },
1230
+ "label": "Links above the conversation",
1231
+ "tier": "presentation",
1232
+ "type": "[AgentLink]"
1233
+ },
1234
+ "placeholder": {
1235
+ "default": "Ask the assistant…",
1236
+ "label": "Message placeholder",
1237
+ "tier": "presentation",
1238
+ "type": "string"
1239
+ }
1234
1240
  },
1235
- {
1236
- "name": "content",
1237
- "required": true,
1238
- "type": "string"
1239
- }
1241
+ "effectRow": [
1242
+ {
1243
+ "kind": "emit",
1244
+ "resource": "SEND"
1245
+ },
1246
+ {
1247
+ "kind": "render-ui",
1248
+ "resource": "main"
1249
+ },
1250
+ {
1251
+ "kind": "set",
1252
+ "resource": "@entity.entries"
1253
+ },
1254
+ {
1255
+ "kind": "set",
1256
+ "resource": "@entity.working"
1257
+ }
1258
+ ],
1259
+ "emits": [
1260
+ {
1261
+ "description": "The user asked something; AgentThread stores it and asks the assistant.",
1262
+ "event": "SEND",
1263
+ "eventId": "evt_01M3WC4PY16PAX6BAR4QCWZMJR",
1264
+ "payloadSchema": [
1265
+ {
1266
+ "name": "message",
1267
+ "required": true,
1268
+ "type": "string"
1269
+ }
1270
+ ],
1271
+ "scope": "external",
1272
+ "synonyms": "ask, send, submit",
1273
+ "tier": "domain"
1274
+ },
1275
+ {
1276
+ "description": "Send the typed message.",
1277
+ "event": "ASK",
1278
+ "eventId": "evt_01M3WC4PY1TK0PTERMDE5BWR5W",
1279
+ "payloadSchema": [
1280
+ {
1281
+ "name": "message",
1282
+ "required": true,
1283
+ "type": "string"
1284
+ }
1285
+ ],
1286
+ "synonyms": "send, ask, submit",
1287
+ "tier": "presentation"
1288
+ }
1289
+ ],
1290
+ "entityContract": {
1291
+ "provides": [
1292
+ "entries",
1293
+ "working"
1294
+ ],
1295
+ "requires": []
1296
+ },
1297
+ "entityRebindable": true,
1298
+ "entityRefIds": {
1299
+ "AgentConversationView": "ent_01M3WC4PY11QN1558Y1ZV83259"
1300
+ },
1301
+ "id": "trt_01M3WC4PY19N3FHQ4JQF6R9SA4",
1302
+ "linkedEntity": "AgentConversationView",
1303
+ "linkedEntityId": "ent_01M3WC4PY11QN1558Y1ZV83259",
1304
+ "listens": [
1305
+ {
1306
+ "event": "AgentMessagesLoaded",
1307
+ "eventId": "evt_01M3TYMQH87K7NK4H6DHKPYPM6",
1308
+ "source": {
1309
+ "kind": "trait",
1310
+ "trait": "AgentThread",
1311
+ "traitId": "trt_01M3TYMQH8QP9883EWJYRT49M8"
1312
+ },
1313
+ "triggers": "THREAD_LOADED",
1314
+ "triggersId": "evt_01M3WC4PY11N0BPZ1WZMMGJGR8"
1315
+ },
1316
+ {
1317
+ "event": "THREAD_FAILED",
1318
+ "eventId": "evt_01M3WC4PY1SBZM2NR5EQ1JARQK",
1319
+ "source": {
1320
+ "kind": "trait",
1321
+ "trait": "AgentThread",
1322
+ "traitId": "trt_01M3TYMQH8QP9883EWJYRT49M8"
1323
+ },
1324
+ "triggers": "REPLY_FAILED",
1325
+ "triggersId": "evt_01M3WC4PY1FP4JAXE259KW86F8"
1326
+ }
1327
+ ],
1328
+ "name": "AgentConversation",
1329
+ "scope": "instance",
1330
+ "stateMachine": {
1331
+ "events": [
1332
+ {
1333
+ "id": "evt_01M3WC4PY186J45C1NERG11RG8",
1334
+ "key": "INIT",
1335
+ "name": "Initialize"
1336
+ },
1337
+ {
1338
+ "description": "Show the stored conversation.",
1339
+ "id": "evt_01M3WC4PY11N0BPZ1WZMMGJGR8",
1340
+ "key": "THREAD_LOADED",
1341
+ "name": "Thread Loaded",
1342
+ "payloadSchema": [
1343
+ {
1344
+ "name": "data",
1345
+ "properties": [
1346
+ {
1347
+ "name": "role",
1348
+ "required": true,
1349
+ "type": "string"
1350
+ },
1351
+ {
1352
+ "name": "content",
1353
+ "required": true,
1354
+ "type": "string"
1355
+ },
1356
+ {
1357
+ "name": "createdAt",
1358
+ "type": "number"
1359
+ }
1360
+ ],
1361
+ "type": "[object]"
1362
+ }
1363
+ ]
1364
+ },
1365
+ {
1366
+ "description": "Send the typed message.",
1367
+ "id": "evt_01M3WC4PY1TK0PTERMDE5BWR5W",
1368
+ "key": "ASK",
1369
+ "name": "Ask",
1370
+ "payloadSchema": [
1371
+ {
1372
+ "name": "message",
1373
+ "required": true,
1374
+ "type": "string"
1375
+ }
1376
+ ],
1377
+ "synonyms": "send, ask, submit",
1378
+ "tier": "presentation"
1379
+ },
1380
+ {
1381
+ "description": "One step the assistant just took, shown as it happens.",
1382
+ "id": "evt_01M3WC4PY1REQ5RNNQBSR6JFXP",
1383
+ "key": "STEP",
1384
+ "name": "Step",
1385
+ "payloadSchema": [
1386
+ {
1387
+ "name": "activity",
1388
+ "required": true,
1389
+ "type": "AgentActivity"
1390
+ }
1391
+ ],
1392
+ "synonyms": "progress, activity, working"
1393
+ },
1394
+ {
1395
+ "description": "The assistant answered.",
1396
+ "id": "evt_01M3WC4PY17CBXZBP39ZBSYT2B",
1397
+ "key": "REPLIED",
1398
+ "name": "Replied",
1399
+ "payloadSchema": [
1400
+ {
1401
+ "name": "reply",
1402
+ "required": true,
1403
+ "type": "string"
1404
+ }
1405
+ ]
1406
+ },
1407
+ {
1408
+ "description": "The assistant could not answer.",
1409
+ "id": "evt_01M3WC4PY1FP4JAXE259KW86F8",
1410
+ "key": "REPLY_FAILED",
1411
+ "name": "Reply Failed",
1412
+ "payloadSchema": [
1413
+ {
1414
+ "name": "error",
1415
+ "required": true,
1416
+ "type": "string"
1417
+ }
1418
+ ]
1419
+ },
1420
+ {
1421
+ "description": "The user asked something; AgentThread stores it and asks the assistant.",
1422
+ "id": "evt_01M3WC4PY16PAX6BAR4QCWZMJR",
1423
+ "key": "SEND",
1424
+ "name": "Send",
1425
+ "payloadSchema": [
1426
+ {
1427
+ "name": "message",
1428
+ "required": true,
1429
+ "type": "string"
1430
+ }
1431
+ ],
1432
+ "synonyms": "ask, send, submit",
1433
+ "tier": "domain"
1434
+ }
1435
+ ],
1436
+ "states": [
1437
+ {
1438
+ "isInitial": true,
1439
+ "name": "idle"
1440
+ }
1441
+ ],
1442
+ "transitions": [
1443
+ {
1444
+ "effects": [
1445
+ [
1446
+ "render-ui",
1447
+ "main",
1448
+ {
1449
+ "children": [
1450
+ {
1451
+ "children": [
1452
+ "array/map",
1453
+ "@config.links",
1454
+ [
1455
+ "fn",
1456
+ "item",
1457
+ {
1458
+ "href": "@item.href",
1459
+ "label": "@item.label",
1460
+ "type": "button",
1461
+ "variant": "ghost"
1462
+ }
1463
+ ]
1464
+ ],
1465
+ "direction": "horizontal",
1466
+ "gap": "sm",
1467
+ "type": "stack"
1468
+ },
1469
+ {
1470
+ "activities": "@entity.entries",
1471
+ "className": "flex-1",
1472
+ "emptyTitle": "@config.emptyTitle",
1473
+ "idPrefix": "agent-conversation",
1474
+ "rawLlmPreferenceKey": "agent-conversation-raw-llm",
1475
+ "type": "agent-chat-feed",
1476
+ "working": "@entity.working"
1477
+ },
1478
+ {
1479
+ "placeholder": "@config.placeholder",
1480
+ "sendEvent": "ASK",
1481
+ "type": "chat-bar"
1482
+ }
1483
+ ],
1484
+ "className": "h-full min-h-0 flex-1",
1485
+ "direction": "vertical",
1486
+ "gap": "sm",
1487
+ "type": "stack"
1488
+ }
1489
+ ]
1490
+ ],
1491
+ "event": "INIT",
1492
+ "eventId": "evt_01M3WC4PY186J45C1NERG11RG8",
1493
+ "from": "idle",
1494
+ "to": "idle"
1495
+ },
1496
+ {
1497
+ "effects": [
1498
+ [
1499
+ "set",
1500
+ "@entity.entries",
1501
+ [
1502
+ "array/map",
1503
+ [
1504
+ "array/sort",
1505
+ "@payload.data",
1506
+ "createdAt",
1507
+ "asc"
1508
+ ],
1509
+ [
1510
+ "fn",
1511
+ "item",
1512
+ {
1513
+ "content": "@item.content",
1514
+ "role": "@item.role",
1515
+ "timestamp": "@item.createdAt",
1516
+ "type": "message"
1517
+ }
1518
+ ]
1519
+ ]
1520
+ ],
1521
+ [
1522
+ "render-ui",
1523
+ "main",
1524
+ {
1525
+ "children": [
1526
+ {
1527
+ "children": [
1528
+ "array/map",
1529
+ "@config.links",
1530
+ [
1531
+ "fn",
1532
+ "item",
1533
+ {
1534
+ "href": "@item.href",
1535
+ "label": "@item.label",
1536
+ "type": "button",
1537
+ "variant": "ghost"
1538
+ }
1539
+ ]
1540
+ ],
1541
+ "direction": "horizontal",
1542
+ "gap": "sm",
1543
+ "type": "stack"
1544
+ },
1545
+ {
1546
+ "activities": "@entity.entries",
1547
+ "className": "flex-1",
1548
+ "emptyTitle": "@config.emptyTitle",
1549
+ "idPrefix": "agent-conversation",
1550
+ "rawLlmPreferenceKey": "agent-conversation-raw-llm",
1551
+ "type": "agent-chat-feed",
1552
+ "working": "@entity.working"
1553
+ },
1554
+ {
1555
+ "placeholder": "@config.placeholder",
1556
+ "sendEvent": "ASK",
1557
+ "type": "chat-bar"
1558
+ }
1559
+ ],
1560
+ "className": "h-full min-h-0 flex-1",
1561
+ "direction": "vertical",
1562
+ "gap": "sm",
1563
+ "type": "stack"
1564
+ }
1565
+ ]
1566
+ ],
1567
+ "event": "THREAD_LOADED",
1568
+ "eventId": "evt_01M3WC4PY11N0BPZ1WZMMGJGR8",
1569
+ "from": "idle",
1570
+ "to": "idle"
1571
+ },
1572
+ {
1573
+ "effects": [
1574
+ [
1575
+ "set",
1576
+ "@entity.entries",
1577
+ [
1578
+ "array/append",
1579
+ "@entity.entries",
1580
+ {
1581
+ "content": "@payload.message",
1582
+ "role": "user",
1583
+ "timestamp": "@now",
1584
+ "type": "message"
1585
+ }
1586
+ ]
1587
+ ],
1588
+ [
1589
+ "set",
1590
+ "@entity.working",
1591
+ true
1592
+ ],
1593
+ [
1594
+ "emit",
1595
+ "SEND",
1596
+ {
1597
+ "message": "@payload.message"
1598
+ }
1599
+ ],
1600
+ [
1601
+ "render-ui",
1602
+ "main",
1603
+ {
1604
+ "children": [
1605
+ {
1606
+ "children": [
1607
+ "array/map",
1608
+ "@config.links",
1609
+ [
1610
+ "fn",
1611
+ "item",
1612
+ {
1613
+ "href": "@item.href",
1614
+ "label": "@item.label",
1615
+ "type": "button",
1616
+ "variant": "ghost"
1617
+ }
1618
+ ]
1619
+ ],
1620
+ "direction": "horizontal",
1621
+ "gap": "sm",
1622
+ "type": "stack"
1623
+ },
1624
+ {
1625
+ "activities": "@entity.entries",
1626
+ "className": "flex-1",
1627
+ "emptyTitle": "@config.emptyTitle",
1628
+ "idPrefix": "agent-conversation",
1629
+ "rawLlmPreferenceKey": "agent-conversation-raw-llm",
1630
+ "type": "agent-chat-feed",
1631
+ "working": "@entity.working"
1632
+ },
1633
+ {
1634
+ "placeholder": "@config.placeholder",
1635
+ "sendEvent": "ASK",
1636
+ "type": "chat-bar"
1637
+ }
1638
+ ],
1639
+ "className": "h-full min-h-0 flex-1",
1640
+ "direction": "vertical",
1641
+ "gap": "sm",
1642
+ "type": "stack"
1643
+ }
1644
+ ]
1645
+ ],
1646
+ "event": "ASK",
1647
+ "eventId": "evt_01M3WC4PY1TK0PTERMDE5BWR5W",
1648
+ "from": "idle",
1649
+ "guard": [
1650
+ "and",
1651
+ [
1652
+ "not",
1653
+ "@entity.working"
1654
+ ],
1655
+ [
1656
+ "not",
1657
+ [
1658
+ "=",
1659
+ [
1660
+ "str/default",
1661
+ "@payload.message",
1662
+ ""
1663
+ ],
1664
+ ""
1665
+ ]
1666
+ ]
1667
+ ],
1668
+ "to": "idle"
1669
+ },
1670
+ {
1671
+ "effects": [
1672
+ [
1673
+ "set",
1674
+ "@entity.entries",
1675
+ [
1676
+ "array/append",
1677
+ "@entity.entries",
1678
+ "@payload.activity"
1679
+ ]
1680
+ ],
1681
+ [
1682
+ "render-ui",
1683
+ "main",
1684
+ {
1685
+ "children": [
1686
+ {
1687
+ "children": [
1688
+ "array/map",
1689
+ "@config.links",
1690
+ [
1691
+ "fn",
1692
+ "item",
1693
+ {
1694
+ "href": "@item.href",
1695
+ "label": "@item.label",
1696
+ "type": "button",
1697
+ "variant": "ghost"
1698
+ }
1699
+ ]
1700
+ ],
1701
+ "direction": "horizontal",
1702
+ "gap": "sm",
1703
+ "type": "stack"
1704
+ },
1705
+ {
1706
+ "activities": "@entity.entries",
1707
+ "className": "flex-1",
1708
+ "emptyTitle": "@config.emptyTitle",
1709
+ "idPrefix": "agent-conversation",
1710
+ "rawLlmPreferenceKey": "agent-conversation-raw-llm",
1711
+ "type": "agent-chat-feed",
1712
+ "working": "@entity.working"
1713
+ },
1714
+ {
1715
+ "placeholder": "@config.placeholder",
1716
+ "sendEvent": "ASK",
1717
+ "type": "chat-bar"
1718
+ }
1719
+ ],
1720
+ "className": "h-full min-h-0 flex-1",
1721
+ "direction": "vertical",
1722
+ "gap": "sm",
1723
+ "type": "stack"
1724
+ }
1725
+ ]
1726
+ ],
1727
+ "event": "STEP",
1728
+ "eventId": "evt_01M3WC4PY1REQ5RNNQBSR6JFXP",
1729
+ "from": "idle",
1730
+ "to": "idle"
1731
+ },
1732
+ {
1733
+ "effects": [
1734
+ [
1735
+ "set",
1736
+ "@entity.entries",
1737
+ [
1738
+ "array/append",
1739
+ "@entity.entries",
1740
+ {
1741
+ "content": "@payload.reply",
1742
+ "role": "assistant",
1743
+ "timestamp": "@now",
1744
+ "type": "message"
1745
+ }
1746
+ ]
1747
+ ],
1748
+ [
1749
+ "set",
1750
+ "@entity.working",
1751
+ false
1752
+ ],
1753
+ [
1754
+ "render-ui",
1755
+ "main",
1756
+ {
1757
+ "children": [
1758
+ {
1759
+ "children": [
1760
+ "array/map",
1761
+ "@config.links",
1762
+ [
1763
+ "fn",
1764
+ "item",
1765
+ {
1766
+ "href": "@item.href",
1767
+ "label": "@item.label",
1768
+ "type": "button",
1769
+ "variant": "ghost"
1770
+ }
1771
+ ]
1772
+ ],
1773
+ "direction": "horizontal",
1774
+ "gap": "sm",
1775
+ "type": "stack"
1776
+ },
1777
+ {
1778
+ "activities": "@entity.entries",
1779
+ "className": "flex-1",
1780
+ "emptyTitle": "@config.emptyTitle",
1781
+ "idPrefix": "agent-conversation",
1782
+ "rawLlmPreferenceKey": "agent-conversation-raw-llm",
1783
+ "type": "agent-chat-feed",
1784
+ "working": "@entity.working"
1785
+ },
1786
+ {
1787
+ "placeholder": "@config.placeholder",
1788
+ "sendEvent": "ASK",
1789
+ "type": "chat-bar"
1790
+ }
1791
+ ],
1792
+ "className": "h-full min-h-0 flex-1",
1793
+ "direction": "vertical",
1794
+ "gap": "sm",
1795
+ "type": "stack"
1796
+ }
1797
+ ]
1798
+ ],
1799
+ "event": "REPLIED",
1800
+ "eventId": "evt_01M3WC4PY17CBXZBP39ZBSYT2B",
1801
+ "from": "idle",
1802
+ "to": "idle"
1803
+ },
1804
+ {
1805
+ "effects": [
1806
+ [
1807
+ "set",
1808
+ "@entity.entries",
1809
+ [
1810
+ "array/append",
1811
+ "@entity.entries",
1812
+ {
1813
+ "message": "@payload.error",
1814
+ "timestamp": "@now",
1815
+ "type": "error"
1816
+ }
1817
+ ]
1818
+ ],
1819
+ [
1820
+ "set",
1821
+ "@entity.working",
1822
+ false
1823
+ ],
1824
+ [
1825
+ "render-ui",
1826
+ "main",
1827
+ {
1828
+ "children": [
1829
+ {
1830
+ "children": [
1831
+ "array/map",
1832
+ "@config.links",
1833
+ [
1834
+ "fn",
1835
+ "item",
1836
+ {
1837
+ "href": "@item.href",
1838
+ "label": "@item.label",
1839
+ "type": "button",
1840
+ "variant": "ghost"
1841
+ }
1842
+ ]
1843
+ ],
1844
+ "direction": "horizontal",
1845
+ "gap": "sm",
1846
+ "type": "stack"
1847
+ },
1848
+ {
1849
+ "activities": "@entity.entries",
1850
+ "className": "flex-1",
1851
+ "emptyTitle": "@config.emptyTitle",
1852
+ "idPrefix": "agent-conversation",
1853
+ "rawLlmPreferenceKey": "agent-conversation-raw-llm",
1854
+ "type": "agent-chat-feed",
1855
+ "working": "@entity.working"
1856
+ },
1857
+ {
1858
+ "placeholder": "@config.placeholder",
1859
+ "sendEvent": "ASK",
1860
+ "type": "chat-bar"
1861
+ }
1862
+ ],
1863
+ "className": "h-full min-h-0 flex-1",
1864
+ "direction": "vertical",
1865
+ "gap": "sm",
1866
+ "type": "stack"
1867
+ }
1868
+ ]
1869
+ ],
1870
+ "event": "REPLY_FAILED",
1871
+ "eventId": "evt_01M3WC4PY1FP4JAXE259KW86F8",
1872
+ "from": "idle",
1873
+ "to": "idle"
1874
+ }
1875
+ ]
1876
+ }
1877
+ }
1878
+ ],
1879
+ "types": {
1880
+ "AgentChatMessage": [
1881
+ {
1882
+ "name": "role",
1883
+ "required": true,
1884
+ "type": "string"
1885
+ },
1886
+ {
1887
+ "name": "content",
1888
+ "required": true,
1889
+ "type": "string"
1890
+ }
1891
+ ],
1892
+ "AgentErrorEntry": [
1893
+ {
1894
+ "name": "type",
1895
+ "required": true,
1896
+ "type": "string"
1897
+ },
1898
+ {
1899
+ "name": "message",
1900
+ "required": true,
1901
+ "type": "string"
1902
+ },
1903
+ {
1904
+ "name": "timestamp",
1905
+ "required": true,
1906
+ "type": "number"
1907
+ }
1240
1908
  ],
1241
1909
  "AgentLink": [
1242
1910
  {
@@ -1249,10 +1917,250 @@
1249
1917
  "required": true,
1250
1918
  "type": "string"
1251
1919
  }
1920
+ ],
1921
+ "AgentLlmCall": [
1922
+ {
1923
+ "name": "service",
1924
+ "required": true,
1925
+ "type": "string"
1926
+ },
1927
+ {
1928
+ "name": "provider",
1929
+ "required": true,
1930
+ "type": "string"
1931
+ },
1932
+ {
1933
+ "name": "model",
1934
+ "required": true,
1935
+ "type": "string"
1936
+ },
1937
+ {
1938
+ "name": "systemPrompt",
1939
+ "required": true,
1940
+ "type": "string"
1941
+ },
1942
+ {
1943
+ "name": "userPrompt",
1944
+ "required": true,
1945
+ "type": "string"
1946
+ },
1947
+ {
1948
+ "name": "toolCallsJson",
1949
+ "type": "string"
1950
+ },
1951
+ {
1952
+ "name": "attempt",
1953
+ "type": "number"
1954
+ },
1955
+ {
1956
+ "name": "durationMs",
1957
+ "required": true,
1958
+ "type": "number"
1959
+ },
1960
+ {
1961
+ "name": "promptTokens",
1962
+ "type": "number"
1963
+ },
1964
+ {
1965
+ "name": "completionTokens",
1966
+ "type": "number"
1967
+ },
1968
+ {
1969
+ "name": "cachedPromptTokens",
1970
+ "type": "number"
1971
+ },
1972
+ {
1973
+ "name": "costUSD",
1974
+ "type": "number"
1975
+ }
1976
+ ],
1977
+ "AgentLlmResponseActivity": [
1978
+ {
1979
+ "name": "type",
1980
+ "required": true,
1981
+ "type": "string"
1982
+ },
1983
+ {
1984
+ "name": "content",
1985
+ "required": true,
1986
+ "type": "string"
1987
+ },
1988
+ {
1989
+ "name": "llm",
1990
+ "properties": [
1991
+ {
1992
+ "name": "service",
1993
+ "required": true,
1994
+ "type": "string"
1995
+ },
1996
+ {
1997
+ "name": "provider",
1998
+ "required": true,
1999
+ "type": "string"
2000
+ },
2001
+ {
2002
+ "name": "model",
2003
+ "required": true,
2004
+ "type": "string"
2005
+ },
2006
+ {
2007
+ "name": "systemPrompt",
2008
+ "required": true,
2009
+ "type": "string"
2010
+ },
2011
+ {
2012
+ "name": "userPrompt",
2013
+ "required": true,
2014
+ "type": "string"
2015
+ },
2016
+ {
2017
+ "name": "toolCallsJson",
2018
+ "type": "string"
2019
+ },
2020
+ {
2021
+ "name": "attempt",
2022
+ "type": "number"
2023
+ },
2024
+ {
2025
+ "name": "durationMs",
2026
+ "required": true,
2027
+ "type": "number"
2028
+ },
2029
+ {
2030
+ "name": "promptTokens",
2031
+ "type": "number"
2032
+ },
2033
+ {
2034
+ "name": "completionTokens",
2035
+ "type": "number"
2036
+ },
2037
+ {
2038
+ "name": "cachedPromptTokens",
2039
+ "type": "number"
2040
+ },
2041
+ {
2042
+ "name": "costUSD",
2043
+ "type": "number"
2044
+ }
2045
+ ],
2046
+ "type": "object"
2047
+ },
2048
+ {
2049
+ "name": "timestamp",
2050
+ "required": true,
2051
+ "type": "number"
2052
+ }
2053
+ ],
2054
+ "AgentMessageEntry": [
2055
+ {
2056
+ "name": "type",
2057
+ "required": true,
2058
+ "type": "string"
2059
+ },
2060
+ {
2061
+ "name": "role",
2062
+ "required": true,
2063
+ "type": "string"
2064
+ },
2065
+ {
2066
+ "name": "content",
2067
+ "required": true,
2068
+ "type": "string"
2069
+ },
2070
+ {
2071
+ "name": "timestamp",
2072
+ "required": true,
2073
+ "type": "number"
2074
+ }
2075
+ ],
2076
+ "AgentThreadRow": [
2077
+ {
2078
+ "name": "role",
2079
+ "required": true,
2080
+ "type": "string"
2081
+ },
2082
+ {
2083
+ "name": "content",
2084
+ "required": true,
2085
+ "type": "string"
2086
+ },
2087
+ {
2088
+ "name": "createdAt",
2089
+ "type": "number"
2090
+ }
2091
+ ],
2092
+ "AgentToolCallActivity": [
2093
+ {
2094
+ "name": "type",
2095
+ "required": true,
2096
+ "type": "string"
2097
+ },
2098
+ {
2099
+ "name": "tool",
2100
+ "required": true,
2101
+ "type": "string"
2102
+ },
2103
+ {
2104
+ "name": "kind",
2105
+ "type": "AgentToolKind"
2106
+ },
2107
+ {
2108
+ "name": "argsText",
2109
+ "required": true,
2110
+ "type": "string"
2111
+ },
2112
+ {
2113
+ "name": "timestamp",
2114
+ "required": true,
2115
+ "type": "number"
2116
+ },
2117
+ {
2118
+ "name": "isExecuting",
2119
+ "type": "boolean"
2120
+ }
2121
+ ],
2122
+ "AgentToolResultActivity": [
2123
+ {
2124
+ "name": "type",
2125
+ "required": true,
2126
+ "type": "string"
2127
+ },
2128
+ {
2129
+ "name": "tool",
2130
+ "required": true,
2131
+ "type": "string"
2132
+ },
2133
+ {
2134
+ "name": "kind",
2135
+ "type": "AgentToolKind"
2136
+ },
2137
+ {
2138
+ "name": "success",
2139
+ "required": true,
2140
+ "type": "boolean"
2141
+ },
2142
+ {
2143
+ "name": "detail",
2144
+ "type": "string"
2145
+ },
2146
+ {
2147
+ "name": "rows",
2148
+ "type": "number"
2149
+ },
2150
+ {
2151
+ "name": "resultText",
2152
+ "required": true,
2153
+ "type": "string"
2154
+ },
2155
+ {
2156
+ "name": "timestamp",
2157
+ "required": true,
2158
+ "type": "number"
2159
+ }
1252
2160
  ]
1253
2161
  }
1254
2162
  }
1255
2163
  ],
1256
2164
  "schemaVersion": 1,
1257
- "version": "2.0.0"
2165
+ "version": "3.0.0"
1258
2166
  }