@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-provider",
3
3
  "version": "1.0.0",
4
- "description": "Provider routing atom for agent model/provider switching. Composes UI atoms (stdModal for switch form, stdNotification for confirmation) with an agent trait that handles agent/switch-provider, agent/provider, and agent/model operators.",
4
+ "description": "std-agent-provider as a Function",
5
5
  "orbitals": [
6
6
  {
7
7
  "name": "AgentProviderOrbital",
8
8
  "entity": {
9
9
  "name": "AgentProvider",
10
- "persistence": "persistent",
11
10
  "collection": "agentproviders",
11
+ "persistence": "persistent",
12
12
  "fields": [
13
13
  {
14
14
  "name": "id",
@@ -54,7 +54,7 @@
54
54
  {
55
55
  "name": "requestCount",
56
56
  "type": "number",
57
- "default": 0
57
+ "default": 0.0
58
58
  },
59
59
  {
60
60
  "name": "message",
@@ -71,16 +71,80 @@
71
71
  "traits": [
72
72
  {
73
73
  "name": "AgentProviderModal",
74
- "linkedEntity": "AgentProvider",
75
74
  "category": "interaction",
75
+ "linkedEntity": "AgentProvider",
76
76
  "emits": [
77
77
  {
78
- "event": "SAVE",
79
- "scope": "external"
78
+ "event": "SWITCHED",
79
+ "scope": "external",
80
+ "payload": [
81
+ {
82
+ "name": "id",
83
+ "type": "string"
84
+ }
85
+ ]
80
86
  },
81
87
  {
82
- "event": "SWITCHED",
83
- "scope": "external"
88
+ "event": "AgentProviderLoaded",
89
+ "description": "Fired when AgentProvider finishes loading",
90
+ "scope": "internal",
91
+ "payload": [
92
+ {
93
+ "name": "id",
94
+ "type": "string"
95
+ },
96
+ {
97
+ "name": "name",
98
+ "type": "string"
99
+ },
100
+ {
101
+ "name": "description",
102
+ "type": "string"
103
+ },
104
+ {
105
+ "name": "status",
106
+ "type": "string"
107
+ },
108
+ {
109
+ "name": "createdAt",
110
+ "type": "string"
111
+ },
112
+ {
113
+ "name": "currentProvider",
114
+ "type": "string"
115
+ },
116
+ {
117
+ "name": "currentModel",
118
+ "type": "string"
119
+ },
120
+ {
121
+ "name": "fallbackProvider",
122
+ "type": "string"
123
+ },
124
+ {
125
+ "name": "requestCount",
126
+ "type": "number"
127
+ },
128
+ {
129
+ "name": "message",
130
+ "type": "string"
131
+ },
132
+ {
133
+ "name": "notificationType",
134
+ "type": "string"
135
+ }
136
+ ]
137
+ },
138
+ {
139
+ "event": "AgentProviderLoadFailed",
140
+ "description": "Fired when AgentProvider fails to load",
141
+ "scope": "internal",
142
+ "payload": [
143
+ {
144
+ "name": "message",
145
+ "type": "string"
146
+ }
147
+ ]
84
148
  }
85
149
  ],
86
150
  "stateMachine": {
@@ -100,7 +164,7 @@
100
164
  },
101
165
  {
102
166
  "key": "SWITCH",
103
- "name": "Open"
167
+ "name": "Switch"
104
168
  },
105
169
  {
106
170
  "key": "CLOSE",
@@ -116,6 +180,24 @@
116
180
  "required": true
117
181
  }
118
182
  ]
183
+ },
184
+ {
185
+ "key": "SWITCHED",
186
+ "name": "Switched"
187
+ },
188
+ {
189
+ "key": "AgentProviderLoaded",
190
+ "name": "AgentProvider loaded"
191
+ },
192
+ {
193
+ "key": "AgentProviderLoadFailed",
194
+ "name": "AgentProvider load failed",
195
+ "payload": [
196
+ {
197
+ "name": "message",
198
+ "type": "string"
199
+ }
200
+ ]
119
201
  }
120
202
  ],
121
203
  "transitions": [
@@ -132,20 +214,13 @@
132
214
  "render-ui",
133
215
  "main",
134
216
  {
135
- "type": "stack",
136
- "direction": "vertical",
137
217
  "gap": "lg",
218
+ "type": "stack",
138
219
  "children": [
139
220
  {
140
- "type": "stack",
141
221
  "direction": "horizontal",
142
- "gap": "md",
143
- "justify": "space-between",
144
222
  "children": [
145
223
  {
146
- "type": "stack",
147
- "direction": "horizontal",
148
- "gap": "md",
149
224
  "children": [
150
225
  {
151
226
  "type": "icon",
@@ -153,31 +228,38 @@
153
228
  "size": "lg"
154
229
  },
155
230
  {
156
- "type": "typography",
157
231
  "content": "Switch Provider",
158
- "variant": "h2"
232
+ "variant": "h2",
233
+ "type": "typography"
159
234
  }
160
- ]
235
+ ],
236
+ "gap": "md",
237
+ "direction": "horizontal",
238
+ "type": "stack"
161
239
  },
162
240
  {
163
- "type": "button",
164
- "label": "Open",
165
- "event": "SWITCH",
166
241
  "variant": "primary",
167
- "icon": "repeat"
242
+ "event": "SWITCH",
243
+ "icon": "repeat",
244
+ "type": "button",
245
+ "label": "Open"
168
246
  }
169
- ]
247
+ ],
248
+ "type": "stack",
249
+ "justify": "space-between",
250
+ "gap": "md"
170
251
  },
171
252
  {
172
253
  "type": "divider"
173
254
  },
174
255
  {
256
+ "title": "Nothing open",
175
257
  "type": "empty-state",
176
258
  "icon": "repeat",
177
- "title": "Nothing open",
178
259
  "description": "Click Open to view details in a modal overlay."
179
260
  }
180
- ]
261
+ ],
262
+ "direction": "vertical"
181
263
  }
182
264
  ]
183
265
  ]
@@ -189,30 +271,33 @@
189
271
  "effects": [
190
272
  [
191
273
  "fetch",
192
- "AgentProvider"
274
+ "AgentProvider",
275
+ {
276
+ "emit": {
277
+ "failure": "AgentProviderLoadFailed",
278
+ "success": "AgentProviderLoaded"
279
+ }
280
+ }
193
281
  ],
194
282
  [
195
283
  "render-ui",
196
284
  "modal",
197
285
  {
198
- "type": "stack",
199
- "direction": "vertical",
200
- "gap": "md",
201
286
  "children": [
202
287
  {
288
+ "gap": "sm",
203
289
  "type": "stack",
204
290
  "direction": "horizontal",
205
- "gap": "sm",
206
291
  "children": [
207
292
  {
293
+ "size": "md",
208
294
  "type": "icon",
209
- "name": "repeat",
210
- "size": "md"
295
+ "name": "repeat"
211
296
  },
212
297
  {
298
+ "variant": "h3",
213
299
  "type": "typography",
214
- "content": "Switch Provider",
215
- "variant": "h3"
300
+ "content": "Switch Provider"
216
301
  }
217
302
  ]
218
303
  },
@@ -220,37 +305,40 @@
220
305
  "type": "divider"
221
306
  },
222
307
  {
223
- "type": "stack",
224
- "direction": "horizontal",
225
308
  "gap": "md",
309
+ "type": "stack",
226
310
  "children": [
227
311
  {
312
+ "content": "Current:",
228
313
  "type": "typography",
229
- "variant": "caption",
230
- "content": "Current:"
314
+ "variant": "caption"
231
315
  },
232
316
  {
233
317
  "type": "badge",
234
318
  "label": "@entity.currentProvider"
235
319
  },
236
320
  {
237
- "type": "badge",
238
- "label": "@entity.currentModel"
321
+ "label": "@entity.currentModel",
322
+ "type": "badge"
239
323
  }
240
- ]
324
+ ],
325
+ "direction": "horizontal"
241
326
  },
242
327
  {
243
- "type": "form-section",
244
- "entity": "AgentProvider",
245
328
  "mode": "edit",
246
- "submitEvent": "SAVE",
247
- "cancelEvent": "CLOSE",
329
+ "type": "form-section",
248
330
  "fields": [
249
331
  "currentProvider",
250
332
  "currentModel"
251
- ]
333
+ ],
334
+ "submitEvent": "SAVE",
335
+ "entity": "AgentProvider",
336
+ "cancelEvent": "CLOSE"
252
337
  }
253
- ]
338
+ ],
339
+ "type": "stack",
340
+ "gap": "md",
341
+ "direction": "vertical"
254
342
  }
255
343
  ]
256
344
  ]
@@ -278,15 +366,11 @@
278
366
  "render-ui",
279
367
  "main",
280
368
  {
281
- "type": "stack",
282
- "direction": "vertical",
283
- "gap": "lg",
284
369
  "children": [
285
370
  {
371
+ "justify": "space-between",
286
372
  "type": "stack",
287
373
  "direction": "horizontal",
288
- "gap": "md",
289
- "justify": "space-between",
290
374
  "children": [
291
375
  {
292
376
  "type": "stack",
@@ -294,25 +378,26 @@
294
378
  "gap": "md",
295
379
  "children": [
296
380
  {
381
+ "size": "lg",
297
382
  "type": "icon",
298
- "name": "repeat",
299
- "size": "lg"
383
+ "name": "repeat"
300
384
  },
301
385
  {
302
- "type": "typography",
303
386
  "content": "Switch Provider",
304
- "variant": "h2"
387
+ "variant": "h2",
388
+ "type": "typography"
305
389
  }
306
390
  ]
307
391
  },
308
392
  {
309
- "type": "button",
310
- "label": "Open",
311
393
  "event": "SWITCH",
394
+ "label": "Open",
312
395
  "variant": "primary",
396
+ "type": "button",
313
397
  "icon": "repeat"
314
398
  }
315
- ]
399
+ ],
400
+ "gap": "md"
316
401
  },
317
402
  {
318
403
  "type": "divider"
@@ -320,10 +405,13 @@
320
405
  {
321
406
  "type": "empty-state",
322
407
  "icon": "repeat",
323
- "title": "Nothing open",
324
- "description": "Click Open to view details in a modal overlay."
408
+ "description": "Click Open to view details in a modal overlay.",
409
+ "title": "Nothing open"
325
410
  }
326
- ]
411
+ ],
412
+ "direction": "vertical",
413
+ "type": "stack",
414
+ "gap": "lg"
327
415
  }
328
416
  ]
329
417
  ]
@@ -356,39 +444,36 @@
356
444
  "render-ui",
357
445
  "main",
358
446
  {
359
- "type": "stack",
360
- "direction": "vertical",
361
- "gap": "lg",
362
447
  "children": [
363
448
  {
364
- "type": "stack",
449
+ "justify": "space-between",
365
450
  "direction": "horizontal",
366
451
  "gap": "md",
367
- "justify": "space-between",
452
+ "type": "stack",
368
453
  "children": [
369
454
  {
370
455
  "type": "stack",
371
- "direction": "horizontal",
372
- "gap": "md",
373
456
  "children": [
374
457
  {
375
- "type": "icon",
376
458
  "name": "repeat",
377
- "size": "lg"
459
+ "size": "lg",
460
+ "type": "icon"
378
461
  },
379
462
  {
380
463
  "type": "typography",
381
- "content": "Switch Provider",
382
- "variant": "h2"
464
+ "variant": "h2",
465
+ "content": "Switch Provider"
383
466
  }
384
- ]
467
+ ],
468
+ "gap": "md",
469
+ "direction": "horizontal"
385
470
  },
386
471
  {
472
+ "variant": "primary",
473
+ "icon": "repeat",
387
474
  "type": "button",
388
475
  "label": "Open",
389
- "event": "SWITCH",
390
- "variant": "primary",
391
- "icon": "repeat"
476
+ "event": "SWITCH"
392
477
  }
393
478
  ]
394
479
  },
@@ -397,22 +482,90 @@
397
482
  },
398
483
  {
399
484
  "type": "empty-state",
400
- "icon": "repeat",
401
485
  "title": "Nothing open",
402
- "description": "Click Open to view details in a modal overlay."
486
+ "description": "Click Open to view details in a modal overlay.",
487
+ "icon": "repeat"
403
488
  }
404
- ]
489
+ ],
490
+ "gap": "lg",
491
+ "type": "stack",
492
+ "direction": "vertical"
405
493
  }
406
494
  ]
407
495
  ]
408
496
  }
409
497
  ]
410
- }
498
+ },
499
+ "scope": "instance"
411
500
  },
412
501
  {
413
502
  "name": "AgentProviderNotification",
414
- "linkedEntity": "AgentProvider",
415
503
  "category": "interaction",
504
+ "linkedEntity": "AgentProvider",
505
+ "emits": [
506
+ {
507
+ "event": "AgentProviderLoaded",
508
+ "description": "Fired when AgentProvider finishes loading",
509
+ "scope": "internal",
510
+ "payload": [
511
+ {
512
+ "name": "id",
513
+ "type": "string"
514
+ },
515
+ {
516
+ "name": "name",
517
+ "type": "string"
518
+ },
519
+ {
520
+ "name": "description",
521
+ "type": "string"
522
+ },
523
+ {
524
+ "name": "status",
525
+ "type": "string"
526
+ },
527
+ {
528
+ "name": "createdAt",
529
+ "type": "string"
530
+ },
531
+ {
532
+ "name": "currentProvider",
533
+ "type": "string"
534
+ },
535
+ {
536
+ "name": "currentModel",
537
+ "type": "string"
538
+ },
539
+ {
540
+ "name": "fallbackProvider",
541
+ "type": "string"
542
+ },
543
+ {
544
+ "name": "requestCount",
545
+ "type": "number"
546
+ },
547
+ {
548
+ "name": "message",
549
+ "type": "string"
550
+ },
551
+ {
552
+ "name": "notificationType",
553
+ "type": "string"
554
+ }
555
+ ]
556
+ },
557
+ {
558
+ "event": "AgentProviderLoadFailed",
559
+ "description": "Fired when AgentProvider fails to load",
560
+ "scope": "internal",
561
+ "payload": [
562
+ {
563
+ "name": "message",
564
+ "type": "string"
565
+ }
566
+ ]
567
+ }
568
+ ],
416
569
  "stateMachine": {
417
570
  "states": [
418
571
  {
@@ -430,7 +583,7 @@
430
583
  },
431
584
  {
432
585
  "key": "SHOW",
433
- "name": "Show Notification",
586
+ "name": "Show",
434
587
  "payload": [
435
588
  {
436
589
  "name": "message",
@@ -445,7 +598,21 @@
445
598
  },
446
599
  {
447
600
  "key": "HIDE",
448
- "name": "Hide Notification"
601
+ "name": "Hide"
602
+ },
603
+ {
604
+ "key": "AgentProviderLoaded",
605
+ "name": "AgentProvider loaded"
606
+ },
607
+ {
608
+ "key": "AgentProviderLoadFailed",
609
+ "name": "AgentProvider load failed",
610
+ "payload": [
611
+ {
612
+ "name": "message",
613
+ "type": "string"
614
+ }
615
+ ]
449
616
  }
450
617
  ],
451
618
  "transitions": [
@@ -456,7 +623,13 @@
456
623
  "effects": [
457
624
  [
458
625
  "fetch",
459
- "AgentProvider"
626
+ "AgentProvider",
627
+ {
628
+ "emit": {
629
+ "success": "AgentProviderLoaded",
630
+ "failure": "AgentProviderLoadFailed"
631
+ }
632
+ }
460
633
  ]
461
634
  ]
462
635
  },
@@ -479,49 +652,47 @@
479
652
  "render-ui",
480
653
  "main",
481
654
  {
482
- "type": "stack",
483
- "direction": "vertical",
484
655
  "gap": "lg",
656
+ "type": "stack",
485
657
  "children": [
486
658
  {
487
659
  "type": "stack",
488
660
  "direction": "horizontal",
489
- "gap": "md",
490
661
  "justify": "space-between",
491
662
  "align": "center",
492
663
  "children": [
493
664
  {
494
- "type": "stack",
495
665
  "direction": "horizontal",
496
- "gap": "md",
666
+ "type": "stack",
497
667
  "align": "center",
498
668
  "children": [
499
669
  {
500
- "type": "icon",
501
670
  "name": "server",
502
- "size": "lg"
671
+ "size": "lg",
672
+ "type": "icon"
503
673
  },
504
674
  {
505
675
  "type": "typography",
506
676
  "content": "Provider Status",
507
677
  "variant": "h2"
508
678
  }
509
- ]
679
+ ],
680
+ "gap": "md"
510
681
  },
511
682
  {
512
683
  "type": "button",
513
- "label": "Dismiss",
514
684
  "event": "HIDE",
685
+ "icon": "x",
515
686
  "variant": "ghost",
516
- "icon": "x"
687
+ "label": "Dismiss"
517
688
  }
518
- ]
689
+ ],
690
+ "gap": "md"
519
691
  },
520
692
  {
521
693
  "type": "divider"
522
694
  },
523
695
  {
524
- "type": "alert",
525
696
  "variant": [
526
697
  "object/get",
527
698
  [
@@ -530,6 +701,7 @@
530
701
  ],
531
702
  "notificationType"
532
703
  ],
704
+ "type": "alert",
533
705
  "message": [
534
706
  "object/get",
535
707
  [
@@ -556,7 +728,8 @@
556
728
  ],
557
729
  "category": "compliance"
558
730
  }
559
- ]
731
+ ],
732
+ "direction": "vertical"
560
733
  }
561
734
  ]
562
735
  ]
@@ -580,64 +753,64 @@
580
753
  "render-ui",
581
754
  "main",
582
755
  {
583
- "type": "stack",
584
756
  "direction": "vertical",
757
+ "type": "stack",
585
758
  "gap": "lg",
586
759
  "children": [
587
760
  {
588
- "type": "stack",
589
- "direction": "horizontal",
590
- "gap": "md",
591
- "justify": "space-between",
592
- "align": "center",
593
761
  "children": [
594
762
  {
595
- "type": "stack",
596
- "direction": "horizontal",
597
- "gap": "md",
598
- "align": "center",
599
763
  "children": [
600
764
  {
765
+ "size": "lg",
601
766
  "type": "icon",
602
- "name": "server",
603
- "size": "lg"
767
+ "name": "server"
604
768
  },
605
769
  {
606
- "type": "typography",
607
770
  "content": "Provider Status",
771
+ "type": "typography",
608
772
  "variant": "h2"
609
773
  }
610
- ]
774
+ ],
775
+ "gap": "md",
776
+ "align": "center",
777
+ "type": "stack",
778
+ "direction": "horizontal"
611
779
  },
612
780
  {
613
781
  "type": "button",
614
- "label": "Dismiss",
615
- "event": "HIDE",
616
782
  "variant": "ghost",
617
- "icon": "x"
783
+ "event": "HIDE",
784
+ "icon": "x",
785
+ "label": "Dismiss"
618
786
  }
619
- ]
787
+ ],
788
+ "direction": "horizontal",
789
+ "gap": "md",
790
+ "type": "stack",
791
+ "align": "center",
792
+ "justify": "space-between"
620
793
  },
621
794
  {
622
795
  "type": "divider"
623
796
  },
624
797
  {
625
- "type": "alert",
626
- "variant": [
798
+ "message": [
627
799
  "object/get",
628
800
  [
629
801
  "array/first",
630
802
  "@entity"
631
803
  ],
632
- "notificationType"
804
+ "message"
633
805
  ],
634
- "message": [
806
+ "type": "alert",
807
+ "variant": [
635
808
  "object/get",
636
809
  [
637
810
  "array/first",
638
811
  "@entity"
639
812
  ],
640
- "message"
813
+ "notificationType"
641
814
  ]
642
815
  },
643
816
  {
@@ -646,7 +819,6 @@
646
819
  },
647
820
  {
648
821
  "type": "violation-alert",
649
- "severity": "warning",
650
822
  "message": [
651
823
  "object/get",
652
824
  [
@@ -655,6 +827,7 @@
655
827
  ],
656
828
  "message"
657
829
  ],
830
+ "severity": "warning",
658
831
  "category": "compliance"
659
832
  }
660
833
  ]
@@ -675,12 +848,13 @@
675
848
  ]
676
849
  }
677
850
  ]
678
- }
851
+ },
852
+ "scope": "instance"
679
853
  },
680
854
  {
681
855
  "name": "AgentProviderAgent",
682
- "linkedEntity": "AgentProvider",
683
856
  "category": "interaction",
857
+ "linkedEntity": "AgentProvider",
684
858
  "emits": [
685
859
  {
686
860
  "event": "SHOW",
@@ -695,13 +869,78 @@
695
869
  "type": "string"
696
870
  }
697
871
  ]
872
+ },
873
+ {
874
+ "event": "AgentProviderLoaded",
875
+ "description": "Fired when AgentProvider finishes loading",
876
+ "scope": "internal",
877
+ "payload": [
878
+ {
879
+ "name": "id",
880
+ "type": "string"
881
+ },
882
+ {
883
+ "name": "name",
884
+ "type": "string"
885
+ },
886
+ {
887
+ "name": "description",
888
+ "type": "string"
889
+ },
890
+ {
891
+ "name": "status",
892
+ "type": "string"
893
+ },
894
+ {
895
+ "name": "createdAt",
896
+ "type": "string"
897
+ },
898
+ {
899
+ "name": "currentProvider",
900
+ "type": "string"
901
+ },
902
+ {
903
+ "name": "currentModel",
904
+ "type": "string"
905
+ },
906
+ {
907
+ "name": "fallbackProvider",
908
+ "type": "string"
909
+ },
910
+ {
911
+ "name": "requestCount",
912
+ "type": "number"
913
+ },
914
+ {
915
+ "name": "message",
916
+ "type": "string"
917
+ },
918
+ {
919
+ "name": "notificationType",
920
+ "type": "string"
921
+ }
922
+ ]
923
+ },
924
+ {
925
+ "event": "AgentProviderLoadFailed",
926
+ "description": "Fired when AgentProvider fails to load",
927
+ "scope": "internal",
928
+ "payload": [
929
+ {
930
+ "name": "message",
931
+ "type": "string"
932
+ }
933
+ ]
698
934
  }
699
935
  ],
700
936
  "listens": [
701
937
  {
702
938
  "event": "SWITCHED",
703
- "scope": "external",
704
- "triggers": "SWITCHED"
939
+ "triggers": "SWITCHED",
940
+ "source": {
941
+ "kind": "trait",
942
+ "trait": "AgentProviderModal"
943
+ }
705
944
  }
706
945
  ],
707
946
  "stateMachine": {
@@ -733,18 +972,29 @@
733
972
  }
734
973
  ]
735
974
  },
975
+ {
976
+ "key": "SWITCHED",
977
+ "name": "Switched"
978
+ },
736
979
  {
737
980
  "key": "SWITCH_AUTO",
738
- "name": "Auto Switch to Fallback"
981
+ "name": "Switch Auto"
739
982
  },
740
983
  {
741
- "key": "SWITCHED",
742
- "name": "Switched",
984
+ "key": "SHOW",
985
+ "name": "Show"
986
+ },
987
+ {
988
+ "key": "AgentProviderLoaded",
989
+ "name": "AgentProvider loaded"
990
+ },
991
+ {
992
+ "key": "AgentProviderLoadFailed",
993
+ "name": "AgentProvider load failed",
743
994
  "payload": [
744
995
  {
745
- "name": "data",
746
- "type": "object",
747
- "required": true
996
+ "name": "message",
997
+ "type": "string"
748
998
  }
749
999
  ]
750
1000
  }
@@ -757,7 +1007,13 @@
757
1007
  "effects": [
758
1008
  [
759
1009
  "fetch",
760
- "AgentProvider"
1010
+ "AgentProvider",
1011
+ {
1012
+ "emit": {
1013
+ "success": "AgentProviderLoaded",
1014
+ "failure": "AgentProviderLoadFailed"
1015
+ }
1016
+ }
761
1017
  ],
762
1018
  [
763
1019
  "agent/provider"
@@ -769,16 +1025,16 @@
769
1025
  "render-ui",
770
1026
  "main",
771
1027
  {
772
- "type": "empty-state",
773
1028
  "icon": "repeat",
774
- "title": "Provider",
775
- "description": "Provider is ready"
1029
+ "type": "empty-state",
1030
+ "description": "Provider is ready",
1031
+ "title": "Provider"
776
1032
  }
777
1033
  ]
778
1034
  ]
779
1035
  },
780
1036
  {
781
- "from": "active",
1037
+ "from": "idle",
782
1038
  "to": "switching",
783
1039
  "event": "DO_SWITCH",
784
1040
  "effects": [
@@ -802,38 +1058,34 @@
802
1058
  {
803
1059
  "from": "active",
804
1060
  "to": "switching",
805
- "event": "SWITCHED",
1061
+ "event": "DO_SWITCH",
806
1062
  "effects": [
807
1063
  [
808
1064
  "agent/switch-provider",
1065
+ "@payload.data.currentProvider",
1066
+ "@payload.data.currentModel"
1067
+ ],
1068
+ [
1069
+ "set",
809
1070
  "@entity.currentProvider",
810
- "@entity.currentModel"
1071
+ "@payload.data.currentProvider"
1072
+ ],
1073
+ [
1074
+ "set",
1075
+ "@entity.currentModel",
1076
+ "@payload.data.currentModel"
811
1077
  ]
812
1078
  ]
813
1079
  },
814
1080
  {
815
- "from": "switching",
816
- "to": "active",
817
- "event": "INIT",
1081
+ "from": "active",
1082
+ "to": "switching",
1083
+ "event": "SWITCHED",
818
1084
  "effects": [
819
1085
  [
820
- "agent/provider"
821
- ],
822
- [
823
- "agent/model"
824
- ],
825
- [
826
- "set",
827
- "@entity.requestCount",
828
- [
829
- "+",
830
- "@entity.requestCount",
831
- 1
832
- ]
833
- ],
834
- [
835
- "emit",
836
- "SHOW"
1086
+ "agent/switch-provider",
1087
+ "@entity.currentProvider",
1088
+ "@entity.currentModel"
837
1089
  ]
838
1090
  ]
839
1091
  },
@@ -854,29 +1106,34 @@
854
1106
  ]
855
1107
  },
856
1108
  {
857
- "from": "idle",
858
- "to": "switching",
859
- "event": "DO_SWITCH",
1109
+ "from": "switching",
1110
+ "to": "active",
1111
+ "event": "INIT",
860
1112
  "effects": [
861
1113
  [
862
- "agent/switch-provider",
863
- "@payload.data.currentProvider",
864
- "@payload.data.currentModel"
1114
+ "agent/provider"
865
1115
  ],
866
1116
  [
867
- "set",
868
- "@entity.currentProvider",
869
- "@payload.data.currentProvider"
1117
+ "agent/model"
870
1118
  ],
871
1119
  [
872
1120
  "set",
873
- "@entity.currentModel",
874
- "@payload.data.currentModel"
1121
+ "@entity.requestCount",
1122
+ [
1123
+ "+",
1124
+ "@entity.requestCount",
1125
+ 1.0
1126
+ ]
1127
+ ],
1128
+ [
1129
+ "emit",
1130
+ "SHOW"
875
1131
  ]
876
1132
  ]
877
1133
  }
878
1134
  ]
879
- }
1135
+ },
1136
+ "scope": "instance"
880
1137
  }
881
1138
  ],
882
1139
  "pages": [
@@ -898,4 +1155,4 @@
898
1155
  ]
899
1156
  }
900
1157
  ]
901
- }
1158
+ }