@almadar/std 6.5.2 → 7.2.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 (307) hide show
  1. package/behaviors/registry/atoms/std-agent-activity-log.orb +240 -227
  2. package/behaviors/registry/atoms/std-agent-chat-thread.orb +296 -199
  3. package/behaviors/registry/atoms/std-agent-classifier.orb +384 -133
  4. package/behaviors/registry/atoms/std-agent-completion.orb +404 -141
  5. package/behaviors/registry/atoms/std-agent-context-window.orb +904 -607
  6. package/behaviors/registry/atoms/std-agent-conversation.orb +443 -234
  7. package/behaviors/registry/atoms/std-agent-memory.orb +584 -150
  8. package/behaviors/registry/atoms/std-agent-provider.orb +431 -174
  9. package/behaviors/registry/atoms/std-agent-search.orb +217 -61
  10. package/behaviors/registry/atoms/std-agent-session.orb +406 -159
  11. package/behaviors/registry/atoms/std-agent-step-progress.orb +314 -294
  12. package/behaviors/registry/atoms/std-agent-token-gauge.orb +577 -500
  13. package/behaviors/registry/atoms/std-agent-tool-call.orb +328 -138
  14. package/behaviors/registry/atoms/std-async.orb +147 -86
  15. package/behaviors/registry/atoms/std-autoregressive.orb +64 -73
  16. package/behaviors/registry/atoms/std-browse.orb +260 -126
  17. package/behaviors/registry/atoms/std-cache-aside.orb +358 -259
  18. package/behaviors/registry/atoms/std-calendar.orb +280 -215
  19. package/behaviors/registry/atoms/std-circuit-breaker.orb +295 -234
  20. package/behaviors/registry/atoms/std-collision.orb +136 -135
  21. package/behaviors/registry/atoms/std-combat-log.orb +108 -90
  22. package/behaviors/registry/atoms/std-combat.orb +171 -98
  23. package/behaviors/registry/atoms/std-confirmation.orb +28 -300
  24. package/behaviors/registry/atoms/std-dialogue-box.orb +111 -30
  25. package/behaviors/registry/atoms/std-display.orb +491 -587
  26. package/behaviors/registry/atoms/std-drawer.orb +194 -121
  27. package/behaviors/registry/atoms/std-filter.orb +311 -326
  28. package/behaviors/registry/atoms/std-flip-card.orb +223 -177
  29. package/behaviors/registry/atoms/std-gallery.orb +130 -151
  30. package/behaviors/registry/atoms/std-game-audio.orb +133 -72
  31. package/behaviors/registry/atoms/std-game-canvas2d.orb +112 -52
  32. package/behaviors/registry/atoms/std-game-canvas3d.orb +150 -107
  33. package/behaviors/registry/atoms/std-game-hud.orb +87 -20
  34. package/behaviors/registry/atoms/std-game-menu.orb +32 -32
  35. package/behaviors/registry/atoms/std-game-over-screen.orb +100 -33
  36. package/behaviors/registry/atoms/std-gameflow.orb +147 -80
  37. package/behaviors/registry/atoms/std-input.orb +128 -393
  38. package/behaviors/registry/atoms/std-inventory-panel.orb +108 -71
  39. package/behaviors/registry/atoms/std-isometric-canvas.orb +156 -407
  40. package/behaviors/registry/atoms/std-loading.orb +127 -126
  41. package/behaviors/registry/atoms/std-modal.orb +30 -267
  42. package/behaviors/registry/atoms/std-movement.orb +391 -292
  43. package/behaviors/registry/atoms/std-notification.orb +133 -75
  44. package/behaviors/registry/atoms/std-overworld.orb +194 -121
  45. package/behaviors/registry/atoms/std-pagination.orb +120 -53
  46. package/behaviors/registry/atoms/std-physics2d.orb +94 -93
  47. package/behaviors/registry/atoms/std-platformer-canvas.orb +110 -98
  48. package/behaviors/registry/atoms/std-push.orb +172 -36
  49. package/behaviors/registry/atoms/std-quest.orb +552 -449
  50. package/behaviors/registry/atoms/std-rate-limiter.orb +242 -241
  51. package/behaviors/registry/atoms/std-rating.orb +123 -65
  52. package/behaviors/registry/atoms/std-related.orb +202 -26
  53. package/behaviors/registry/atoms/std-score-board.orb +109 -28
  54. package/behaviors/registry/atoms/std-score.orb +210 -146
  55. package/behaviors/registry/atoms/std-search.orb +265 -138
  56. package/behaviors/registry/atoms/std-selection.orb +311 -220
  57. package/behaviors/registry/atoms/std-service-custom-bearer.orb +199 -110
  58. package/behaviors/registry/atoms/std-service-custom-header.orb +206 -117
  59. package/behaviors/registry/atoms/std-service-custom-noauth.orb +197 -108
  60. package/behaviors/registry/atoms/std-service-custom-query.orb +193 -104
  61. package/behaviors/registry/atoms/std-service-email.orb +195 -107
  62. package/behaviors/registry/atoms/std-service-github.orb +216 -122
  63. package/behaviors/registry/atoms/std-service-llm.orb +204 -122
  64. package/behaviors/registry/atoms/std-service-oauth.orb +290 -204
  65. package/behaviors/registry/atoms/std-service-redis.orb +177 -92
  66. package/behaviors/registry/atoms/std-service-storage.orb +211 -122
  67. package/behaviors/registry/atoms/std-service-stripe.orb +236 -154
  68. package/behaviors/registry/atoms/std-service-twilio.orb +221 -137
  69. package/behaviors/registry/atoms/std-service-youtube.orb +327 -241
  70. package/behaviors/registry/atoms/std-simulation-canvas.orb +97 -36
  71. package/behaviors/registry/atoms/std-sort.orb +284 -207
  72. package/behaviors/registry/atoms/std-sprite.orb +150 -74
  73. package/behaviors/registry/atoms/std-tabs.orb +129 -62
  74. package/behaviors/registry/atoms/std-text-effects.orb +251 -190
  75. package/behaviors/registry/atoms/std-theme.orb +193 -135
  76. package/behaviors/registry/atoms/std-timer.orb +320 -344
  77. package/behaviors/registry/atoms/std-undo.orb +278 -199
  78. package/behaviors/registry/atoms/std-upload.orb +112 -111
  79. package/behaviors/registry/atoms/std-validate-on-save.orb +159 -151
  80. package/behaviors/registry/atoms/std-wizard.orb +445 -336
  81. package/behaviors/registry/molecules/std-agent-fix-loop.orb +876 -857
  82. package/behaviors/registry/molecules/std-agent-learner.orb +635 -654
  83. package/behaviors/registry/molecules/std-agent-planner.orb +581 -548
  84. package/behaviors/registry/molecules/std-agent-rag.orb +414 -410
  85. package/behaviors/registry/molecules/std-agent-tool-loop.orb +716 -711
  86. package/behaviors/registry/molecules/std-batch-selected-list.orb +28 -12
  87. package/behaviors/registry/molecules/std-builder-game.orb +86 -28
  88. package/behaviors/registry/molecules/std-calendar-booking.orb +32 -8
  89. package/behaviors/registry/molecules/std-cart.orb +347 -406
  90. package/behaviors/registry/molecules/std-classifier-game.orb +95 -37
  91. package/behaviors/registry/molecules/std-dashboard-tabbed.orb +16 -10
  92. package/behaviors/registry/molecules/std-debugger-game.orb +95 -37
  93. package/behaviors/registry/molecules/std-detail.orb +133 -138
  94. package/behaviors/registry/molecules/std-drawer-master-list.orb +12 -6
  95. package/behaviors/registry/molecules/std-event-handler-game.orb +91 -33
  96. package/behaviors/registry/molecules/std-filtered-list.orb +14 -8
  97. package/behaviors/registry/molecules/std-form-advanced.orb +242 -153
  98. package/behaviors/registry/molecules/std-gallery-filtered.orb +16 -10
  99. package/behaviors/registry/molecules/std-geospatial.orb +175 -122
  100. package/behaviors/registry/molecules/std-inventory.orb +216 -170
  101. package/behaviors/registry/molecules/std-list.orb +280 -205
  102. package/behaviors/registry/molecules/std-messaging.orb +146 -99
  103. package/behaviors/registry/molecules/std-negotiator-game.orb +95 -37
  104. package/behaviors/registry/molecules/std-platformer-game.orb +300 -171
  105. package/behaviors/registry/molecules/std-push-activity-log.orb +32 -8
  106. package/behaviors/registry/molecules/std-puzzle-game.orb +287 -146
  107. package/behaviors/registry/molecules/std-quiz.orb +322 -263
  108. package/behaviors/registry/molecules/std-related-master-detail.orb +21 -15
  109. package/behaviors/registry/molecules/std-sequencer-game.orb +92 -34
  110. package/behaviors/registry/molecules/std-service-content-pipeline.orb +268 -267
  111. package/behaviors/registry/molecules/std-service-custom-api-tester.orb +245 -152
  112. package/behaviors/registry/molecules/std-service-devops-toolkit.orb +633 -294
  113. package/behaviors/registry/molecules/std-service-notification-hub.orb +237 -152
  114. package/behaviors/registry/molecules/std-service-payment-flow.orb +310 -180
  115. package/behaviors/registry/molecules/std-simulator-game.orb +96 -38
  116. package/behaviors/registry/molecules/std-turn-based-battle.orb +247 -137
  117. package/behaviors/registry/molecules/std-wizard-form.orb +60 -9
  118. package/behaviors/registry/organisms/std-agent-assistant.orb +2810 -1833
  119. package/behaviors/registry/organisms/std-agent-builder.orb +6401 -4539
  120. package/behaviors/registry/organisms/std-agent-pipeline.orb +5028 -3497
  121. package/behaviors/registry/organisms/std-agent-reviewer.orb +2219 -1406
  122. package/behaviors/registry/organisms/std-agent-tutor.orb +2069 -1384
  123. package/behaviors/registry/organisms/std-api-gateway.orb +1419 -870
  124. package/behaviors/registry/organisms/std-arcade-game.orb +488 -231
  125. package/behaviors/registry/organisms/std-booking-system.orb +2457 -1467
  126. package/behaviors/registry/organisms/std-cicd-pipeline.orb +1367 -825
  127. package/behaviors/registry/organisms/std-cms.orb +1549 -566
  128. package/behaviors/registry/organisms/std-coding-academy.orb +744 -495
  129. package/behaviors/registry/organisms/std-crm.orb +1997 -1014
  130. package/behaviors/registry/organisms/std-devops-dashboard.orb +2160 -1606
  131. package/behaviors/registry/organisms/std-ecommerce.orb +2279 -1153
  132. package/behaviors/registry/organisms/std-finance-tracker.orb +1375 -727
  133. package/behaviors/registry/organisms/std-healthcare.orb +2940 -1703
  134. package/behaviors/registry/organisms/std-helpdesk.orb +1443 -781
  135. package/behaviors/registry/organisms/std-hr-portal.orb +2361 -1440
  136. package/behaviors/registry/organisms/std-iot-dashboard.orb +1491 -1026
  137. package/behaviors/registry/organisms/std-lms.orb +1629 -1046
  138. package/behaviors/registry/organisms/std-logic-training.orb +321 -134
  139. package/behaviors/registry/organisms/std-platformer-app.orb +855 -417
  140. package/behaviors/registry/organisms/std-project-manager.orb +1795 -877
  141. package/behaviors/registry/organisms/std-puzzle-app.orb +407 -206
  142. package/behaviors/registry/organisms/std-realtime-chat.orb +1436 -844
  143. package/behaviors/registry/organisms/std-rpg-game.orb +1522 -1007
  144. package/behaviors/registry/organisms/std-service-marketplace.orb +2110 -1204
  145. package/behaviors/registry/organisms/std-service-research-assistant.orb +1285 -1078
  146. package/behaviors/registry/organisms/std-social-feed.orb +612 -252
  147. package/behaviors/registry/organisms/std-stem-lab.orb +642 -450
  148. package/behaviors/registry/organisms/std-strategy-game.orb +893 -650
  149. package/behaviors/registry/organisms/std-trading-dashboard.orb +1271 -805
  150. package/dist/behaviors/registry/atoms/std-agent-activity-log.orb +240 -227
  151. package/dist/behaviors/registry/atoms/std-agent-chat-thread.orb +296 -199
  152. package/dist/behaviors/registry/atoms/std-agent-classifier.orb +384 -133
  153. package/dist/behaviors/registry/atoms/std-agent-completion.orb +404 -141
  154. package/dist/behaviors/registry/atoms/std-agent-context-window.orb +904 -607
  155. package/dist/behaviors/registry/atoms/std-agent-conversation.orb +443 -234
  156. package/dist/behaviors/registry/atoms/std-agent-memory.orb +584 -150
  157. package/dist/behaviors/registry/atoms/std-agent-provider.orb +431 -174
  158. package/dist/behaviors/registry/atoms/std-agent-search.orb +217 -61
  159. package/dist/behaviors/registry/atoms/std-agent-session.orb +406 -159
  160. package/dist/behaviors/registry/atoms/std-agent-step-progress.orb +314 -294
  161. package/dist/behaviors/registry/atoms/std-agent-token-gauge.orb +577 -500
  162. package/dist/behaviors/registry/atoms/std-agent-tool-call.orb +328 -138
  163. package/dist/behaviors/registry/atoms/std-async.orb +147 -86
  164. package/dist/behaviors/registry/atoms/std-autoregressive.orb +64 -73
  165. package/dist/behaviors/registry/atoms/std-browse.orb +260 -126
  166. package/dist/behaviors/registry/atoms/std-cache-aside.orb +358 -259
  167. package/dist/behaviors/registry/atoms/std-calendar.orb +280 -215
  168. package/dist/behaviors/registry/atoms/std-circuit-breaker.orb +295 -234
  169. package/dist/behaviors/registry/atoms/std-collision.orb +136 -135
  170. package/dist/behaviors/registry/atoms/std-combat-log.orb +108 -90
  171. package/dist/behaviors/registry/atoms/std-combat.orb +171 -98
  172. package/dist/behaviors/registry/atoms/std-confirmation.orb +28 -300
  173. package/dist/behaviors/registry/atoms/std-dialogue-box.orb +111 -30
  174. package/dist/behaviors/registry/atoms/std-display.orb +491 -587
  175. package/dist/behaviors/registry/atoms/std-drawer.orb +194 -121
  176. package/dist/behaviors/registry/atoms/std-filter.orb +311 -326
  177. package/dist/behaviors/registry/atoms/std-flip-card.orb +223 -177
  178. package/dist/behaviors/registry/atoms/std-gallery.orb +130 -151
  179. package/dist/behaviors/registry/atoms/std-game-audio.orb +133 -72
  180. package/dist/behaviors/registry/atoms/std-game-canvas2d.orb +112 -52
  181. package/dist/behaviors/registry/atoms/std-game-canvas3d.orb +150 -107
  182. package/dist/behaviors/registry/atoms/std-game-hud.orb +87 -20
  183. package/dist/behaviors/registry/atoms/std-game-menu.orb +32 -32
  184. package/dist/behaviors/registry/atoms/std-game-over-screen.orb +100 -33
  185. package/dist/behaviors/registry/atoms/std-gameflow.orb +147 -80
  186. package/dist/behaviors/registry/atoms/std-input.orb +128 -393
  187. package/dist/behaviors/registry/atoms/std-inventory-panel.orb +108 -71
  188. package/dist/behaviors/registry/atoms/std-isometric-canvas.orb +156 -407
  189. package/dist/behaviors/registry/atoms/std-loading.orb +127 -126
  190. package/dist/behaviors/registry/atoms/std-modal.orb +30 -267
  191. package/dist/behaviors/registry/atoms/std-movement.orb +391 -292
  192. package/dist/behaviors/registry/atoms/std-notification.orb +133 -75
  193. package/dist/behaviors/registry/atoms/std-overworld.orb +194 -121
  194. package/dist/behaviors/registry/atoms/std-pagination.orb +120 -53
  195. package/dist/behaviors/registry/atoms/std-physics2d.orb +94 -93
  196. package/dist/behaviors/registry/atoms/std-platformer-canvas.orb +110 -98
  197. package/dist/behaviors/registry/atoms/std-push.orb +172 -36
  198. package/dist/behaviors/registry/atoms/std-quest.orb +552 -449
  199. package/dist/behaviors/registry/atoms/std-rate-limiter.orb +242 -241
  200. package/dist/behaviors/registry/atoms/std-rating.orb +123 -65
  201. package/dist/behaviors/registry/atoms/std-related.orb +202 -26
  202. package/dist/behaviors/registry/atoms/std-score-board.orb +109 -28
  203. package/dist/behaviors/registry/atoms/std-score.orb +210 -146
  204. package/dist/behaviors/registry/atoms/std-search.orb +265 -138
  205. package/dist/behaviors/registry/atoms/std-selection.orb +311 -220
  206. package/dist/behaviors/registry/atoms/std-service-custom-bearer.orb +199 -110
  207. package/dist/behaviors/registry/atoms/std-service-custom-header.orb +206 -117
  208. package/dist/behaviors/registry/atoms/std-service-custom-noauth.orb +197 -108
  209. package/dist/behaviors/registry/atoms/std-service-custom-query.orb +193 -104
  210. package/dist/behaviors/registry/atoms/std-service-email.orb +195 -107
  211. package/dist/behaviors/registry/atoms/std-service-github.orb +216 -122
  212. package/dist/behaviors/registry/atoms/std-service-llm.orb +204 -122
  213. package/dist/behaviors/registry/atoms/std-service-oauth.orb +290 -204
  214. package/dist/behaviors/registry/atoms/std-service-redis.orb +177 -92
  215. package/dist/behaviors/registry/atoms/std-service-storage.orb +211 -122
  216. package/dist/behaviors/registry/atoms/std-service-stripe.orb +236 -154
  217. package/dist/behaviors/registry/atoms/std-service-twilio.orb +221 -137
  218. package/dist/behaviors/registry/atoms/std-service-youtube.orb +327 -241
  219. package/dist/behaviors/registry/atoms/std-simulation-canvas.orb +97 -36
  220. package/dist/behaviors/registry/atoms/std-sort.orb +284 -207
  221. package/dist/behaviors/registry/atoms/std-sprite.orb +150 -74
  222. package/dist/behaviors/registry/atoms/std-tabs.orb +129 -62
  223. package/dist/behaviors/registry/atoms/std-text-effects.orb +251 -190
  224. package/dist/behaviors/registry/atoms/std-theme.orb +193 -135
  225. package/dist/behaviors/registry/atoms/std-timer.orb +320 -344
  226. package/dist/behaviors/registry/atoms/std-undo.orb +278 -199
  227. package/dist/behaviors/registry/atoms/std-upload.orb +112 -111
  228. package/dist/behaviors/registry/atoms/std-validate-on-save.orb +159 -151
  229. package/dist/behaviors/registry/atoms/std-wizard.orb +445 -336
  230. package/dist/behaviors/registry/molecules/std-agent-fix-loop.orb +876 -857
  231. package/dist/behaviors/registry/molecules/std-agent-learner.orb +635 -654
  232. package/dist/behaviors/registry/molecules/std-agent-planner.orb +581 -548
  233. package/dist/behaviors/registry/molecules/std-agent-rag.orb +414 -410
  234. package/dist/behaviors/registry/molecules/std-agent-tool-loop.orb +716 -711
  235. package/dist/behaviors/registry/molecules/std-batch-selected-list.orb +28 -12
  236. package/dist/behaviors/registry/molecules/std-builder-game.orb +86 -28
  237. package/dist/behaviors/registry/molecules/std-calendar-booking.orb +32 -8
  238. package/dist/behaviors/registry/molecules/std-cart.orb +347 -406
  239. package/dist/behaviors/registry/molecules/std-classifier-game.orb +95 -37
  240. package/dist/behaviors/registry/molecules/std-dashboard-tabbed.orb +16 -10
  241. package/dist/behaviors/registry/molecules/std-debugger-game.orb +95 -37
  242. package/dist/behaviors/registry/molecules/std-detail.orb +133 -138
  243. package/dist/behaviors/registry/molecules/std-drawer-master-list.orb +12 -6
  244. package/dist/behaviors/registry/molecules/std-event-handler-game.orb +91 -33
  245. package/dist/behaviors/registry/molecules/std-filtered-list.orb +14 -8
  246. package/dist/behaviors/registry/molecules/std-form-advanced.orb +242 -153
  247. package/dist/behaviors/registry/molecules/std-gallery-filtered.orb +16 -10
  248. package/dist/behaviors/registry/molecules/std-geospatial.orb +175 -122
  249. package/dist/behaviors/registry/molecules/std-inventory.orb +216 -170
  250. package/dist/behaviors/registry/molecules/std-list.orb +280 -205
  251. package/dist/behaviors/registry/molecules/std-messaging.orb +146 -99
  252. package/dist/behaviors/registry/molecules/std-negotiator-game.orb +95 -37
  253. package/dist/behaviors/registry/molecules/std-platformer-game.orb +300 -171
  254. package/dist/behaviors/registry/molecules/std-push-activity-log.orb +32 -8
  255. package/dist/behaviors/registry/molecules/std-puzzle-game.orb +287 -146
  256. package/dist/behaviors/registry/molecules/std-quiz.orb +322 -263
  257. package/dist/behaviors/registry/molecules/std-related-master-detail.orb +21 -15
  258. package/dist/behaviors/registry/molecules/std-sequencer-game.orb +92 -34
  259. package/dist/behaviors/registry/molecules/std-service-content-pipeline.orb +268 -267
  260. package/dist/behaviors/registry/molecules/std-service-custom-api-tester.orb +245 -152
  261. package/dist/behaviors/registry/molecules/std-service-devops-toolkit.orb +633 -294
  262. package/dist/behaviors/registry/molecules/std-service-notification-hub.orb +237 -152
  263. package/dist/behaviors/registry/molecules/std-service-payment-flow.orb +310 -180
  264. package/dist/behaviors/registry/molecules/std-simulator-game.orb +96 -38
  265. package/dist/behaviors/registry/molecules/std-turn-based-battle.orb +247 -137
  266. package/dist/behaviors/registry/molecules/std-wizard-form.orb +60 -9
  267. package/dist/behaviors/registry/organisms/std-agent-assistant.orb +2810 -1833
  268. package/dist/behaviors/registry/organisms/std-agent-builder.orb +6401 -4539
  269. package/dist/behaviors/registry/organisms/std-agent-pipeline.orb +5028 -3497
  270. package/dist/behaviors/registry/organisms/std-agent-reviewer.orb +2219 -1406
  271. package/dist/behaviors/registry/organisms/std-agent-tutor.orb +2069 -1384
  272. package/dist/behaviors/registry/organisms/std-api-gateway.orb +1419 -870
  273. package/dist/behaviors/registry/organisms/std-arcade-game.orb +488 -231
  274. package/dist/behaviors/registry/organisms/std-booking-system.orb +2457 -1467
  275. package/dist/behaviors/registry/organisms/std-cicd-pipeline.orb +1367 -825
  276. package/dist/behaviors/registry/organisms/std-cms.orb +1549 -566
  277. package/dist/behaviors/registry/organisms/std-coding-academy.orb +744 -495
  278. package/dist/behaviors/registry/organisms/std-crm.orb +1997 -1014
  279. package/dist/behaviors/registry/organisms/std-devops-dashboard.orb +2160 -1606
  280. package/dist/behaviors/registry/organisms/std-ecommerce.orb +2279 -1153
  281. package/dist/behaviors/registry/organisms/std-finance-tracker.orb +1375 -727
  282. package/dist/behaviors/registry/organisms/std-healthcare.orb +2940 -1703
  283. package/dist/behaviors/registry/organisms/std-helpdesk.orb +1443 -781
  284. package/dist/behaviors/registry/organisms/std-hr-portal.orb +2361 -1440
  285. package/dist/behaviors/registry/organisms/std-iot-dashboard.orb +1491 -1026
  286. package/dist/behaviors/registry/organisms/std-lms.orb +1629 -1046
  287. package/dist/behaviors/registry/organisms/std-logic-training.orb +321 -134
  288. package/dist/behaviors/registry/organisms/std-platformer-app.orb +855 -417
  289. package/dist/behaviors/registry/organisms/std-project-manager.orb +1795 -877
  290. package/dist/behaviors/registry/organisms/std-puzzle-app.orb +407 -206
  291. package/dist/behaviors/registry/organisms/std-realtime-chat.orb +1436 -844
  292. package/dist/behaviors/registry/organisms/std-rpg-game.orb +1522 -1007
  293. package/dist/behaviors/registry/organisms/std-service-marketplace.orb +2110 -1204
  294. package/dist/behaviors/registry/organisms/std-service-research-assistant.orb +1285 -1078
  295. package/dist/behaviors/registry/organisms/std-social-feed.orb +612 -252
  296. package/dist/behaviors/registry/organisms/std-stem-lab.orb +642 -450
  297. package/dist/behaviors/registry/organisms/std-strategy-game.orb +893 -650
  298. package/dist/behaviors/registry/organisms/std-trading-dashboard.orb +1271 -805
  299. package/dist/index.js +16 -4
  300. package/dist/index.js.map +1 -1
  301. package/dist/modules/core.js +16 -4
  302. package/dist/modules/core.js.map +1 -1
  303. package/dist/modules/index.js +16 -4
  304. package/dist/modules/index.js.map +1 -1
  305. package/dist/registry.js +16 -4
  306. package/dist/registry.js.map +1 -1
  307. package/package.json +2 -2
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "std-agent-conversation",
3
3
  "version": "1.0.0",
4
- "description": "Conversation flow atom for multi-turn agent interactions. Composes stdAgentChatThread (message display and compose) with an agent trait that handles agent/generate for AI replies and TOKEN_UPDATE emitting.",
4
+ "description": "std-agent-conversation as a Function",
5
5
  "orbitals": [
6
6
  {
7
7
  "name": "AgentConversationOrbital",
8
8
  "entity": {
9
9
  "name": "AgentConversation",
10
- "persistence": "persistent",
11
10
  "collection": "agentconversations",
11
+ "persistence": "persistent",
12
12
  "fields": [
13
13
  {
14
14
  "name": "id",
@@ -39,12 +39,15 @@
39
39
  {
40
40
  "name": "messages",
41
41
  "type": "array",
42
- "default": []
42
+ "default": [],
43
+ "items": {
44
+ "type": "string"
45
+ }
43
46
  },
44
47
  {
45
48
  "name": "turnCount",
46
49
  "type": "number",
47
- "default": 0
50
+ "default": 0.0
48
51
  },
49
52
  {
50
53
  "name": "lastMessage",
@@ -54,7 +57,7 @@
54
57
  {
55
58
  "name": "tokenCount",
56
59
  "type": "number",
57
- "default": 0
60
+ "default": 0.0
58
61
  },
59
62
  {
60
63
  "name": "role",
@@ -81,8 +84,8 @@
81
84
  "traits": [
82
85
  {
83
86
  "name": "AgentConversationThread",
84
- "linkedEntity": "AgentConversation",
85
87
  "category": "interaction",
88
+ "linkedEntity": "AgentConversation",
86
89
  "emits": [
87
90
  {
88
91
  "event": "SEND_MESSAGE",
@@ -93,6 +96,76 @@
93
96
  "type": "string"
94
97
  }
95
98
  ]
99
+ },
100
+ {
101
+ "event": "AgentConversationLoaded",
102
+ "description": "Fired when AgentConversation finishes loading",
103
+ "scope": "internal",
104
+ "payload": [
105
+ {
106
+ "name": "id",
107
+ "type": "string"
108
+ },
109
+ {
110
+ "name": "name",
111
+ "type": "string"
112
+ },
113
+ {
114
+ "name": "description",
115
+ "type": "string"
116
+ },
117
+ {
118
+ "name": "status",
119
+ "type": "string"
120
+ },
121
+ {
122
+ "name": "createdAt",
123
+ "type": "string"
124
+ },
125
+ {
126
+ "name": "messages",
127
+ "type": "[string]"
128
+ },
129
+ {
130
+ "name": "turnCount",
131
+ "type": "number"
132
+ },
133
+ {
134
+ "name": "lastMessage",
135
+ "type": "string"
136
+ },
137
+ {
138
+ "name": "tokenCount",
139
+ "type": "number"
140
+ },
141
+ {
142
+ "name": "role",
143
+ "type": "string"
144
+ },
145
+ {
146
+ "name": "content",
147
+ "type": "string"
148
+ },
149
+ {
150
+ "name": "timestamp",
151
+ "type": "string"
152
+ },
153
+ {
154
+ "name": "toolName",
155
+ "type": "string"
156
+ }
157
+ ]
158
+ },
159
+ {
160
+ "event": "AgentConversationLoadFailed",
161
+ "description": "Fired when AgentConversation fails to load",
162
+ "scope": "internal",
163
+ "payload": [
164
+ {
165
+ "name": "message",
166
+ "type": "string"
167
+ }
168
+ ]
96
169
  }
97
170
  ],
98
171
  "stateMachine": {
@@ -112,11 +185,15 @@
112
185
  },
113
186
  {
114
187
  "key": "COMPOSE",
115
- "name": "Compose Message"
188
+ "name": "Compose"
189
+ },
190
+ {
191
+ "key": "CLEAR",
192
+ "name": "Clear"
116
193
  },
117
194
  {
118
195
  "key": "SEND",
119
- "name": "Send Message",
196
+ "name": "Send",
120
197
  "payload": [
121
198
  {
122
199
  "name": "content",
@@ -126,8 +203,22 @@
126
203
  ]
127
204
  },
128
205
  {
129
- "key": "CLEAR",
130
- "name": "Clear Thread"
206
+ "key": "SEND_MESSAGE",
207
+ "name": "Send Message"
208
+ },
209
+ {
210
+ "key": "AgentConversationLoaded",
211
+ "name": "AgentConversation loaded"
212
+ },
213
+ {
214
+ "key": "AgentConversationLoadFailed",
215
+ "name": "AgentConversation load failed",
216
+ "payload": [
217
+ {
218
+ "name": "message",
219
+ "type": "string"
220
+ }
221
+ ]
131
222
  }
132
223
  ],
133
224
  "transitions": [
@@ -138,27 +229,27 @@
138
229
  "effects": [
139
230
  [
140
231
  "fetch",
141
- "AgentConversation"
232
+ "AgentConversation",
233
+ {
234
+ "emit": {
235
+ "failure": "AgentConversationLoadFailed",
236
+ "success": "AgentConversationLoaded"
237
+ }
238
+ }
142
239
  ],
143
240
  [
144
241
  "render-ui",
145
242
  "main",
146
243
  {
147
244
  "type": "stack",
148
- "direction": "vertical",
149
245
  "gap": "lg",
246
+ "direction": "vertical",
150
247
  "children": [
151
248
  {
152
- "type": "stack",
153
- "direction": "horizontal",
154
- "gap": "sm",
155
249
  "justify": "space-between",
156
- "align": "center",
157
250
  "children": [
158
251
  {
159
252
  "type": "stack",
160
- "direction": "horizontal",
161
- "gap": "sm",
162
253
  "align": "center",
163
254
  "children": [
164
255
  {
@@ -167,60 +258,64 @@
167
258
  "size": "lg"
168
259
  },
169
260
  {
170
- "type": "typography",
261
+ "variant": "h2",
171
262
  "content": "AgentConversation Thread",
172
- "variant": "h2"
263
+ "type": "typography"
173
264
  }
174
- ]
265
+ ],
266
+ "direction": "horizontal",
267
+ "gap": "sm"
175
268
  },
176
269
  {
177
- "type": "button",
178
270
  "label": "New Message",
179
- "event": "COMPOSE",
271
+ "type": "button",
180
272
  "variant": "primary",
273
+ "event": "COMPOSE",
181
274
  "icon": "plus"
182
275
  }
183
- ]
276
+ ],
277
+ "type": "stack",
278
+ "align": "center",
279
+ "direction": "horizontal",
280
+ "gap": "sm"
184
281
  },
185
282
  {
186
283
  "type": "divider"
187
284
  },
188
285
  {
189
- "type": "data-list",
286
+ "emptyDescription": "Start a conversation by sending a message.",
190
287
  "entity": "AgentConversation",
191
288
  "emptyIcon": "message-circle",
192
- "emptyTitle": "No messages yet",
193
- "emptyDescription": "Start a conversation by sending a message.",
194
289
  "renderItem": [
195
290
  "fn",
196
291
  "item",
197
292
  {
198
- "type": "stack",
199
293
  "direction": "vertical",
200
294
  "gap": "xs",
295
+ "type": "stack",
201
296
  "children": [
202
297
  {
203
- "type": "stack",
204
- "direction": "horizontal",
205
- "gap": "sm",
206
- "align": "center",
207
298
  "children": [
208
299
  {
209
300
  "type": "badge",
210
301
  "label": "@item.role"
211
302
  },
212
303
  {
304
+ "variant": "outline",
213
305
  "type": "badge",
214
- "label": "@item.status",
215
- "variant": "outline"
306
+ "label": "@item.status"
216
307
  },
217
308
  {
218
309
  "type": "typography",
219
- "variant": "caption",
220
310
  "color": "muted",
221
- "content": "@item.timestamp"
311
+ "content": "@item.timestamp",
312
+ "variant": "caption"
222
313
  }
223
- ]
314
+ ],
315
+ "type": "stack",
316
+ "direction": "horizontal",
317
+ "gap": "sm",
318
+ "align": "center"
224
319
  },
225
320
  {
226
321
  "type": "typography",
@@ -229,7 +324,9 @@
229
324
  }
230
325
  ]
231
326
  }
232
- ]
327
+ ],
328
+ "emptyTitle": "No messages yet",
329
+ "type": "data-list"
233
330
  }
234
331
  ]
235
332
  }
@@ -245,22 +342,15 @@
245
342
  "render-ui",
246
343
  "main",
247
344
  {
345
+ "gap": "lg",
248
346
  "type": "stack",
249
347
  "direction": "vertical",
250
- "gap": "lg",
251
348
  "children": [
252
349
  {
253
- "type": "stack",
254
- "direction": "horizontal",
255
- "gap": "sm",
256
350
  "justify": "space-between",
257
351
  "align": "center",
258
352
  "children": [
259
353
  {
260
- "type": "stack",
261
- "direction": "horizontal",
262
- "gap": "sm",
263
- "align": "center",
264
354
  "children": [
265
355
  {
266
356
  "type": "icon",
@@ -268,96 +358,103 @@
268
358
  "size": "lg"
269
359
  },
270
360
  {
271
- "type": "typography",
272
361
  "content": "AgentConversation Thread",
273
- "variant": "h2"
362
+ "variant": "h2",
363
+ "type": "typography"
274
364
  }
275
- ]
365
+ ],
366
+ "gap": "sm",
367
+ "type": "stack",
368
+ "align": "center",
369
+ "direction": "horizontal"
276
370
  },
277
371
  {
278
- "type": "button",
279
- "label": "New Message",
372
+ "disabled": true,
280
373
  "event": "COMPOSE",
374
+ "label": "New Message",
375
+ "type": "button",
281
376
  "variant": "primary",
282
- "icon": "plus",
283
- "disabled": true
377
+ "icon": "plus"
284
378
  }
285
- ]
379
+ ],
380
+ "type": "stack",
381
+ "direction": "horizontal",
382
+ "gap": "sm"
286
383
  },
287
384
  {
288
385
  "type": "divider"
289
386
  },
290
387
  {
291
- "type": "data-list",
292
- "entity": "AgentConversation",
293
- "emptyIcon": "message-circle",
294
- "emptyTitle": "No messages yet",
295
388
  "emptyDescription": "Start a conversation by sending a message.",
296
389
  "renderItem": [
297
390
  "fn",
298
391
  "item",
299
392
  {
300
- "type": "stack",
301
- "direction": "vertical",
302
- "gap": "xs",
303
393
  "children": [
304
394
  {
305
395
  "type": "stack",
306
- "direction": "horizontal",
307
- "gap": "sm",
308
- "align": "center",
309
396
  "children": [
310
397
  {
311
398
  "type": "badge",
312
399
  "label": "@item.role"
313
400
  },
314
401
  {
402
+ "variant": "outline",
315
403
  "type": "badge",
316
- "label": "@item.status",
317
- "variant": "outline"
404
+ "label": "@item.status"
318
405
  },
319
406
  {
407
+ "color": "muted",
320
408
  "type": "typography",
321
409
  "variant": "caption",
322
- "color": "muted",
323
410
  "content": "@item.timestamp"
324
411
  }
325
- ]
412
+ ],
413
+ "direction": "horizontal",
414
+ "gap": "sm",
415
+ "align": "center"
326
416
  },
327
417
  {
328
418
  "type": "typography",
329
419
  "variant": "body",
330
420
  "content": "@item.content"
331
421
  }
332
- ]
422
+ ],
423
+ "type": "stack",
424
+ "direction": "vertical",
425
+ "gap": "xs"
333
426
  }
334
- ]
427
+ ],
428
+ "type": "data-list",
429
+ "entity": "AgentConversation",
430
+ "emptyTitle": "No messages yet",
431
+ "emptyIcon": "message-circle"
335
432
  },
336
433
  {
337
- "type": "form-section",
338
- "title": "Compose Message",
339
434
  "children": [
340
435
  {
341
- "type": "textarea",
342
436
  "label": "Message",
437
+ "type": "textarea",
343
438
  "bind": "@entity.content",
344
439
  "placeholder": "Type your message..."
345
440
  },
346
441
  {
347
- "type": "stack",
348
- "direction": "horizontal",
349
- "gap": "sm",
350
442
  "children": [
351
443
  {
352
- "type": "button",
353
- "label": "Send",
354
444
  "event": "SEND",
445
+ "icon": "send",
446
+ "label": "Send",
355
447
  "variant": "primary",
356
- "icon": "send"
448
+ "type": "button"
357
449
  }
358
- ]
450
+ ],
451
+ "gap": "sm",
452
+ "type": "stack",
453
+ "direction": "horizontal"
359
454
  }
360
- ]
455
+ ],
456
+ "title": "Compose Message",
457
+ "type": "form-section"
361
458
  }
362
459
  ]
363
460
  }
@@ -365,88 +462,61 @@
365
462
  ]
366
463
  },
367
464
  {
368
- "from": "composing",
465
+ "from": "idle",
369
466
  "to": "idle",
370
- "event": "SEND",
467
+ "event": "CLEAR",
371
468
  "effects": [
372
469
  [
373
- "set",
374
- "@entity.content",
375
- "@payload.content"
376
- ],
377
- [
378
- "set",
379
- "@entity.role",
380
- "user"
381
- ],
382
- [
383
- "set",
384
- "@entity.timestamp",
385
- "@now"
386
- ],
387
- [
388
- "set",
389
- "@entity.status",
390
- "sent"
470
+ "persist",
471
+ "delete",
472
+ "AgentConversation"
391
473
  ],
392
474
  [
393
- "persist",
394
- "create",
475
+ "fetch",
395
476
  "AgentConversation",
396
477
  {
397
- "role": "user",
398
- "content": "@payload.content",
399
- "timestamp": "@now",
400
- "status": "sent"
478
+ "emit": {
479
+ "failure": "AgentConversationLoadFailed",
480
+ "success": "AgentConversationLoaded"
481
+ }
401
482
  }
402
483
  ],
403
- [
404
- "emit",
405
- "SEND_MESSAGE"
406
- ],
407
- [
408
- "fetch",
409
- "AgentConversation"
410
- ],
411
484
  [
412
485
  "render-ui",
413
486
  "main",
414
487
  {
415
- "type": "stack",
416
- "direction": "vertical",
417
- "gap": "lg",
418
488
  "children": [
419
489
  {
420
- "type": "stack",
421
490
  "direction": "horizontal",
422
491
  "gap": "sm",
423
- "justify": "space-between",
424
492
  "align": "center",
493
+ "justify": "space-between",
494
+ "type": "stack",
425
495
  "children": [
426
496
  {
427
497
  "type": "stack",
428
- "direction": "horizontal",
429
498
  "gap": "sm",
430
499
  "align": "center",
431
500
  "children": [
432
501
  {
502
+ "size": "lg",
433
503
  "type": "icon",
434
- "name": "message-circle",
435
- "size": "lg"
504
+ "name": "message-circle"
436
505
  },
437
506
  {
438
507
  "type": "typography",
439
508
  "content": "AgentConversation Thread",
440
509
  "variant": "h2"
441
510
  }
442
- ]
511
+ ],
512
+ "direction": "horizontal"
443
513
  },
444
514
  {
445
515
  "type": "button",
516
+ "icon": "plus",
446
517
  "label": "New Message",
447
- "event": "COMPOSE",
448
518
  "variant": "primary",
449
- "icon": "plus"
519
+ "event": "COMPOSE"
450
520
  }
451
521
  ]
452
522
  },
@@ -454,11 +524,6 @@
454
524
  "type": "divider"
455
525
  },
456
526
  {
457
- "type": "data-list",
458
- "entity": "AgentConversation",
459
- "emptyIcon": "message-circle",
460
- "emptyTitle": "No messages yet",
461
- "emptyDescription": "Start a conversation by sending a message.",
462
527
  "renderItem": [
463
528
  "fn",
464
529
  "item",
@@ -468,135 +533,176 @@
468
533
  "gap": "xs",
469
534
  "children": [
470
535
  {
471
- "type": "stack",
472
- "direction": "horizontal",
473
- "gap": "sm",
474
536
  "align": "center",
475
537
  "children": [
476
538
  {
477
- "type": "badge",
478
- "label": "@item.role"
539
+ "label": "@item.role",
540
+ "type": "badge"
479
541
  },
480
542
  {
481
543
  "type": "badge",
482
- "label": "@item.status",
483
- "variant": "outline"
544
+ "variant": "outline",
545
+ "label": "@item.status"
484
546
  },
485
547
  {
486
548
  "type": "typography",
549
+ "content": "@item.timestamp",
487
550
  "variant": "caption",
488
- "color": "muted",
489
- "content": "@item.timestamp"
551
+ "color": "muted"
490
552
  }
491
- ]
553
+ ],
554
+ "direction": "horizontal",
555
+ "gap": "sm",
556
+ "type": "stack"
492
557
  },
493
558
  {
494
- "type": "typography",
495
559
  "variant": "body",
496
- "content": "@item.content"
560
+ "content": "@item.content",
561
+ "type": "typography"
497
562
  }
498
563
  ]
499
564
  }
500
- ]
565
+ ],
566
+ "entity": "AgentConversation",
567
+ "emptyTitle": "No messages yet",
568
+ "type": "data-list",
569
+ "emptyIcon": "message-circle",
570
+ "emptyDescription": "Start a conversation by sending a message."
501
571
  }
502
- ]
572
+ ],
573
+ "gap": "lg",
574
+ "direction": "vertical",
575
+ "type": "stack"
503
576
  }
504
577
  ]
505
578
  ]
506
579
  },
507
580
  {
508
- "from": "idle",
581
+ "from": "composing",
509
582
  "to": "idle",
510
- "event": "CLEAR",
583
+ "event": "SEND",
511
584
  "effects": [
585
+ [
586
+ "set",
587
+ "@entity.content",
588
+ "@payload.content"
589
+ ],
590
+ [
591
+ "set",
592
+ "@entity.role",
593
+ "user"
594
+ ],
595
+ [
596
+ "set",
597
+ "@entity.timestamp",
598
+ "@now"
599
+ ],
600
+ [
601
+ "set",
602
+ "@entity.status",
603
+ "sent"
604
+ ],
512
605
  [
513
606
  "persist",
514
- "delete",
515
- "AgentConversation"
607
+ "create",
608
+ "AgentConversation",
609
+ {
610
+ "status": "sent",
611
+ "content": "@payload.content",
612
+ "role": "user",
613
+ "timestamp": "@now"
614
+ }
615
+ ],
616
+ [
617
+ "emit",
618
+ "SEND_MESSAGE"
516
619
  ],
517
620
  [
518
621
  "fetch",
519
- "AgentConversation"
622
+ "AgentConversation",
623
+ {
624
+ "emit": {
625
+ "failure": "AgentConversationLoadFailed",
626
+ "success": "AgentConversationLoaded"
627
+ }
628
+ }
520
629
  ],
521
630
  [
522
631
  "render-ui",
523
632
  "main",
524
633
  {
525
634
  "type": "stack",
526
- "direction": "vertical",
527
635
  "gap": "lg",
528
636
  "children": [
529
637
  {
530
- "type": "stack",
531
638
  "direction": "horizontal",
532
- "gap": "sm",
639
+ "type": "stack",
533
640
  "justify": "space-between",
534
641
  "align": "center",
535
642
  "children": [
536
643
  {
644
+ "align": "center",
537
645
  "type": "stack",
538
- "direction": "horizontal",
539
646
  "gap": "sm",
540
- "align": "center",
647
+ "direction": "horizontal",
541
648
  "children": [
542
649
  {
543
- "type": "icon",
544
650
  "name": "message-circle",
651
+ "type": "icon",
545
652
  "size": "lg"
546
653
  },
547
654
  {
655
+ "variant": "h2",
548
656
  "type": "typography",
549
- "content": "AgentConversation Thread",
550
- "variant": "h2"
657
+ "content": "AgentConversation Thread"
551
658
  }
552
659
  ]
553
660
  },
554
661
  {
555
- "type": "button",
556
662
  "label": "New Message",
663
+ "type": "button",
664
+ "icon": "plus",
557
665
  "event": "COMPOSE",
558
- "variant": "primary",
559
- "icon": "plus"
666
+ "variant": "primary"
560
667
  }
561
- ]
668
+ ],
669
+ "gap": "sm"
562
670
  },
563
671
  {
564
672
  "type": "divider"
565
673
  },
566
674
  {
567
675
  "type": "data-list",
568
- "entity": "AgentConversation",
569
- "emptyIcon": "message-circle",
570
- "emptyTitle": "No messages yet",
571
676
  "emptyDescription": "Start a conversation by sending a message.",
677
+ "entity": "AgentConversation",
572
678
  "renderItem": [
573
679
  "fn",
574
680
  "item",
575
681
  {
576
- "type": "stack",
577
- "direction": "vertical",
578
682
  "gap": "xs",
683
+ "direction": "vertical",
684
+ "type": "stack",
579
685
  "children": [
580
686
  {
581
- "type": "stack",
687
+ "align": "center",
582
688
  "direction": "horizontal",
583
689
  "gap": "sm",
584
- "align": "center",
690
+ "type": "stack",
585
691
  "children": [
586
692
  {
587
693
  "type": "badge",
588
694
  "label": "@item.role"
589
695
  },
590
696
  {
591
- "type": "badge",
592
697
  "label": "@item.status",
593
- "variant": "outline"
698
+ "variant": "outline",
699
+ "type": "badge"
594
700
  },
595
701
  {
596
702
  "type": "typography",
597
- "variant": "caption",
598
703
  "color": "muted",
599
- "content": "@item.timestamp"
704
+ "content": "@item.timestamp",
705
+ "variant": "caption"
600
706
  }
601
707
  ]
602
708
  },
@@ -607,9 +713,12 @@
607
713
  }
608
714
  ]
609
715
  }
610
- ]
716
+ ],
717
+ "emptyTitle": "No messages yet",
718
+ "emptyIcon": "message-circle"
611
719
  }
612
- ]
720
+ ],
721
+ "direction": "vertical"
613
722
  }
614
723
  ]
615
724
  ]
@@ -626,111 +735,118 @@
626
735
  ],
627
736
  [
628
737
  "fetch",
629
- "AgentConversation"
738
+ "AgentConversation",
739
+ {
740
+ "emit": {
741
+ "success": "AgentConversationLoaded",
742
+ "failure": "AgentConversationLoadFailed"
743
+ }
744
+ }
630
745
  ],
631
746
  [
632
747
  "render-ui",
633
748
  "main",
634
749
  {
635
- "type": "stack",
636
- "direction": "vertical",
637
- "gap": "lg",
638
750
  "children": [
639
751
  {
640
752
  "type": "stack",
641
- "direction": "horizontal",
642
- "gap": "sm",
643
- "justify": "space-between",
644
753
  "align": "center",
754
+ "justify": "space-between",
645
755
  "children": [
646
756
  {
647
- "type": "stack",
648
- "direction": "horizontal",
649
- "gap": "sm",
650
- "align": "center",
651
757
  "children": [
652
758
  {
653
- "type": "icon",
654
759
  "name": "message-circle",
655
- "size": "lg"
760
+ "size": "lg",
761
+ "type": "icon"
656
762
  },
657
763
  {
658
- "type": "typography",
764
+ "variant": "h2",
659
765
  "content": "AgentConversation Thread",
660
- "variant": "h2"
766
+ "type": "typography"
661
767
  }
662
- ]
768
+ ],
769
+ "direction": "horizontal",
770
+ "type": "stack",
771
+ "align": "center",
772
+ "gap": "sm"
663
773
  },
664
774
  {
665
- "type": "button",
666
- "label": "New Message",
667
775
  "event": "COMPOSE",
668
776
  "variant": "primary",
669
- "icon": "plus"
777
+ "type": "button",
778
+ "icon": "plus",
779
+ "label": "New Message"
670
780
  }
671
- ]
781
+ ],
782
+ "gap": "sm",
783
+ "direction": "horizontal"
672
784
  },
673
785
  {
674
786
  "type": "divider"
675
787
  },
676
788
  {
677
- "type": "data-list",
678
789
  "entity": "AgentConversation",
679
- "emptyIcon": "message-circle",
680
- "emptyTitle": "No messages yet",
681
790
  "emptyDescription": "Start a conversation by sending a message.",
791
+ "emptyTitle": "No messages yet",
682
792
  "renderItem": [
683
793
  "fn",
684
794
  "item",
685
795
  {
686
796
  "type": "stack",
687
- "direction": "vertical",
688
- "gap": "xs",
689
797
  "children": [
690
798
  {
691
- "type": "stack",
692
- "direction": "horizontal",
693
799
  "gap": "sm",
800
+ "type": "stack",
694
801
  "align": "center",
695
802
  "children": [
696
803
  {
697
- "type": "badge",
698
- "label": "@item.role"
804
+ "label": "@item.role",
805
+ "type": "badge"
699
806
  },
700
807
  {
701
- "type": "badge",
702
808
  "label": "@item.status",
809
+ "type": "badge",
703
810
  "variant": "outline"
704
811
  },
705
812
  {
706
813
  "type": "typography",
707
- "variant": "caption",
814
+ "content": "@item.timestamp",
708
815
  "color": "muted",
709
- "content": "@item.timestamp"
816
+ "variant": "caption"
710
817
  }
711
- ]
818
+ ],
819
+ "direction": "horizontal"
712
820
  },
713
821
  {
714
822
  "type": "typography",
715
823
  "variant": "body",
716
824
  "content": "@item.content"
717
825
  }
718
- ]
826
+ ],
827
+ "gap": "xs",
828
+ "direction": "vertical"
719
829
  }
720
- ]
830
+ ],
831
+ "type": "data-list",
832
+ "emptyIcon": "message-circle"
721
833
  }
722
- ]
834
+ ],
835
+ "direction": "vertical",
836
+ "gap": "lg",
837
+ "type": "stack"
723
838
  }
724
839
  ]
725
840
  ]
726
841
  }
727
842
  ]
728
- }
843
+ },
844
+ "scope": "collection"
729
845
  },
730
846
  {
731
847
  "name": "AgentConversationAgent",
732
- "linkedEntity": "AgentConversation",
733
848
  "category": "interaction",
849
+ "linkedEntity": "AgentConversation",
734
850
  "emits": [
735
851
  {
736
852
  "event": "TOKEN_UPDATE",
@@ -741,6 +857,76 @@
741
857
  "type": "number"
742
858
  }
743
859
  ]
860
+ },
861
+ {
862
+ "event": "AgentConversationLoaded",
863
+ "description": "Fired when AgentConversation finishes loading",
864
+ "scope": "internal",
865
+ "payload": [
866
+ {
867
+ "name": "id",
868
+ "type": "string"
869
+ },
870
+ {
871
+ "name": "name",
872
+ "type": "string"
873
+ },
874
+ {
875
+ "name": "description",
876
+ "type": "string"
877
+ },
878
+ {
879
+ "name": "status",
880
+ "type": "string"
881
+ },
882
+ {
883
+ "name": "createdAt",
884
+ "type": "string"
885
+ },
886
+ {
887
+ "name": "messages",
888
+ "type": "[string]"
889
+ },
890
+ {
891
+ "name": "turnCount",
892
+ "type": "number"
893
+ },
894
+ {
895
+ "name": "lastMessage",
896
+ "type": "string"
897
+ },
898
+ {
899
+ "name": "tokenCount",
900
+ "type": "number"
901
+ },
902
+ {
903
+ "name": "role",
904
+ "type": "string"
905
+ },
906
+ {
907
+ "name": "content",
908
+ "type": "string"
909
+ },
910
+ {
911
+ "name": "timestamp",
912
+ "type": "string"
913
+ },
914
+ {
915
+ "name": "toolName",
916
+ "type": "string"
917
+ }
918
+ ]
919
+ },
920
+ {
921
+ "event": "AgentConversationLoadFailed",
922
+ "description": "Fired when AgentConversation fails to load",
923
+ "scope": "internal",
924
+ "payload": [
925
+ {
926
+ "name": "message",
927
+ "type": "string"
928
+ }
929
+ ]
744
930
  }
745
931
  ],
746
932
  "stateMachine": {
@@ -776,13 +962,31 @@
776
962
  "key": "PAUSE",
777
963
  "name": "Pause"
778
964
  },
965
+ {
966
+ "key": "CLEAR",
967
+ "name": "Clear"
968
+ },
779
969
  {
780
970
  "key": "RESUME",
781
971
  "name": "Resume"
782
972
  },
783
973
  {
784
- "key": "CLEAR",
785
- "name": "Clear"
974
+ "key": "TOKEN_UPDATE",
975
+ "name": "Token Update"
976
+ },
977
+ {
978
+ "key": "AgentConversationLoaded",
979
+ "name": "AgentConversation loaded"
980
+ },
981
+ {
982
+ "key": "AgentConversationLoadFailed",
983
+ "name": "AgentConversation load failed",
984
+ "payload": [
985
+ {
986
+ "name": "message",
987
+ "type": "string"
988
+ }
989
+ ]
786
990
  }
787
991
  ],
788
992
  "transitions": [
@@ -793,16 +997,22 @@
793
997
  "effects": [
794
998
  [
795
999
  "fetch",
796
- "AgentConversation"
1000
+ "AgentConversation",
1001
+ {
1002
+ "emit": {
1003
+ "failure": "AgentConversationLoadFailed",
1004
+ "success": "AgentConversationLoaded"
1005
+ }
1006
+ }
797
1007
  ],
798
1008
  [
799
1009
  "render-ui",
800
1010
  "main",
801
1011
  {
802
1012
  "type": "empty-state",
803
- "icon": "message-circle",
804
1013
  "title": "Conversation",
805
- "description": "Conversation is ready"
1014
+ "description": "Conversation is ready",
1015
+ "icon": "message-circle"
806
1016
  }
807
1017
  ]
808
1018
  ]
@@ -823,7 +1033,7 @@
823
1033
  [
824
1034
  "+",
825
1035
  "@entity.turnCount",
826
- 1
1036
+ 1.0
827
1037
  ]
828
1038
  ],
829
1039
  [
@@ -852,7 +1062,7 @@
852
1062
  [
853
1063
  "+",
854
1064
  "@entity.turnCount",
855
- 1
1065
+ 1.0
856
1066
  ]
857
1067
  ],
858
1068
  [
@@ -868,14 +1078,7 @@
868
1078
  {
869
1079
  "from": "active",
870
1080
  "to": "paused",
871
- "event": "PAUSE",
872
- "effects": []
873
- },
874
- {
875
- "from": "paused",
876
- "to": "active",
877
- "event": "RESUME",
878
- "effects": []
1081
+ "event": "PAUSE"
879
1082
  },
880
1083
  {
881
1084
  "from": "active",
@@ -890,7 +1093,7 @@
890
1093
  [
891
1094
  "set",
892
1095
  "@entity.turnCount",
893
- 0
1096
+ 0.0
894
1097
  ],
895
1098
  [
896
1099
  "set",
@@ -900,10 +1103,15 @@
900
1103
  [
901
1104
  "set",
902
1105
  "@entity.tokenCount",
903
- 0
1106
+ 0.0
904
1107
  ]
905
1108
  ]
906
1109
  },
1110
+ {
1111
+ "from": "paused",
1112
+ "to": "active",
1113
+ "event": "RESUME"
1114
+ },
907
1115
  {
908
1116
  "from": "paused",
909
1117
  "to": "idle",
@@ -917,7 +1125,7 @@
917
1125
  [
918
1126
  "set",
919
1127
  "@entity.turnCount",
920
- 0
1128
+ 0.0
921
1129
  ],
922
1130
  [
923
1131
  "set",
@@ -927,12 +1135,13 @@
927
1135
  [
928
1136
  "set",
929
1137
  "@entity.tokenCount",
930
- 0
1138
+ 0.0
931
1139
  ]
932
1140
  ]
933
1141
  }
934
1142
  ]
935
- }
1143
+ },
1144
+ "scope": "collection"
936
1145
  }
937
1146
  ],
938
1147
  "pages": [
@@ -951,4 +1160,4 @@
951
1160
  ]
952
1161
  }
953
1162
  ]
954
- }
1163
+ }