@almadar/std 6.1.0 → 6.1.7

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 (446) hide show
  1. package/behaviors/{exports → registry}/atoms/std-agent-activity-log.orb +154 -124
  2. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-agent-chat-thread.orb +4 -63
  3. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-agent-classifier.orb +8 -14
  4. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-agent-completion.orb +8 -14
  5. package/behaviors/{exports → registry}/atoms/std-agent-context-window.orb +4 -8
  6. package/behaviors/{exports → registry}/atoms/std-agent-conversation.orb +4 -79
  7. package/{dist/exports → behaviors/registry}/atoms/std-agent-memory.orb +13 -18
  8. package/behaviors/{exports → registry}/atoms/std-agent-provider.orb +9 -14
  9. package/{dist/exports → behaviors/registry}/atoms/std-agent-search.orb +5 -8
  10. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-agent-session.orb +11 -22
  11. package/behaviors/{exports → registry}/atoms/std-agent-step-progress.orb +4 -8
  12. package/{dist/exports → behaviors/registry}/atoms/std-agent-token-gauge.orb +4 -8
  13. package/behaviors/{exports → registry}/atoms/std-agent-tool-call.orb +8 -14
  14. package/behaviors/{exports → registry}/atoms/std-async.orb +4 -12
  15. package/{dist/exports → behaviors/registry}/atoms/std-autoregressive.orb +13 -2
  16. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-browse.orb +4 -8
  17. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-cache-aside.orb +4 -12
  18. package/{dist/exports → behaviors/registry}/atoms/std-calendar.orb +4 -8
  19. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-circuit-breaker.orb +4 -8
  20. package/behaviors/registry/atoms/std-classifier.orb.unconvertible.txt +7 -0
  21. package/behaviors/{exports → registry}/atoms/std-collision.orb +4 -8
  22. package/{dist/exports → behaviors/registry}/atoms/std-combat-log.orb +4 -8
  23. package/behaviors/{exports → registry}/atoms/std-combat.orb +4 -8
  24. package/{dist/exports → behaviors/registry}/atoms/std-confirmation.orb +6 -5
  25. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-dialogue-box.orb +4 -8
  26. package/behaviors/{exports → registry}/atoms/std-display.orb +4 -153
  27. package/{dist/exports → behaviors/registry}/atoms/std-drawer.orb +4 -58
  28. package/behaviors/{exports → registry}/atoms/std-filter.orb +4 -8
  29. package/{dist/exports → behaviors/registry}/atoms/std-flip-card.orb +4 -8
  30. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-gallery.orb +4 -8
  31. package/{dist/exports → behaviors/registry}/atoms/std-game-audio.orb +4 -8
  32. package/{dist/exports → behaviors/registry}/atoms/std-game-canvas2d.orb +3 -6
  33. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-game-canvas3d.orb +3 -6
  34. package/{dist/exports → behaviors/registry}/atoms/std-game-hud.orb +4 -16
  35. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-game-menu.orb +4 -8
  36. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-game-over-screen.orb +4 -8
  37. package/{dist/exports → behaviors/registry}/atoms/std-gameflow.orb +4 -8
  38. package/behaviors/registry/atoms/std-graph-classifier.orb.unconvertible.txt +7 -0
  39. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-input.orb +4 -8
  40. package/{dist/exports → behaviors/registry}/atoms/std-inventory-panel.orb +4 -12
  41. package/{dist/exports → behaviors/registry}/atoms/std-isometric-canvas.orb +4 -8
  42. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-loading.orb +4 -8
  43. package/behaviors/{exports → registry}/atoms/std-modal.orb +12 -9
  44. package/behaviors/{exports → registry}/atoms/std-movement.orb +4 -8
  45. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-notification.orb +4 -8
  46. package/{dist/exports → behaviors/registry}/atoms/std-overworld.orb +4 -8
  47. package/behaviors/{exports → registry}/atoms/std-pagination.orb +4 -8
  48. package/behaviors/{exports → registry}/atoms/std-physics2d.orb +4 -8
  49. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-platformer-canvas.orb +4 -8
  50. package/{dist/exports → behaviors/registry}/atoms/std-quest.orb +5 -14
  51. package/{dist/exports → behaviors/registry}/atoms/std-rate-limiter.orb +4 -8
  52. package/{dist/exports → behaviors/registry}/atoms/std-rating.orb +4 -8
  53. package/behaviors/registry/atoms/std-rl-agent.orb.unconvertible.txt +7 -0
  54. package/{dist/exports → behaviors/registry}/atoms/std-score-board.orb +4 -8
  55. package/{dist/exports → behaviors/registry}/atoms/std-score.orb +4 -8
  56. package/{dist/exports → behaviors/registry}/atoms/std-search.orb +4 -8
  57. package/{dist/exports → behaviors/registry}/atoms/std-selection.orb +4 -8
  58. package/{dist/exports → behaviors/registry}/atoms/std-service-custom-bearer.orb +4 -19
  59. package/{dist/exports → behaviors/registry}/atoms/std-service-custom-header.orb +4 -21
  60. package/behaviors/{exports → registry}/atoms/std-service-custom-noauth.orb +4 -15
  61. package/{dist/exports → behaviors/registry}/atoms/std-service-custom-query.orb +4 -21
  62. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-service-email.orb +4 -8
  63. package/{dist/exports → behaviors/registry}/atoms/std-service-github.orb +4 -8
  64. package/behaviors/{exports → registry}/atoms/std-service-llm.orb +4 -8
  65. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-service-oauth.orb +4 -8
  66. package/behaviors/{exports → registry}/atoms/std-service-redis.orb +4 -8
  67. package/{dist/exports → behaviors/registry}/atoms/std-service-storage.orb +4 -8
  68. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-service-stripe.orb +4 -8
  69. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-service-twilio.orb +4 -8
  70. package/{dist/exports → behaviors/registry}/atoms/std-service-youtube.orb +4 -8
  71. package/{dist/exports → behaviors/registry}/atoms/std-simulation-canvas.orb +4 -8
  72. package/{dist/exports → behaviors/registry}/atoms/std-sort.orb +4 -52
  73. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-sprite.orb +4 -8
  74. package/behaviors/{exports → registry}/atoms/std-tabs.orb +4 -16
  75. package/behaviors/registry/atoms/std-text-classifier.orb.unconvertible.txt +7 -0
  76. package/{dist/exports → behaviors/registry}/atoms/std-text-effects.orb +4 -8
  77. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-theme.orb +4 -8
  78. package/behaviors/{exports → registry}/atoms/std-timer.orb +4 -8
  79. package/behaviors/registry/atoms/std-trainer.orb.unconvertible.txt +7 -0
  80. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-undo.orb +4 -8
  81. package/{dist/behaviors/exports → behaviors/registry}/atoms/std-upload.orb +4 -8
  82. package/{dist/exports → behaviors/registry}/atoms/std-validate-on-save.orb +4 -32
  83. package/{dist/exports → behaviors/registry}/atoms/std-wizard.orb +4 -26
  84. package/{dist/behaviors/exports → behaviors/registry}/molecules/std-agent-fix-loop.orb +1136 -1721
  85. package/{dist/behaviors/exports → behaviors/registry}/molecules/std-agent-learner.orb +606 -839
  86. package/behaviors/{exports → registry}/molecules/std-agent-planner.orb +613 -869
  87. package/behaviors/{exports → registry}/molecules/std-agent-rag.orb +562 -768
  88. package/behaviors/registry/molecules/std-agent-tool-loop.orb +2507 -0
  89. package/{dist/behaviors/exports → behaviors/registry}/molecules/std-builder-game.orb +4 -8
  90. package/{dist/exports → behaviors/registry}/molecules/std-cart.orb +197 -318
  91. package/{dist/behaviors/exports → behaviors/registry}/molecules/std-classifier-game.orb +4 -8
  92. package/{dist/exports → behaviors/registry}/molecules/std-debugger-game.orb +4 -8
  93. package/behaviors/registry/molecules/std-detail.orb +439 -0
  94. package/behaviors/{exports → registry}/molecules/std-event-handler-game.orb +4 -8
  95. package/{dist/exports → behaviors/registry}/molecules/std-form-advanced.orb +4 -12
  96. package/behaviors/registry/molecules/std-geospatial.orb +502 -0
  97. package/behaviors/registry/molecules/std-inventory.orb +564 -0
  98. package/behaviors/registry/molecules/std-list.orb +707 -0
  99. package/behaviors/registry/molecules/std-messaging.orb +424 -0
  100. package/behaviors/{exports → registry}/molecules/std-negotiator-game.orb +4 -8
  101. package/behaviors/{exports → registry}/molecules/std-platformer-game.orb +4 -8
  102. package/behaviors/{exports → registry}/molecules/std-puzzle-game.orb +4 -8
  103. package/{dist/behaviors/exports → behaviors/registry}/molecules/std-quiz.orb +4 -8
  104. package/{dist/exports → behaviors/registry}/molecules/std-sequencer-game.orb +4 -8
  105. package/behaviors/{exports → registry}/molecules/std-service-content-pipeline.orb +4 -8
  106. package/{dist/behaviors/exports → behaviors/registry}/molecules/std-service-custom-api-tester.orb +4 -46
  107. package/{dist/exports → behaviors/registry}/molecules/std-service-devops-toolkit.orb +4 -8
  108. package/{dist/exports → behaviors/registry}/molecules/std-service-notification-hub.orb +4 -8
  109. package/{dist/exports → behaviors/registry}/molecules/std-service-payment-flow.orb +8 -10
  110. package/behaviors/{exports → registry}/molecules/std-simulator-game.orb +4 -8
  111. package/{dist/behaviors/exports → behaviors/registry}/molecules/std-turn-based-battle.orb +4 -8
  112. package/{dist/exports → behaviors/registry}/organisms/std-agent-assistant.orb +24 -38
  113. package/behaviors/{exports → registry}/organisms/std-agent-builder.orb +816 -1320
  114. package/{dist/exports → behaviors/registry}/organisms/std-agent-pipeline.orb +785 -1283
  115. package/{dist/exports → behaviors/registry}/organisms/std-agent-reviewer.orb +308 -372
  116. package/{dist/exports → behaviors/registry}/organisms/std-agent-tutor.orb +325 -387
  117. package/{dist/exports → behaviors/registry}/organisms/std-api-gateway.orb +24 -26
  118. package/{dist/exports → behaviors/registry}/organisms/std-arcade-game.orb +4 -4
  119. package/{dist/exports → behaviors/registry}/organisms/std-booking-system.orb +44 -48
  120. package/{dist/behaviors/exports → behaviors/registry}/organisms/std-cicd-pipeline.orb +24 -30
  121. package/behaviors/{exports → registry}/organisms/std-cms.orb +50 -55
  122. package/{dist/behaviors/exports → behaviors/registry}/organisms/std-coding-academy.orb +4 -4
  123. package/{dist/exports → behaviors/registry}/organisms/std-crm.orb +50 -55
  124. package/{dist/exports → behaviors/registry}/organisms/std-devops-dashboard.orb +24 -26
  125. package/{dist/behaviors/exports → behaviors/registry}/organisms/std-ecommerce.orb +48 -58
  126. package/{dist/behaviors/exports → behaviors/registry}/organisms/std-finance-tracker.orb +30 -33
  127. package/{dist/exports → behaviors/registry}/organisms/std-healthcare.orb +50 -55
  128. package/{dist/exports → behaviors/registry}/organisms/std-helpdesk.orb +30 -33
  129. package/behaviors/{exports → registry}/organisms/std-hr-portal.orb +44 -48
  130. package/{dist/behaviors/exports → behaviors/registry}/organisms/std-iot-dashboard.orb +24 -26
  131. package/{dist/exports → behaviors/registry}/organisms/std-lms.orb +24 -26
  132. package/{dist/behaviors/exports → behaviors/registry}/organisms/std-logic-training.orb +4 -4
  133. package/behaviors/{exports → registry}/organisms/std-platformer-app.orb +20 -24
  134. package/behaviors/{exports → registry}/organisms/std-project-manager.orb +44 -48
  135. package/{dist/exports → behaviors/registry}/organisms/std-puzzle-app.orb +4 -4
  136. package/{dist/behaviors/exports → behaviors/registry}/organisms/std-realtime-chat.orb +30 -33
  137. package/{dist/behaviors/exports → behaviors/registry}/organisms/std-rpg-game.orb +20 -28
  138. package/{dist/exports → behaviors/registry}/organisms/std-service-marketplace.orb +52 -58
  139. package/{dist/exports → behaviors/registry}/organisms/std-service-research-assistant.orb +4 -15
  140. package/behaviors/{exports → registry}/organisms/std-social-feed.orb +16 -18
  141. package/behaviors/{exports → registry}/organisms/std-stem-lab.orb +4 -4
  142. package/{dist/behaviors/exports → behaviors/registry}/organisms/std-strategy-game.orb +4 -4
  143. package/{dist/exports → behaviors/registry}/organisms/std-trading-dashboard.orb +24 -30
  144. package/dist/behaviors/{exports → registry}/atoms/std-agent-activity-log.orb +154 -124
  145. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-agent-chat-thread.orb +4 -63
  146. package/dist/{exports → behaviors/registry}/atoms/std-agent-classifier.orb +8 -14
  147. package/dist/{exports → behaviors/registry}/atoms/std-agent-completion.orb +8 -14
  148. package/dist/{exports → behaviors/registry}/atoms/std-agent-context-window.orb +4 -8
  149. package/dist/{exports → behaviors/registry}/atoms/std-agent-conversation.orb +4 -79
  150. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-agent-memory.orb +13 -18
  151. package/dist/{exports → behaviors/registry}/atoms/std-agent-provider.orb +9 -14
  152. package/dist/behaviors/{exports → registry}/atoms/std-agent-search.orb +5 -8
  153. package/dist/{exports → behaviors/registry}/atoms/std-agent-session.orb +11 -22
  154. package/dist/{exports → behaviors/registry}/atoms/std-agent-step-progress.orb +4 -8
  155. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-agent-token-gauge.orb +4 -8
  156. package/dist/behaviors/{exports → registry}/atoms/std-agent-tool-call.orb +8 -14
  157. package/dist/behaviors/{exports → registry}/atoms/std-async.orb +4 -12
  158. package/dist/behaviors/{exports → registry}/atoms/std-autoregressive.orb +13 -2
  159. package/dist/{exports → behaviors/registry}/atoms/std-browse.orb +4 -8
  160. package/dist/{exports → behaviors/registry}/atoms/std-cache-aside.orb +4 -12
  161. package/dist/behaviors/{exports → registry}/atoms/std-calendar.orb +4 -8
  162. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-circuit-breaker.orb +4 -8
  163. package/dist/behaviors/registry/atoms/std-classifier.orb.unconvertible.txt +7 -0
  164. package/dist/behaviors/{exports → registry}/atoms/std-collision.orb +4 -8
  165. package/dist/behaviors/{exports → registry}/atoms/std-combat-log.orb +4 -8
  166. package/dist/{exports → behaviors/registry}/atoms/std-combat.orb +4 -8
  167. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-confirmation.orb +6 -5
  168. package/dist/{exports → behaviors/registry}/atoms/std-dialogue-box.orb +4 -8
  169. package/dist/{exports → behaviors/registry}/atoms/std-display.orb +4 -153
  170. package/dist/behaviors/{exports → registry}/atoms/std-drawer.orb +4 -58
  171. package/dist/behaviors/{exports → registry}/atoms/std-filter.orb +4 -8
  172. package/dist/behaviors/{exports → registry}/atoms/std-flip-card.orb +4 -8
  173. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-gallery.orb +4 -8
  174. package/dist/behaviors/{exports → registry}/atoms/std-game-audio.orb +4 -8
  175. package/dist/behaviors/{exports → registry}/atoms/std-game-canvas2d.orb +3 -6
  176. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-game-canvas3d.orb +3 -6
  177. package/dist/behaviors/{exports → registry}/atoms/std-game-hud.orb +4 -16
  178. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-game-menu.orb +4 -8
  179. package/dist/{exports → behaviors/registry}/atoms/std-game-over-screen.orb +4 -8
  180. package/dist/behaviors/{exports → registry}/atoms/std-gameflow.orb +4 -8
  181. package/dist/behaviors/registry/atoms/std-graph-classifier.orb.unconvertible.txt +7 -0
  182. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-input.orb +4 -8
  183. package/dist/behaviors/{exports → registry}/atoms/std-inventory-panel.orb +4 -12
  184. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-isometric-canvas.orb +4 -8
  185. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-loading.orb +4 -8
  186. package/dist/{exports → behaviors/registry}/atoms/std-modal.orb +12 -9
  187. package/dist/behaviors/{exports → registry}/atoms/std-movement.orb +4 -8
  188. package/dist/{exports → behaviors/registry}/atoms/std-notification.orb +4 -8
  189. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-overworld.orb +4 -8
  190. package/dist/behaviors/{exports → registry}/atoms/std-pagination.orb +4 -8
  191. package/dist/behaviors/{exports → registry}/atoms/std-physics2d.orb +4 -8
  192. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-platformer-canvas.orb +4 -8
  193. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-quest.orb +5 -14
  194. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-rate-limiter.orb +4 -8
  195. package/dist/behaviors/{exports → registry}/atoms/std-rating.orb +4 -8
  196. package/dist/behaviors/registry/atoms/std-rl-agent.orb.unconvertible.txt +7 -0
  197. package/dist/behaviors/{exports → registry}/atoms/std-score-board.orb +4 -8
  198. package/dist/behaviors/{exports → registry}/atoms/std-score.orb +4 -8
  199. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-search.orb +4 -8
  200. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-selection.orb +4 -8
  201. package/dist/behaviors/{exports → registry}/atoms/std-service-custom-bearer.orb +4 -19
  202. package/dist/behaviors/{exports → registry}/atoms/std-service-custom-header.orb +4 -21
  203. package/dist/{exports → behaviors/registry}/atoms/std-service-custom-noauth.orb +4 -15
  204. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-service-custom-query.orb +4 -21
  205. package/dist/{exports → behaviors/registry}/atoms/std-service-email.orb +4 -8
  206. package/dist/behaviors/{exports → registry}/atoms/std-service-github.orb +4 -8
  207. package/dist/{exports → behaviors/registry}/atoms/std-service-llm.orb +4 -8
  208. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-service-oauth.orb +4 -8
  209. package/dist/behaviors/{exports → registry}/atoms/std-service-redis.orb +4 -8
  210. package/dist/behaviors/{exports → registry}/atoms/std-service-storage.orb +4 -8
  211. package/dist/{exports → behaviors/registry}/atoms/std-service-stripe.orb +4 -8
  212. package/dist/{exports → behaviors/registry}/atoms/std-service-twilio.orb +4 -8
  213. package/dist/behaviors/{exports → registry}/atoms/std-service-youtube.orb +4 -8
  214. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-simulation-canvas.orb +4 -8
  215. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-sort.orb +4 -52
  216. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-sprite.orb +4 -8
  217. package/dist/{exports → behaviors/registry}/atoms/std-tabs.orb +4 -16
  218. package/dist/behaviors/registry/atoms/std-text-classifier.orb.unconvertible.txt +7 -0
  219. package/dist/behaviors/{exports → registry}/atoms/std-text-effects.orb +4 -8
  220. package/dist/{exports → behaviors/registry}/atoms/std-theme.orb +4 -8
  221. package/dist/{exports → behaviors/registry}/atoms/std-timer.orb +4 -8
  222. package/dist/behaviors/registry/atoms/std-trainer.orb.unconvertible.txt +7 -0
  223. package/dist/{exports → behaviors/registry}/atoms/std-undo.orb +4 -8
  224. package/dist/{exports → behaviors/registry}/atoms/std-upload.orb +4 -8
  225. package/{behaviors/exports → dist/behaviors/registry}/atoms/std-validate-on-save.orb +4 -32
  226. package/dist/behaviors/{exports → registry}/atoms/std-wizard.orb +4 -26
  227. package/dist/{exports → behaviors/registry}/molecules/std-agent-fix-loop.orb +1136 -1721
  228. package/{behaviors/exports → dist/behaviors/registry}/molecules/std-agent-learner.orb +606 -839
  229. package/dist/{exports → behaviors/registry}/molecules/std-agent-planner.orb +613 -869
  230. package/dist/behaviors/{exports → registry}/molecules/std-agent-rag.orb +562 -768
  231. package/dist/behaviors/registry/molecules/std-agent-tool-loop.orb +2507 -0
  232. package/dist/{exports → behaviors/registry}/molecules/std-builder-game.orb +4 -8
  233. package/{behaviors/exports → dist/behaviors/registry}/molecules/std-cart.orb +197 -318
  234. package/dist/{exports → behaviors/registry}/molecules/std-classifier-game.orb +4 -8
  235. package/{behaviors/exports → dist/behaviors/registry}/molecules/std-debugger-game.orb +4 -8
  236. package/dist/behaviors/registry/molecules/std-detail.orb +439 -0
  237. package/dist/{exports → behaviors/registry}/molecules/std-event-handler-game.orb +4 -8
  238. package/{behaviors/exports → dist/behaviors/registry}/molecules/std-form-advanced.orb +4 -12
  239. package/dist/behaviors/registry/molecules/std-geospatial.orb +502 -0
  240. package/dist/behaviors/registry/molecules/std-inventory.orb +564 -0
  241. package/dist/behaviors/registry/molecules/std-list.orb +707 -0
  242. package/dist/behaviors/registry/molecules/std-messaging.orb +424 -0
  243. package/dist/{exports → behaviors/registry}/molecules/std-negotiator-game.orb +4 -8
  244. package/dist/{exports → behaviors/registry}/molecules/std-platformer-game.orb +4 -8
  245. package/dist/behaviors/{exports → registry}/molecules/std-puzzle-game.orb +4 -8
  246. package/{behaviors/exports → dist/behaviors/registry}/molecules/std-quiz.orb +4 -8
  247. package/{behaviors/exports → dist/behaviors/registry}/molecules/std-sequencer-game.orb +4 -8
  248. package/dist/{exports → behaviors/registry}/molecules/std-service-content-pipeline.orb +4 -8
  249. package/{behaviors/exports → dist/behaviors/registry}/molecules/std-service-custom-api-tester.orb +4 -46
  250. package/{behaviors/exports → dist/behaviors/registry}/molecules/std-service-devops-toolkit.orb +4 -8
  251. package/{behaviors/exports → dist/behaviors/registry}/molecules/std-service-notification-hub.orb +4 -8
  252. package/{behaviors/exports → dist/behaviors/registry}/molecules/std-service-payment-flow.orb +8 -10
  253. package/dist/{exports → behaviors/registry}/molecules/std-simulator-game.orb +4 -8
  254. package/dist/{exports → behaviors/registry}/molecules/std-turn-based-battle.orb +4 -8
  255. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-agent-assistant.orb +24 -38
  256. package/dist/{exports → behaviors/registry}/organisms/std-agent-builder.orb +816 -1320
  257. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-agent-pipeline.orb +785 -1283
  258. package/dist/behaviors/{exports → registry}/organisms/std-agent-reviewer.orb +308 -372
  259. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-agent-tutor.orb +325 -387
  260. package/dist/behaviors/{exports → registry}/organisms/std-api-gateway.orb +24 -26
  261. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-arcade-game.orb +4 -4
  262. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-booking-system.orb +44 -48
  263. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-cicd-pipeline.orb +24 -30
  264. package/dist/{exports → behaviors/registry}/organisms/std-cms.orb +50 -55
  265. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-coding-academy.orb +4 -4
  266. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-crm.orb +50 -55
  267. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-devops-dashboard.orb +24 -26
  268. package/dist/{exports → behaviors/registry}/organisms/std-ecommerce.orb +48 -58
  269. package/dist/{exports → behaviors/registry}/organisms/std-finance-tracker.orb +30 -33
  270. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-healthcare.orb +50 -55
  271. package/dist/behaviors/{exports → registry}/organisms/std-helpdesk.orb +30 -33
  272. package/dist/behaviors/{exports → registry}/organisms/std-hr-portal.orb +44 -48
  273. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-iot-dashboard.orb +24 -26
  274. package/dist/behaviors/{exports → registry}/organisms/std-lms.orb +24 -26
  275. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-logic-training.orb +4 -4
  276. package/dist/behaviors/{exports → registry}/organisms/std-platformer-app.orb +20 -24
  277. package/dist/{exports → behaviors/registry}/organisms/std-project-manager.orb +44 -48
  278. package/dist/behaviors/{exports → registry}/organisms/std-puzzle-app.orb +4 -4
  279. package/dist/{exports → behaviors/registry}/organisms/std-realtime-chat.orb +30 -33
  280. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-rpg-game.orb +20 -28
  281. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-service-marketplace.orb +52 -58
  282. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-service-research-assistant.orb +4 -15
  283. package/dist/{exports → behaviors/registry}/organisms/std-social-feed.orb +16 -18
  284. package/dist/{exports → behaviors/registry}/organisms/std-stem-lab.orb +4 -4
  285. package/{behaviors/exports → dist/behaviors/registry}/organisms/std-strategy-game.orb +4 -4
  286. package/dist/behaviors/{exports → registry}/organisms/std-trading-dashboard.orb +24 -30
  287. package/package.json +2 -2
  288. package/behaviors/exports/atoms/std-agent-classifier.orb +0 -879
  289. package/behaviors/exports/atoms/std-agent-completion.orb +0 -941
  290. package/behaviors/exports/atoms/std-agent-search.orb +0 -431
  291. package/behaviors/exports/atoms/std-agent-session.orb +0 -777
  292. package/behaviors/exports/atoms/std-autoregressive.orb +0 -420
  293. package/behaviors/exports/atoms/std-browse.orb +0 -251
  294. package/behaviors/exports/atoms/std-cache-aside.orb +0 -1101
  295. package/behaviors/exports/atoms/std-calendar.orb +0 -775
  296. package/behaviors/exports/atoms/std-combat-log.orb +0 -268
  297. package/behaviors/exports/atoms/std-dialogue-box.orb +0 -249
  298. package/behaviors/exports/atoms/std-drawer.orb +0 -578
  299. package/behaviors/exports/atoms/std-flip-card.orb +0 -601
  300. package/behaviors/exports/atoms/std-game-audio.orb +0 -350
  301. package/behaviors/exports/atoms/std-game-canvas2d.orb +0 -263
  302. package/behaviors/exports/atoms/std-game-hud.orb +0 -170
  303. package/behaviors/exports/atoms/std-game-over-screen.orb +0 -206
  304. package/behaviors/exports/atoms/std-gameflow.orb +0 -419
  305. package/behaviors/exports/atoms/std-inventory-panel.orb +0 -266
  306. package/behaviors/exports/atoms/std-notification.orb +0 -446
  307. package/behaviors/exports/atoms/std-rating.orb +0 -333
  308. package/behaviors/exports/atoms/std-score-board.orb +0 -249
  309. package/behaviors/exports/atoms/std-score.orb +0 -713
  310. package/behaviors/exports/atoms/std-service-custom-bearer.orb +0 -562
  311. package/behaviors/exports/atoms/std-service-custom-header.orb +0 -564
  312. package/behaviors/exports/atoms/std-service-email.orb +0 -545
  313. package/behaviors/exports/atoms/std-service-github.orb +0 -591
  314. package/behaviors/exports/atoms/std-service-storage.orb +0 -669
  315. package/behaviors/exports/atoms/std-service-stripe.orb +0 -644
  316. package/behaviors/exports/atoms/std-service-twilio.orb +0 -616
  317. package/behaviors/exports/atoms/std-service-youtube.orb +0 -701
  318. package/behaviors/exports/atoms/std-text-effects.orb +0 -663
  319. package/behaviors/exports/atoms/std-theme.orb +0 -578
  320. package/behaviors/exports/atoms/std-undo.orb +0 -830
  321. package/behaviors/exports/atoms/std-upload.orb +0 -540
  322. package/behaviors/exports/atoms/std-wizard.orb +0 -1120
  323. package/behaviors/exports/molecules/std-agent-fix-loop.orb +0 -3327
  324. package/behaviors/exports/molecules/std-agent-tool-loop.orb +0 -4451
  325. package/behaviors/exports/molecules/std-builder-game.orb +0 -234
  326. package/behaviors/exports/molecules/std-classifier-game.orb +0 -234
  327. package/behaviors/exports/molecules/std-detail.orb +0 -621
  328. package/behaviors/exports/molecules/std-geospatial.orb +0 -657
  329. package/behaviors/exports/molecules/std-inventory.orb +0 -823
  330. package/behaviors/exports/molecules/std-list.orb +0 -1066
  331. package/behaviors/exports/molecules/std-messaging.orb +0 -605
  332. package/behaviors/exports/molecules/std-turn-based-battle.orb +0 -514
  333. package/behaviors/exports/organisms/std-agent-reviewer.orb +0 -5277
  334. package/behaviors/exports/organisms/std-api-gateway.orb +0 -3745
  335. package/behaviors/exports/organisms/std-ecommerce.orb +0 -4553
  336. package/behaviors/exports/organisms/std-finance-tracker.orb +0 -3091
  337. package/behaviors/exports/organisms/std-helpdesk.orb +0 -3328
  338. package/behaviors/exports/organisms/std-lms.orb +0 -3885
  339. package/behaviors/exports/organisms/std-puzzle-app.orb +0 -889
  340. package/behaviors/exports/organisms/std-realtime-chat.orb +0 -3428
  341. package/behaviors/exports/organisms/std-trading-dashboard.orb +0 -3080
  342. package/behaviors/exports/test-schemas/os-trigger-simulation.orb +0 -202
  343. package/behaviors/exports/validation-report.json +0 -1672
  344. package/behaviors/exports/verify-results.json +0 -126
  345. package/dist/behaviors/exports/atoms/std-agent-context-window.orb +0 -2299
  346. package/dist/behaviors/exports/atoms/std-agent-conversation.orb +0 -1029
  347. package/dist/behaviors/exports/atoms/std-agent-memory.orb +0 -777
  348. package/dist/behaviors/exports/atoms/std-agent-provider.orb +0 -906
  349. package/dist/behaviors/exports/atoms/std-agent-step-progress.orb +0 -994
  350. package/dist/behaviors/exports/atoms/std-agent-token-gauge.orb +0 -1621
  351. package/dist/behaviors/exports/atoms/std-combat.orb +0 -421
  352. package/dist/behaviors/exports/atoms/std-confirmation.orb +0 -496
  353. package/dist/behaviors/exports/atoms/std-display.orb +0 -1803
  354. package/dist/behaviors/exports/atoms/std-isometric-canvas.orb +0 -642
  355. package/dist/behaviors/exports/atoms/std-modal.orb +0 -425
  356. package/dist/behaviors/exports/atoms/std-overworld.orb +0 -517
  357. package/dist/behaviors/exports/atoms/std-quest.orb +0 -1262
  358. package/dist/behaviors/exports/atoms/std-rate-limiter.orb +0 -897
  359. package/dist/behaviors/exports/atoms/std-search.orb +0 -394
  360. package/dist/behaviors/exports/atoms/std-selection.orb +0 -810
  361. package/dist/behaviors/exports/atoms/std-service-custom-noauth.orb +0 -558
  362. package/dist/behaviors/exports/atoms/std-service-custom-query.orb +0 -564
  363. package/dist/behaviors/exports/atoms/std-service-llm.orb +0 -676
  364. package/dist/behaviors/exports/atoms/std-simulation-canvas.orb +0 -194
  365. package/dist/behaviors/exports/atoms/std-sort.orb +0 -760
  366. package/dist/behaviors/exports/atoms/std-tabs.orb +0 -298
  367. package/dist/behaviors/exports/atoms/std-timer.orb +0 -1428
  368. package/dist/behaviors/exports/atoms/std-validate-on-save.orb +0 -624
  369. package/dist/behaviors/exports/molecules/std-agent-planner.orb +0 -2037
  370. package/dist/behaviors/exports/molecules/std-agent-tool-loop.orb +0 -4451
  371. package/dist/behaviors/exports/molecules/std-cart.orb +0 -754
  372. package/dist/behaviors/exports/molecules/std-debugger-game.orb +0 -234
  373. package/dist/behaviors/exports/molecules/std-detail.orb +0 -621
  374. package/dist/behaviors/exports/molecules/std-event-handler-game.orb +0 -234
  375. package/dist/behaviors/exports/molecules/std-form-advanced.orb +0 -659
  376. package/dist/behaviors/exports/molecules/std-geospatial.orb +0 -657
  377. package/dist/behaviors/exports/molecules/std-inventory.orb +0 -823
  378. package/dist/behaviors/exports/molecules/std-list.orb +0 -1066
  379. package/dist/behaviors/exports/molecules/std-messaging.orb +0 -605
  380. package/dist/behaviors/exports/molecules/std-negotiator-game.orb +0 -234
  381. package/dist/behaviors/exports/molecules/std-platformer-game.orb +0 -557
  382. package/dist/behaviors/exports/molecules/std-sequencer-game.orb +0 -234
  383. package/dist/behaviors/exports/molecules/std-service-content-pipeline.orb +0 -920
  384. package/dist/behaviors/exports/molecules/std-service-devops-toolkit.orb +0 -1531
  385. package/dist/behaviors/exports/molecules/std-service-notification-hub.orb +0 -701
  386. package/dist/behaviors/exports/molecules/std-service-payment-flow.orb +0 -878
  387. package/dist/behaviors/exports/molecules/std-simulator-game.orb +0 -234
  388. package/dist/behaviors/exports/organisms/std-agent-assistant.orb +0 -6336
  389. package/dist/behaviors/exports/organisms/std-agent-builder.orb +0 -14139
  390. package/dist/behaviors/exports/organisms/std-agent-pipeline.orb +0 -10974
  391. package/dist/behaviors/exports/organisms/std-agent-tutor.orb +0 -5003
  392. package/dist/behaviors/exports/organisms/std-arcade-game.orb +0 -1144
  393. package/dist/behaviors/exports/organisms/std-booking-system.orb +0 -5142
  394. package/dist/behaviors/exports/organisms/std-cms.orb +0 -2887
  395. package/dist/behaviors/exports/organisms/std-crm.orb +0 -4366
  396. package/dist/behaviors/exports/organisms/std-devops-dashboard.orb +0 -5772
  397. package/dist/behaviors/exports/organisms/std-healthcare.orb +0 -6001
  398. package/dist/behaviors/exports/organisms/std-project-manager.orb +0 -3819
  399. package/dist/behaviors/exports/organisms/std-service-marketplace.orb +0 -4479
  400. package/dist/behaviors/exports/organisms/std-service-research-assistant.orb +0 -3568
  401. package/dist/behaviors/exports/organisms/std-social-feed.orb +0 -1246
  402. package/dist/behaviors/exports/organisms/std-stem-lab.orb +0 -1922
  403. package/dist/behaviors/exports/test-schemas/os-trigger-simulation.orb +0 -202
  404. package/dist/behaviors/exports/validation-report.json +0 -1672
  405. package/dist/behaviors/exports/verify-results.json +0 -126
  406. package/dist/exports/atoms/std-agent-activity-log.orb +0 -575
  407. package/dist/exports/atoms/std-agent-chat-thread.orb +0 -783
  408. package/dist/exports/atoms/std-agent-tool-call.orb +0 -746
  409. package/dist/exports/atoms/std-async.orb +0 -443
  410. package/dist/exports/atoms/std-circuit-breaker.orb +0 -999
  411. package/dist/exports/atoms/std-collision.orb +0 -694
  412. package/dist/exports/atoms/std-filter.orb +0 -641
  413. package/dist/exports/atoms/std-gallery.orb +0 -387
  414. package/dist/exports/atoms/std-game-canvas3d.orb +0 -401
  415. package/dist/exports/atoms/std-game-menu.orb +0 -222
  416. package/dist/exports/atoms/std-input.orb +0 -640
  417. package/dist/exports/atoms/std-loading.orb +0 -496
  418. package/dist/exports/atoms/std-movement.orb +0 -1413
  419. package/dist/exports/atoms/std-pagination.orb +0 -266
  420. package/dist/exports/atoms/std-physics2d.orb +0 -430
  421. package/dist/exports/atoms/std-platformer-canvas.orb +0 -268
  422. package/dist/exports/atoms/std-service-oauth.orb +0 -769
  423. package/dist/exports/atoms/std-service-redis.orb +0 -585
  424. package/dist/exports/atoms/std-sprite.orb +0 -315
  425. package/dist/exports/molecules/std-agent-learner.orb +0 -2315
  426. package/dist/exports/molecules/std-agent-rag.orb +0 -1745
  427. package/dist/exports/molecules/std-agent-tool-loop.orb +0 -4451
  428. package/dist/exports/molecules/std-detail.orb +0 -621
  429. package/dist/exports/molecules/std-geospatial.orb +0 -657
  430. package/dist/exports/molecules/std-inventory.orb +0 -823
  431. package/dist/exports/molecules/std-list.orb +0 -1066
  432. package/dist/exports/molecules/std-messaging.orb +0 -605
  433. package/dist/exports/molecules/std-puzzle-game.orb +0 -584
  434. package/dist/exports/molecules/std-quiz.orb +0 -1074
  435. package/dist/exports/molecules/std-service-custom-api-tester.orb +0 -865
  436. package/dist/exports/organisms/std-cicd-pipeline.orb +0 -3425
  437. package/dist/exports/organisms/std-coding-academy.orb +0 -2084
  438. package/dist/exports/organisms/std-hr-portal.orb +0 -5236
  439. package/dist/exports/organisms/std-iot-dashboard.orb +0 -3914
  440. package/dist/exports/organisms/std-logic-training.orb +0 -753
  441. package/dist/exports/organisms/std-platformer-app.orb +0 -1679
  442. package/dist/exports/organisms/std-rpg-game.orb +0 -3298
  443. package/dist/exports/organisms/std-strategy-game.orb +0 -2443
  444. package/dist/exports/test-schemas/os-trigger-simulation.orb +0 -202
  445. package/dist/exports/validation-report.json +0 -1672
  446. package/dist/exports/verify-results.json +0 -126
@@ -1,3428 +0,0 @@
1
- {
2
- "name": "Realtime Chat",
3
- "version": "1.0.0",
4
- "orbitals": [
5
- {
6
- "name": "ChatMessageOrbital",
7
- "entity": {
8
- "name": "ChatMessage",
9
- "persistence": "persistent",
10
- "collection": "chatmessages",
11
- "fields": [
12
- {
13
- "name": "id",
14
- "type": "string",
15
- "required": true
16
- },
17
- {
18
- "name": "sender",
19
- "type": "string",
20
- "required": true
21
- },
22
- {
23
- "name": "content",
24
- "type": "string",
25
- "required": true
26
- },
27
- {
28
- "name": "channel",
29
- "type": "string"
30
- },
31
- {
32
- "name": "timestamp",
33
- "type": "date"
34
- }
35
- ]
36
- },
37
- "traits": [
38
- {
39
- "name": "ChatMessageBrowse",
40
- "linkedEntity": "ChatMessage",
41
- "category": "interaction",
42
- "listens": [
43
- {
44
- "event": "SEND",
45
- "triggers": "INIT"
46
- }
47
- ],
48
- "stateMachine": {
49
- "states": [
50
- {
51
- "name": "browsing",
52
- "isInitial": true
53
- }
54
- ],
55
- "events": [
56
- {
57
- "key": "INIT",
58
- "name": "Initialize"
59
- },
60
- {
61
- "key": "COMPOSE",
62
- "name": "COMPOSE"
63
- },
64
- {
65
- "key": "VIEW",
66
- "name": "VIEW",
67
- "payload": [
68
- {
69
- "name": "id",
70
- "type": "string",
71
- "required": true
72
- },
73
- {
74
- "name": "row",
75
- "type": "object"
76
- }
77
- ]
78
- }
79
- ],
80
- "transitions": [
81
- {
82
- "from": "browsing",
83
- "to": "browsing",
84
- "event": "INIT",
85
- "effects": [
86
- [
87
- "ref",
88
- "ChatMessage"
89
- ],
90
- [
91
- "render-ui",
92
- "main",
93
- {
94
- "type": "dashboard-layout",
95
- "appName": "Realtime Chat",
96
- "navItems": [
97
- {
98
- "label": "Chat",
99
- "href": "/chat",
100
- "icon": "layout-list"
101
- },
102
- {
103
- "label": "Channels",
104
- "href": "/channels",
105
- "icon": "hash"
106
- },
107
- {
108
- "label": "Online",
109
- "href": "/online",
110
- "icon": "layout-list"
111
- }
112
- ],
113
- "children": [
114
- {
115
- "type": "stack",
116
- "direction": "vertical",
117
- "gap": "lg",
118
- "className": "max-w-5xl mx-auto w-full",
119
- "children": [
120
- {
121
- "type": "stack",
122
- "direction": "horizontal",
123
- "gap": "md",
124
- "justify": "space-between",
125
- "align": "center",
126
- "children": [
127
- {
128
- "type": "stack",
129
- "direction": "horizontal",
130
- "gap": "sm",
131
- "align": "center",
132
- "children": [
133
- {
134
- "type": "icon",
135
- "name": "message-circle",
136
- "size": "lg"
137
- },
138
- {
139
- "type": "typography",
140
- "content": "Chat",
141
- "variant": "h2"
142
- }
143
- ]
144
- },
145
- {
146
- "type": "stack",
147
- "direction": "horizontal",
148
- "gap": "sm",
149
- "children": [
150
- {
151
- "type": "button",
152
- "label": "Compose",
153
- "event": "COMPOSE",
154
- "variant": "primary",
155
- "icon": "edit"
156
- }
157
- ]
158
- }
159
- ]
160
- },
161
- {
162
- "type": "divider"
163
- },
164
- {
165
- "type": "data-list",
166
- "entity": "ChatMessage",
167
- "emptyIcon": "inbox",
168
- "emptyTitle": "No messages yet",
169
- "emptyDescription": "Start a new conversation.",
170
- "itemActions": [
171
- {
172
- "label": "View",
173
- "event": "VIEW",
174
- "variant": "ghost",
175
- "size": "sm"
176
- }
177
- ],
178
- "columns": [
179
- {
180
- "name": "sender",
181
- "variant": "h4"
182
- },
183
- {
184
- "name": "content",
185
- "variant": "body"
186
- },
187
- {
188
- "name": "timestamp",
189
- "variant": "caption",
190
- "format": "date"
191
- }
192
- ],
193
- "variant": "message",
194
- "senderField": "sender",
195
- "gap": "sm"
196
- }
197
- ]
198
- }
199
- ]
200
- }
201
- ]
202
- ]
203
- }
204
- ]
205
- }
206
- },
207
- {
208
- "name": "ChatMessageCompose",
209
- "linkedEntity": "ChatMessage",
210
- "category": "interaction",
211
- "emits": [
212
- {
213
- "event": "SEND"
214
- }
215
- ],
216
- "stateMachine": {
217
- "states": [
218
- {
219
- "name": "closed",
220
- "isInitial": true
221
- },
222
- {
223
- "name": "open"
224
- }
225
- ],
226
- "events": [
227
- {
228
- "key": "INIT",
229
- "name": "Initialize"
230
- },
231
- {
232
- "key": "COMPOSE",
233
- "name": "Open"
234
- },
235
- {
236
- "key": "CLOSE",
237
- "name": "Close"
238
- },
239
- {
240
- "key": "SEND",
241
- "name": "Save",
242
- "payload": [
243
- {
244
- "name": "data",
245
- "type": "object",
246
- "required": true
247
- }
248
- ]
249
- }
250
- ],
251
- "transitions": [
252
- {
253
- "from": "closed",
254
- "to": "closed",
255
- "event": "INIT",
256
- "effects": [
257
- [
258
- "ref",
259
- "ChatMessage"
260
- ]
261
- ]
262
- },
263
- {
264
- "from": "closed",
265
- "to": "open",
266
- "event": "COMPOSE",
267
- "effects": [
268
- [
269
- "render-ui",
270
- "modal",
271
- {
272
- "type": "stack",
273
- "direction": "vertical",
274
- "gap": "md",
275
- "children": [
276
- {
277
- "type": "stack",
278
- "direction": "horizontal",
279
- "gap": "sm",
280
- "children": [
281
- {
282
- "type": "icon",
283
- "name": "edit",
284
- "size": "md"
285
- },
286
- {
287
- "type": "typography",
288
- "content": "New ChatMessage",
289
- "variant": "h3"
290
- }
291
- ]
292
- },
293
- {
294
- "type": "divider"
295
- },
296
- {
297
- "type": "form-section",
298
- "entity": "ChatMessage",
299
- "mode": "create",
300
- "submitEvent": "SEND",
301
- "cancelEvent": "CLOSE",
302
- "fields": [
303
- "sender",
304
- "content",
305
- "channel",
306
- "timestamp"
307
- ]
308
- }
309
- ]
310
- }
311
- ]
312
- ]
313
- },
314
- {
315
- "from": "open",
316
- "to": "closed",
317
- "event": "CLOSE",
318
- "effects": [
319
- [
320
- "render-ui",
321
- "modal",
322
- null
323
- ],
324
- [
325
- "notify",
326
- "Cancelled",
327
- "info"
328
- ]
329
- ]
330
- },
331
- {
332
- "from": "open",
333
- "to": "closed",
334
- "event": "SEND",
335
- "effects": [
336
- [
337
- "persist",
338
- "create",
339
- "ChatMessage",
340
- "@payload.data"
341
- ],
342
- [
343
- "render-ui",
344
- "modal",
345
- null
346
- ],
347
- [
348
- "notify",
349
- "ChatMessage created successfully"
350
- ]
351
- ]
352
- }
353
- ]
354
- }
355
- },
356
- {
357
- "name": "ChatMessageView",
358
- "linkedEntity": "ChatMessage",
359
- "category": "interaction",
360
- "emits": [
361
- {
362
- "event": "SAVE"
363
- }
364
- ],
365
- "stateMachine": {
366
- "states": [
367
- {
368
- "name": "closed",
369
- "isInitial": true
370
- },
371
- {
372
- "name": "open"
373
- }
374
- ],
375
- "events": [
376
- {
377
- "key": "INIT",
378
- "name": "Initialize"
379
- },
380
- {
381
- "key": "VIEW",
382
- "name": "Open",
383
- "payload": [
384
- {
385
- "name": "id",
386
- "type": "string",
387
- "required": true
388
- }
389
- ]
390
- },
391
- {
392
- "key": "CLOSE",
393
- "name": "Close"
394
- },
395
- {
396
- "key": "SAVE",
397
- "name": "Save",
398
- "payload": [
399
- {
400
- "name": "data",
401
- "type": "object",
402
- "required": true
403
- }
404
- ]
405
- }
406
- ],
407
- "transitions": [
408
- {
409
- "from": "closed",
410
- "to": "closed",
411
- "event": "INIT",
412
- "effects": [
413
- [
414
- "ref",
415
- "ChatMessage"
416
- ]
417
- ]
418
- },
419
- {
420
- "from": "closed",
421
- "to": "open",
422
- "event": "VIEW",
423
- "effects": [
424
- [
425
- "fetch",
426
- "ChatMessage",
427
- {
428
- "id": "@payload.id"
429
- }
430
- ],
431
- [
432
- "render-ui",
433
- "modal",
434
- {
435
- "type": "stack",
436
- "direction": "vertical",
437
- "gap": "md",
438
- "children": [
439
- {
440
- "type": "stack",
441
- "direction": "horizontal",
442
- "gap": "sm",
443
- "align": "center",
444
- "children": [
445
- {
446
- "type": "icon",
447
- "name": "eye",
448
- "size": "md"
449
- },
450
- {
451
- "type": "typography",
452
- "variant": "h3",
453
- "content": "@entity.sender"
454
- }
455
- ]
456
- },
457
- {
458
- "type": "divider"
459
- },
460
- {
461
- "type": "stack",
462
- "direction": "horizontal",
463
- "gap": "md",
464
- "children": [
465
- {
466
- "type": "typography",
467
- "variant": "caption",
468
- "content": "Sender"
469
- },
470
- {
471
- "type": "typography",
472
- "variant": "body",
473
- "content": "@entity.sender"
474
- }
475
- ]
476
- },
477
- {
478
- "type": "stack",
479
- "direction": "horizontal",
480
- "gap": "md",
481
- "children": [
482
- {
483
- "type": "typography",
484
- "variant": "caption",
485
- "content": "Content"
486
- },
487
- {
488
- "type": "typography",
489
- "variant": "body",
490
- "content": "@entity.content"
491
- }
492
- ]
493
- },
494
- {
495
- "type": "stack",
496
- "direction": "horizontal",
497
- "gap": "md",
498
- "children": [
499
- {
500
- "type": "typography",
501
- "variant": "caption",
502
- "content": "Channel"
503
- },
504
- {
505
- "type": "typography",
506
- "variant": "body",
507
- "content": "@entity.channel"
508
- }
509
- ]
510
- },
511
- {
512
- "type": "stack",
513
- "direction": "horizontal",
514
- "gap": "md",
515
- "children": [
516
- {
517
- "type": "typography",
518
- "variant": "caption",
519
- "content": "Timestamp"
520
- },
521
- {
522
- "type": "typography",
523
- "variant": "body",
524
- "content": "@entity.timestamp"
525
- }
526
- ]
527
- },
528
- {
529
- "type": "divider"
530
- },
531
- {
532
- "type": "stack",
533
- "direction": "horizontal",
534
- "gap": "sm",
535
- "justify": "end",
536
- "children": [
537
- {
538
- "type": "button",
539
- "label": "Close",
540
- "event": "CLOSE",
541
- "variant": "ghost"
542
- }
543
- ]
544
- }
545
- ]
546
- }
547
- ]
548
- ]
549
- },
550
- {
551
- "from": "open",
552
- "to": "closed",
553
- "event": "CLOSE",
554
- "effects": [
555
- [
556
- "render-ui",
557
- "modal",
558
- null
559
- ],
560
- [
561
- "notify",
562
- "Cancelled",
563
- "info"
564
- ]
565
- ]
566
- },
567
- {
568
- "from": "open",
569
- "to": "closed",
570
- "event": "SAVE",
571
- "effects": [
572
- [
573
- "render-ui",
574
- "modal",
575
- null
576
- ]
577
- ]
578
- }
579
- ]
580
- }
581
- }
582
- ],
583
- "pages": [
584
- {
585
- "name": "ChatPage",
586
- "path": "/chat",
587
- "isInitial": true,
588
- "traits": [
589
- {
590
- "ref": "ChatMessageBrowse"
591
- },
592
- {
593
- "ref": "ChatMessageCompose"
594
- },
595
- {
596
- "ref": "ChatMessageView"
597
- }
598
- ]
599
- }
600
- ]
601
- },
602
- {
603
- "name": "ChannelOrbital",
604
- "entity": {
605
- "name": "Channel",
606
- "persistence": "persistent",
607
- "collection": "channels",
608
- "fields": [
609
- {
610
- "name": "id",
611
- "type": "string",
612
- "required": true
613
- },
614
- {
615
- "name": "name",
616
- "type": "string",
617
- "required": true
618
- },
619
- {
620
- "name": "description",
621
- "type": "string"
622
- },
623
- {
624
- "name": "memberCount",
625
- "type": "number",
626
- "default": 0
627
- },
628
- {
629
- "name": "isPrivate",
630
- "type": "boolean",
631
- "default": false
632
- },
633
- {
634
- "name": "pendingId",
635
- "type": "string",
636
- "default": ""
637
- }
638
- ]
639
- },
640
- "traits": [
641
- {
642
- "name": "ChannelBrowse",
643
- "linkedEntity": "Channel",
644
- "category": "interaction",
645
- "listens": [
646
- {
647
- "event": "CHANNEL_CREATED",
648
- "triggers": "INIT"
649
- },
650
- {
651
- "event": "CHANNEL_UPDATED",
652
- "triggers": "INIT"
653
- },
654
- {
655
- "event": "CHANNEL_DELETED",
656
- "triggers": "INIT"
657
- }
658
- ],
659
- "stateMachine": {
660
- "states": [
661
- {
662
- "name": "browsing",
663
- "isInitial": true
664
- }
665
- ],
666
- "events": [
667
- {
668
- "key": "INIT",
669
- "name": "Initialize"
670
- },
671
- {
672
- "key": "CREATE",
673
- "name": "CREATE"
674
- },
675
- {
676
- "key": "VIEW",
677
- "name": "VIEW",
678
- "payload": [
679
- {
680
- "name": "id",
681
- "type": "string",
682
- "required": true
683
- },
684
- {
685
- "name": "row",
686
- "type": "object"
687
- }
688
- ]
689
- },
690
- {
691
- "key": "EDIT",
692
- "name": "EDIT",
693
- "payload": [
694
- {
695
- "name": "id",
696
- "type": "string",
697
- "required": true
698
- },
699
- {
700
- "name": "row",
701
- "type": "object"
702
- }
703
- ]
704
- },
705
- {
706
- "key": "DELETE",
707
- "name": "DELETE",
708
- "payload": [
709
- {
710
- "name": "id",
711
- "type": "string",
712
- "required": true
713
- },
714
- {
715
- "name": "row",
716
- "type": "object"
717
- }
718
- ]
719
- }
720
- ],
721
- "transitions": [
722
- {
723
- "from": "browsing",
724
- "to": "browsing",
725
- "event": "INIT",
726
- "effects": [
727
- [
728
- "ref",
729
- "Channel"
730
- ],
731
- [
732
- "render-ui",
733
- "main",
734
- {
735
- "type": "dashboard-layout",
736
- "appName": "Realtime Chat",
737
- "navItems": [
738
- {
739
- "label": "Chat",
740
- "href": "/chat",
741
- "icon": "layout-list"
742
- },
743
- {
744
- "label": "Channels",
745
- "href": "/channels",
746
- "icon": "hash"
747
- },
748
- {
749
- "label": "Online",
750
- "href": "/online",
751
- "icon": "layout-list"
752
- }
753
- ],
754
- "children": [
755
- {
756
- "type": "stack",
757
- "direction": "vertical",
758
- "gap": "lg",
759
- "className": "max-w-5xl mx-auto w-full",
760
- "children": [
761
- {
762
- "type": "stack",
763
- "direction": "horizontal",
764
- "gap": "md",
765
- "justify": "space-between",
766
- "align": "center",
767
- "children": [
768
- {
769
- "type": "stack",
770
- "direction": "horizontal",
771
- "gap": "sm",
772
- "align": "center",
773
- "children": [
774
- {
775
- "type": "icon",
776
- "name": "hash",
777
- "size": "lg"
778
- },
779
- {
780
- "type": "typography",
781
- "content": "Channels",
782
- "variant": "h2"
783
- }
784
- ]
785
- },
786
- {
787
- "type": "stack",
788
- "direction": "horizontal",
789
- "gap": "sm",
790
- "children": [
791
- {
792
- "type": "button",
793
- "label": "Create Channel",
794
- "event": "CREATE",
795
- "variant": "primary",
796
- "icon": "plus"
797
- }
798
- ]
799
- }
800
- ]
801
- },
802
- {
803
- "type": "divider"
804
- },
805
- {
806
- "type": "data-list",
807
- "entity": "Channel",
808
- "emptyIcon": "inbox",
809
- "emptyTitle": "No channels yet",
810
- "emptyDescription": "Create a channel to start conversations.",
811
- "itemActions": [
812
- {
813
- "label": "View",
814
- "event": "VIEW",
815
- "variant": "ghost",
816
- "size": "sm"
817
- },
818
- {
819
- "label": "Edit",
820
- "event": "EDIT",
821
- "variant": "ghost",
822
- "size": "sm"
823
- },
824
- {
825
- "label": "Delete",
826
- "event": "DELETE",
827
- "variant": "danger",
828
- "size": "sm"
829
- }
830
- ],
831
- "columns": [
832
- {
833
- "name": "name",
834
- "variant": "h3",
835
- "icon": "hash"
836
- },
837
- {
838
- "name": "memberCount",
839
- "label": "Members",
840
- "variant": "badge",
841
- "format": "number"
842
- },
843
- {
844
- "name": "description",
845
- "variant": "body"
846
- },
847
- {
848
- "name": "isPrivate",
849
- "label": "Private",
850
- "variant": "body",
851
- "format": "boolean"
852
- }
853
- ],
854
- "variant": "card",
855
- "gap": "sm"
856
- }
857
- ]
858
- }
859
- ]
860
- }
861
- ]
862
- ]
863
- }
864
- ]
865
- }
866
- },
867
- {
868
- "name": "ChannelCreate",
869
- "linkedEntity": "Channel",
870
- "category": "interaction",
871
- "emits": [
872
- {
873
- "event": "SAVE"
874
- },
875
- {
876
- "event": "CHANNEL_CREATED"
877
- }
878
- ],
879
- "stateMachine": {
880
- "states": [
881
- {
882
- "name": "closed",
883
- "isInitial": true
884
- },
885
- {
886
- "name": "open"
887
- }
888
- ],
889
- "events": [
890
- {
891
- "key": "INIT",
892
- "name": "Initialize"
893
- },
894
- {
895
- "key": "CREATE",
896
- "name": "Open"
897
- },
898
- {
899
- "key": "CLOSE",
900
- "name": "Close"
901
- },
902
- {
903
- "key": "SAVE",
904
- "name": "Save",
905
- "payload": [
906
- {
907
- "name": "data",
908
- "type": "object",
909
- "required": true
910
- }
911
- ]
912
- }
913
- ],
914
- "transitions": [
915
- {
916
- "from": "closed",
917
- "to": "closed",
918
- "event": "INIT",
919
- "effects": [
920
- [
921
- "ref",
922
- "Channel"
923
- ]
924
- ]
925
- },
926
- {
927
- "from": "closed",
928
- "to": "open",
929
- "event": "CREATE",
930
- "effects": [
931
- [
932
- "fetch",
933
- "Channel"
934
- ],
935
- [
936
- "render-ui",
937
- "modal",
938
- {
939
- "type": "stack",
940
- "direction": "vertical",
941
- "gap": "md",
942
- "children": [
943
- {
944
- "type": "stack",
945
- "direction": "horizontal",
946
- "gap": "sm",
947
- "children": [
948
- {
949
- "type": "icon",
950
- "name": "plus-circle",
951
- "size": "md"
952
- },
953
- {
954
- "type": "typography",
955
- "content": "Create Channel",
956
- "variant": "h3"
957
- }
958
- ]
959
- },
960
- {
961
- "type": "divider"
962
- },
963
- {
964
- "type": "form-section",
965
- "entity": "Channel",
966
- "mode": "create",
967
- "submitEvent": "SAVE",
968
- "cancelEvent": "CLOSE",
969
- "fields": [
970
- "name",
971
- "description",
972
- "memberCount",
973
- "isPrivate"
974
- ]
975
- }
976
- ]
977
- }
978
- ]
979
- ]
980
- },
981
- {
982
- "from": "open",
983
- "to": "closed",
984
- "event": "CLOSE",
985
- "effects": [
986
- [
987
- "render-ui",
988
- "modal",
989
- null
990
- ],
991
- [
992
- "notify",
993
- "Cancelled",
994
- "info"
995
- ]
996
- ]
997
- },
998
- {
999
- "from": "open",
1000
- "to": "closed",
1001
- "event": "SAVE",
1002
- "effects": [
1003
- [
1004
- "persist",
1005
- "create",
1006
- "Channel",
1007
- "@payload.data"
1008
- ],
1009
- [
1010
- "render-ui",
1011
- "modal",
1012
- null
1013
- ],
1014
- [
1015
- "emit",
1016
- "CHANNEL_CREATED"
1017
- ],
1018
- [
1019
- "notify",
1020
- "Channel created successfully"
1021
- ]
1022
- ]
1023
- }
1024
- ]
1025
- }
1026
- },
1027
- {
1028
- "name": "ChannelEdit",
1029
- "linkedEntity": "Channel",
1030
- "category": "interaction",
1031
- "emits": [
1032
- {
1033
- "event": "SAVE"
1034
- },
1035
- {
1036
- "event": "CHANNEL_UPDATED"
1037
- }
1038
- ],
1039
- "stateMachine": {
1040
- "states": [
1041
- {
1042
- "name": "closed",
1043
- "isInitial": true
1044
- },
1045
- {
1046
- "name": "open"
1047
- }
1048
- ],
1049
- "events": [
1050
- {
1051
- "key": "INIT",
1052
- "name": "Initialize"
1053
- },
1054
- {
1055
- "key": "EDIT",
1056
- "name": "Open",
1057
- "payload": [
1058
- {
1059
- "name": "id",
1060
- "type": "string",
1061
- "required": true
1062
- }
1063
- ]
1064
- },
1065
- {
1066
- "key": "CLOSE",
1067
- "name": "Close"
1068
- },
1069
- {
1070
- "key": "SAVE",
1071
- "name": "Save",
1072
- "payload": [
1073
- {
1074
- "name": "data",
1075
- "type": "object",
1076
- "required": true
1077
- }
1078
- ]
1079
- }
1080
- ],
1081
- "transitions": [
1082
- {
1083
- "from": "closed",
1084
- "to": "closed",
1085
- "event": "INIT",
1086
- "effects": [
1087
- [
1088
- "ref",
1089
- "Channel"
1090
- ]
1091
- ]
1092
- },
1093
- {
1094
- "from": "closed",
1095
- "to": "open",
1096
- "event": "EDIT",
1097
- "effects": [
1098
- [
1099
- "fetch",
1100
- "Channel",
1101
- {
1102
- "id": "@payload.id"
1103
- }
1104
- ],
1105
- [
1106
- "render-ui",
1107
- "modal",
1108
- {
1109
- "type": "stack",
1110
- "direction": "vertical",
1111
- "gap": "md",
1112
- "children": [
1113
- {
1114
- "type": "stack",
1115
- "direction": "horizontal",
1116
- "gap": "sm",
1117
- "children": [
1118
- {
1119
- "type": "icon",
1120
- "name": "edit",
1121
- "size": "md"
1122
- },
1123
- {
1124
- "type": "typography",
1125
- "content": "Edit Channel",
1126
- "variant": "h3"
1127
- }
1128
- ]
1129
- },
1130
- {
1131
- "type": "divider"
1132
- },
1133
- {
1134
- "type": "form-section",
1135
- "entity": "Channel",
1136
- "mode": "edit",
1137
- "submitEvent": "SAVE",
1138
- "cancelEvent": "CLOSE",
1139
- "fields": [
1140
- "name",
1141
- "description",
1142
- "memberCount",
1143
- "isPrivate"
1144
- ],
1145
- "entityId": "@entity.id"
1146
- }
1147
- ]
1148
- }
1149
- ]
1150
- ]
1151
- },
1152
- {
1153
- "from": "open",
1154
- "to": "closed",
1155
- "event": "CLOSE",
1156
- "effects": [
1157
- [
1158
- "render-ui",
1159
- "modal",
1160
- null
1161
- ],
1162
- [
1163
- "notify",
1164
- "Cancelled",
1165
- "info"
1166
- ]
1167
- ]
1168
- },
1169
- {
1170
- "from": "open",
1171
- "to": "closed",
1172
- "event": "SAVE",
1173
- "effects": [
1174
- [
1175
- "persist",
1176
- "update",
1177
- "Channel",
1178
- "@payload.data"
1179
- ],
1180
- [
1181
- "render-ui",
1182
- "modal",
1183
- null
1184
- ],
1185
- [
1186
- "emit",
1187
- "CHANNEL_UPDATED"
1188
- ],
1189
- [
1190
- "notify",
1191
- "Channel updated successfully"
1192
- ]
1193
- ]
1194
- }
1195
- ]
1196
- }
1197
- },
1198
- {
1199
- "name": "ChannelView",
1200
- "linkedEntity": "Channel",
1201
- "category": "interaction",
1202
- "emits": [
1203
- {
1204
- "event": "SAVE"
1205
- }
1206
- ],
1207
- "stateMachine": {
1208
- "states": [
1209
- {
1210
- "name": "closed",
1211
- "isInitial": true
1212
- },
1213
- {
1214
- "name": "open"
1215
- }
1216
- ],
1217
- "events": [
1218
- {
1219
- "key": "INIT",
1220
- "name": "Initialize"
1221
- },
1222
- {
1223
- "key": "VIEW",
1224
- "name": "Open",
1225
- "payload": [
1226
- {
1227
- "name": "id",
1228
- "type": "string",
1229
- "required": true
1230
- }
1231
- ]
1232
- },
1233
- {
1234
- "key": "CLOSE",
1235
- "name": "Close"
1236
- },
1237
- {
1238
- "key": "SAVE",
1239
- "name": "Save",
1240
- "payload": [
1241
- {
1242
- "name": "data",
1243
- "type": "object",
1244
- "required": true
1245
- }
1246
- ]
1247
- }
1248
- ],
1249
- "transitions": [
1250
- {
1251
- "from": "closed",
1252
- "to": "closed",
1253
- "event": "INIT",
1254
- "effects": [
1255
- [
1256
- "ref",
1257
- "Channel"
1258
- ]
1259
- ]
1260
- },
1261
- {
1262
- "from": "closed",
1263
- "to": "open",
1264
- "event": "VIEW",
1265
- "effects": [
1266
- [
1267
- "fetch",
1268
- "Channel",
1269
- {
1270
- "id": "@payload.id"
1271
- }
1272
- ],
1273
- [
1274
- "render-ui",
1275
- "modal",
1276
- {
1277
- "type": "stack",
1278
- "direction": "vertical",
1279
- "gap": "md",
1280
- "children": [
1281
- {
1282
- "type": "stack",
1283
- "direction": "horizontal",
1284
- "gap": "sm",
1285
- "align": "center",
1286
- "children": [
1287
- {
1288
- "type": "icon",
1289
- "name": "eye",
1290
- "size": "md"
1291
- },
1292
- {
1293
- "type": "typography",
1294
- "variant": "h3",
1295
- "content": "@entity.name"
1296
- }
1297
- ]
1298
- },
1299
- {
1300
- "type": "divider"
1301
- },
1302
- {
1303
- "type": "stack",
1304
- "direction": "horizontal",
1305
- "gap": "md",
1306
- "children": [
1307
- {
1308
- "type": "typography",
1309
- "variant": "caption",
1310
- "content": "Name"
1311
- },
1312
- {
1313
- "type": "typography",
1314
- "variant": "body",
1315
- "content": "@entity.name"
1316
- }
1317
- ]
1318
- },
1319
- {
1320
- "type": "stack",
1321
- "direction": "horizontal",
1322
- "gap": "md",
1323
- "children": [
1324
- {
1325
- "type": "typography",
1326
- "variant": "caption",
1327
- "content": "Description"
1328
- },
1329
- {
1330
- "type": "typography",
1331
- "variant": "body",
1332
- "content": "@entity.description"
1333
- }
1334
- ]
1335
- },
1336
- {
1337
- "type": "stack",
1338
- "direction": "horizontal",
1339
- "gap": "md",
1340
- "children": [
1341
- {
1342
- "type": "typography",
1343
- "variant": "caption",
1344
- "content": "Member Count"
1345
- },
1346
- {
1347
- "type": "typography",
1348
- "variant": "body",
1349
- "content": "@entity.memberCount"
1350
- }
1351
- ]
1352
- },
1353
- {
1354
- "type": "stack",
1355
- "direction": "horizontal",
1356
- "gap": "md",
1357
- "children": [
1358
- {
1359
- "type": "typography",
1360
- "variant": "caption",
1361
- "content": "Is Private"
1362
- },
1363
- {
1364
- "type": "typography",
1365
- "variant": "body",
1366
- "content": "@entity.isPrivate"
1367
- }
1368
- ]
1369
- },
1370
- {
1371
- "type": "divider"
1372
- },
1373
- {
1374
- "type": "stack",
1375
- "direction": "horizontal",
1376
- "gap": "sm",
1377
- "justify": "end",
1378
- "children": [
1379
- {
1380
- "type": "button",
1381
- "label": "Edit",
1382
- "event": "EDIT",
1383
- "variant": "primary",
1384
- "icon": "edit"
1385
- },
1386
- {
1387
- "type": "button",
1388
- "label": "Close",
1389
- "event": "CLOSE",
1390
- "variant": "ghost"
1391
- }
1392
- ]
1393
- }
1394
- ]
1395
- }
1396
- ]
1397
- ]
1398
- },
1399
- {
1400
- "from": "open",
1401
- "to": "closed",
1402
- "event": "CLOSE",
1403
- "effects": [
1404
- [
1405
- "render-ui",
1406
- "modal",
1407
- null
1408
- ],
1409
- [
1410
- "notify",
1411
- "Cancelled",
1412
- "info"
1413
- ]
1414
- ]
1415
- },
1416
- {
1417
- "from": "open",
1418
- "to": "closed",
1419
- "event": "SAVE",
1420
- "effects": [
1421
- [
1422
- "render-ui",
1423
- "modal",
1424
- null
1425
- ]
1426
- ]
1427
- }
1428
- ]
1429
- }
1430
- },
1431
- {
1432
- "name": "ChannelDelete",
1433
- "linkedEntity": "Channel",
1434
- "category": "interaction",
1435
- "emits": [
1436
- {
1437
- "event": "CONFIRM_DELETE"
1438
- },
1439
- {
1440
- "event": "CHANNEL_DELETED"
1441
- }
1442
- ],
1443
- "stateMachine": {
1444
- "states": [
1445
- {
1446
- "name": "idle",
1447
- "isInitial": true
1448
- },
1449
- {
1450
- "name": "confirming"
1451
- }
1452
- ],
1453
- "events": [
1454
- {
1455
- "key": "INIT",
1456
- "name": "Initialize"
1457
- },
1458
- {
1459
- "key": "DELETE",
1460
- "name": "Request Confirmation",
1461
- "payload": [
1462
- {
1463
- "name": "id",
1464
- "type": "string",
1465
- "required": true
1466
- }
1467
- ]
1468
- },
1469
- {
1470
- "key": "CONFIRM_DELETE",
1471
- "name": "Confirm"
1472
- },
1473
- {
1474
- "key": "CANCEL",
1475
- "name": "Cancel"
1476
- },
1477
- {
1478
- "key": "CLOSE",
1479
- "name": "Close"
1480
- }
1481
- ],
1482
- "transitions": [
1483
- {
1484
- "from": "idle",
1485
- "to": "idle",
1486
- "event": "INIT",
1487
- "effects": [
1488
- [
1489
- "ref",
1490
- "Channel"
1491
- ]
1492
- ]
1493
- },
1494
- {
1495
- "from": "idle",
1496
- "to": "confirming",
1497
- "event": "DELETE",
1498
- "effects": [
1499
- [
1500
- "set",
1501
- "@entity.pendingId",
1502
- "@payload.id"
1503
- ],
1504
- [
1505
- "fetch",
1506
- "Channel",
1507
- {
1508
- "id": "@payload.id"
1509
- }
1510
- ],
1511
- [
1512
- "render-ui",
1513
- "modal",
1514
- {
1515
- "type": "stack",
1516
- "direction": "vertical",
1517
- "gap": "md",
1518
- "children": [
1519
- {
1520
- "type": "stack",
1521
- "direction": "horizontal",
1522
- "gap": "sm",
1523
- "align": "center",
1524
- "children": [
1525
- {
1526
- "type": "icon",
1527
- "name": "alert-triangle",
1528
- "size": "md"
1529
- },
1530
- {
1531
- "type": "typography",
1532
- "content": "Delete Channel",
1533
- "variant": "h3"
1534
- }
1535
- ]
1536
- },
1537
- {
1538
- "type": "divider"
1539
- },
1540
- {
1541
- "type": "alert",
1542
- "variant": "danger",
1543
- "message": "This action cannot be undone."
1544
- },
1545
- {
1546
- "type": "stack",
1547
- "direction": "horizontal",
1548
- "gap": "sm",
1549
- "justify": "end",
1550
- "children": [
1551
- {
1552
- "type": "button",
1553
- "label": "Cancel",
1554
- "event": "CANCEL",
1555
- "variant": "ghost"
1556
- },
1557
- {
1558
- "type": "button",
1559
- "label": "Delete",
1560
- "event": "CONFIRM_DELETE",
1561
- "variant": "danger",
1562
- "icon": "check"
1563
- }
1564
- ]
1565
- }
1566
- ]
1567
- }
1568
- ]
1569
- ]
1570
- },
1571
- {
1572
- "from": "confirming",
1573
- "to": "idle",
1574
- "event": "CONFIRM_DELETE",
1575
- "effects": [
1576
- [
1577
- "persist",
1578
- "delete",
1579
- "Channel",
1580
- "@entity.pendingId"
1581
- ],
1582
- [
1583
- "render-ui",
1584
- "modal",
1585
- null
1586
- ],
1587
- [
1588
- "ref",
1589
- "Channel"
1590
- ],
1591
- [
1592
- "emit",
1593
- "CHANNEL_DELETED"
1594
- ],
1595
- [
1596
- "notify",
1597
- "Channel deleted successfully"
1598
- ]
1599
- ]
1600
- },
1601
- {
1602
- "from": "confirming",
1603
- "to": "idle",
1604
- "event": "CANCEL",
1605
- "effects": [
1606
- [
1607
- "render-ui",
1608
- "modal",
1609
- null
1610
- ],
1611
- [
1612
- "ref",
1613
- "Channel"
1614
- ]
1615
- ]
1616
- },
1617
- {
1618
- "from": "confirming",
1619
- "to": "idle",
1620
- "event": "CLOSE",
1621
- "effects": [
1622
- [
1623
- "render-ui",
1624
- "modal",
1625
- null
1626
- ],
1627
- [
1628
- "ref",
1629
- "Channel"
1630
- ]
1631
- ]
1632
- }
1633
- ]
1634
- }
1635
- }
1636
- ],
1637
- "pages": [
1638
- {
1639
- "name": "ChannelsPage",
1640
- "path": "/channels",
1641
- "traits": [
1642
- {
1643
- "ref": "ChannelBrowse"
1644
- },
1645
- {
1646
- "ref": "ChannelCreate"
1647
- },
1648
- {
1649
- "ref": "ChannelEdit"
1650
- },
1651
- {
1652
- "ref": "ChannelView"
1653
- },
1654
- {
1655
- "ref": "ChannelDelete"
1656
- }
1657
- ]
1658
- }
1659
- ]
1660
- },
1661
- {
1662
- "name": "OnlineUserOrbital",
1663
- "entity": {
1664
- "name": "OnlineUser",
1665
- "persistence": "runtime",
1666
- "fields": [
1667
- {
1668
- "name": "id",
1669
- "type": "string",
1670
- "required": true
1671
- },
1672
- {
1673
- "name": "username",
1674
- "type": "string",
1675
- "required": true
1676
- },
1677
- {
1678
- "name": "status",
1679
- "type": "string",
1680
- "default": "online",
1681
- "values": [
1682
- "online",
1683
- "away",
1684
- "busy",
1685
- "offline"
1686
- ]
1687
- },
1688
- {
1689
- "name": "lastActive",
1690
- "type": "date"
1691
- },
1692
- {
1693
- "name": "avatar",
1694
- "type": "string"
1695
- }
1696
- ]
1697
- },
1698
- "traits": [
1699
- {
1700
- "name": "OnlineUserDisplay",
1701
- "linkedEntity": "OnlineUser",
1702
- "category": "interaction",
1703
- "stateMachine": {
1704
- "states": [
1705
- {
1706
- "name": "loading",
1707
- "isInitial": true
1708
- },
1709
- {
1710
- "name": "displaying"
1711
- },
1712
- {
1713
- "name": "refreshing"
1714
- }
1715
- ],
1716
- "events": [
1717
- {
1718
- "key": "INIT",
1719
- "name": "Initialize"
1720
- },
1721
- {
1722
- "key": "LOADED",
1723
- "name": "Loaded"
1724
- },
1725
- {
1726
- "key": "REFRESH",
1727
- "name": "Refresh"
1728
- },
1729
- {
1730
- "key": "REFRESHED",
1731
- "name": "Refreshed"
1732
- }
1733
- ],
1734
- "transitions": [
1735
- {
1736
- "from": "loading",
1737
- "to": "displaying",
1738
- "event": "INIT",
1739
- "effects": [
1740
- [
1741
- "fetch",
1742
- "OnlineUser"
1743
- ],
1744
- [
1745
- "render-ui",
1746
- "main",
1747
- {
1748
- "type": "dashboard-layout",
1749
- "appName": "Realtime Chat",
1750
- "navItems": [
1751
- {
1752
- "label": "Chat",
1753
- "href": "/chat",
1754
- "icon": "layout-list"
1755
- },
1756
- {
1757
- "label": "Channels",
1758
- "href": "/channels",
1759
- "icon": "hash"
1760
- },
1761
- {
1762
- "label": "Online",
1763
- "href": "/online",
1764
- "icon": "layout-list"
1765
- }
1766
- ],
1767
- "children": [
1768
- {
1769
- "type": "scaled-diagram",
1770
- "children": [
1771
- {
1772
- "type": "stack",
1773
- "direction": "vertical",
1774
- "gap": "lg",
1775
- "children": [
1776
- {
1777
- "type": "breadcrumb",
1778
- "items": [
1779
- {
1780
- "label": "Home",
1781
- "href": "/"
1782
- },
1783
- {
1784
- "label": "Online Users"
1785
- }
1786
- ]
1787
- },
1788
- {
1789
- "type": "stack",
1790
- "direction": "horizontal",
1791
- "gap": "md",
1792
- "justify": "space-between",
1793
- "children": [
1794
- {
1795
- "type": "stack",
1796
- "direction": "horizontal",
1797
- "gap": "md",
1798
- "children": [
1799
- {
1800
- "type": "icon",
1801
- "name": "users",
1802
- "size": "lg"
1803
- },
1804
- {
1805
- "type": "typography",
1806
- "content": "Online Users",
1807
- "variant": "h2"
1808
- }
1809
- ]
1810
- },
1811
- {
1812
- "type": "button",
1813
- "label": "Refresh",
1814
- "event": "REFRESH",
1815
- "variant": "secondary",
1816
- "icon": "refresh-cw"
1817
- }
1818
- ]
1819
- },
1820
- {
1821
- "type": "divider"
1822
- },
1823
- {
1824
- "type": "box",
1825
- "padding": "md",
1826
- "children": [
1827
- {
1828
- "type": "simple-grid",
1829
- "columns": 3,
1830
- "children": [
1831
- {
1832
- "type": "card",
1833
- "children": [
1834
- {
1835
- "type": "stack",
1836
- "direction": "vertical",
1837
- "gap": "sm",
1838
- "children": [
1839
- {
1840
- "type": "typography",
1841
- "variant": "caption",
1842
- "content": "Username"
1843
- },
1844
- {
1845
- "type": "typography",
1846
- "variant": "h3",
1847
- "content": [
1848
- "object/get",
1849
- [
1850
- "array/first",
1851
- "@entity"
1852
- ],
1853
- "username"
1854
- ]
1855
- }
1856
- ]
1857
- }
1858
- ]
1859
- },
1860
- {
1861
- "type": "card",
1862
- "children": [
1863
- {
1864
- "type": "stack",
1865
- "direction": "vertical",
1866
- "gap": "sm",
1867
- "children": [
1868
- {
1869
- "type": "typography",
1870
- "variant": "caption",
1871
- "content": "Status"
1872
- },
1873
- {
1874
- "type": "typography",
1875
- "variant": "h3",
1876
- "content": [
1877
- "object/get",
1878
- [
1879
- "array/first",
1880
- "@entity"
1881
- ],
1882
- "status"
1883
- ]
1884
- }
1885
- ]
1886
- }
1887
- ]
1888
- },
1889
- {
1890
- "type": "card",
1891
- "children": [
1892
- {
1893
- "type": "stack",
1894
- "direction": "vertical",
1895
- "gap": "sm",
1896
- "children": [
1897
- {
1898
- "type": "typography",
1899
- "variant": "caption",
1900
- "content": "LastActive"
1901
- },
1902
- {
1903
- "type": "typography",
1904
- "variant": "h3",
1905
- "content": [
1906
- "object/get",
1907
- [
1908
- "array/first",
1909
- "@entity"
1910
- ],
1911
- "lastActive"
1912
- ]
1913
- }
1914
- ]
1915
- }
1916
- ]
1917
- },
1918
- {
1919
- "type": "card",
1920
- "children": [
1921
- {
1922
- "type": "stack",
1923
- "direction": "vertical",
1924
- "gap": "sm",
1925
- "children": [
1926
- {
1927
- "type": "typography",
1928
- "variant": "caption",
1929
- "content": "Avatar"
1930
- },
1931
- {
1932
- "type": "typography",
1933
- "variant": "h3",
1934
- "content": [
1935
- "object/get",
1936
- [
1937
- "array/first",
1938
- "@entity"
1939
- ],
1940
- "avatar"
1941
- ]
1942
- }
1943
- ]
1944
- }
1945
- ]
1946
- }
1947
- ]
1948
- }
1949
- ]
1950
- },
1951
- {
1952
- "type": "divider"
1953
- },
1954
- {
1955
- "type": "grid",
1956
- "columns": 2,
1957
- "gap": "md",
1958
- "children": [
1959
- {
1960
- "type": "card",
1961
- "children": [
1962
- {
1963
- "type": "typography",
1964
- "variant": "caption",
1965
- "content": "Chart View"
1966
- }
1967
- ]
1968
- },
1969
- {
1970
- "type": "card",
1971
- "children": [
1972
- {
1973
- "type": "typography",
1974
- "variant": "caption",
1975
- "content": "Graph View"
1976
- }
1977
- ]
1978
- }
1979
- ]
1980
- },
1981
- {
1982
- "type": "line-chart",
1983
- "data": [
1984
- {
1985
- "date": "Jan",
1986
- "value": 12
1987
- },
1988
- {
1989
- "date": "Feb",
1990
- "value": 19
1991
- },
1992
- {
1993
- "date": "Mar",
1994
- "value": 15
1995
- },
1996
- {
1997
- "date": "Apr",
1998
- "value": 25
1999
- },
2000
- {
2001
- "date": "May",
2002
- "value": 22
2003
- },
2004
- {
2005
- "date": "Jun",
2006
- "value": 30
2007
- }
2008
- ],
2009
- "xKey": "date",
2010
- "yKey": "value",
2011
- "title": "Trend"
2012
- },
2013
- {
2014
- "type": "chart-legend",
2015
- "items": [
2016
- {
2017
- "label": "Current",
2018
- "color": "primary"
2019
- },
2020
- {
2021
- "label": "Previous",
2022
- "color": "muted"
2023
- }
2024
- ]
2025
- },
2026
- {
2027
- "type": "graph-view",
2028
- "nodes": [
2029
- {
2030
- "id": "a",
2031
- "label": "Start",
2032
- "x": 50,
2033
- "y": 100
2034
- },
2035
- {
2036
- "id": "b",
2037
- "label": "Process",
2038
- "x": 200,
2039
- "y": 50
2040
- },
2041
- {
2042
- "id": "c",
2043
- "label": "End",
2044
- "x": 350,
2045
- "y": 100
2046
- }
2047
- ],
2048
- "edges": [
2049
- {
2050
- "from": "a",
2051
- "to": "b"
2052
- },
2053
- {
2054
- "from": "b",
2055
- "to": "c"
2056
- }
2057
- ],
2058
- "width": 400,
2059
- "height": 200
2060
- }
2061
- ]
2062
- }
2063
- ]
2064
- }
2065
- ]
2066
- }
2067
- ]
2068
- ]
2069
- },
2070
- {
2071
- "from": "loading",
2072
- "to": "displaying",
2073
- "event": "LOADED",
2074
- "effects": [
2075
- [
2076
- "fetch",
2077
- "OnlineUser"
2078
- ],
2079
- [
2080
- "render-ui",
2081
- "main",
2082
- {
2083
- "type": "dashboard-layout",
2084
- "appName": "Realtime Chat",
2085
- "navItems": [
2086
- {
2087
- "label": "Chat",
2088
- "href": "/chat",
2089
- "icon": "layout-list"
2090
- },
2091
- {
2092
- "label": "Channels",
2093
- "href": "/channels",
2094
- "icon": "hash"
2095
- },
2096
- {
2097
- "label": "Online",
2098
- "href": "/online",
2099
- "icon": "layout-list"
2100
- }
2101
- ],
2102
- "children": [
2103
- {
2104
- "type": "scaled-diagram",
2105
- "children": [
2106
- {
2107
- "type": "stack",
2108
- "direction": "vertical",
2109
- "gap": "lg",
2110
- "children": [
2111
- {
2112
- "type": "breadcrumb",
2113
- "items": [
2114
- {
2115
- "label": "Home",
2116
- "href": "/"
2117
- },
2118
- {
2119
- "label": "Online Users"
2120
- }
2121
- ]
2122
- },
2123
- {
2124
- "type": "stack",
2125
- "direction": "horizontal",
2126
- "gap": "md",
2127
- "justify": "space-between",
2128
- "children": [
2129
- {
2130
- "type": "stack",
2131
- "direction": "horizontal",
2132
- "gap": "md",
2133
- "children": [
2134
- {
2135
- "type": "icon",
2136
- "name": "users",
2137
- "size": "lg"
2138
- },
2139
- {
2140
- "type": "typography",
2141
- "content": "Online Users",
2142
- "variant": "h2"
2143
- }
2144
- ]
2145
- },
2146
- {
2147
- "type": "button",
2148
- "label": "Refresh",
2149
- "event": "REFRESH",
2150
- "variant": "secondary",
2151
- "icon": "refresh-cw"
2152
- }
2153
- ]
2154
- },
2155
- {
2156
- "type": "divider"
2157
- },
2158
- {
2159
- "type": "box",
2160
- "padding": "md",
2161
- "children": [
2162
- {
2163
- "type": "simple-grid",
2164
- "columns": 3,
2165
- "children": [
2166
- {
2167
- "type": "card",
2168
- "children": [
2169
- {
2170
- "type": "stack",
2171
- "direction": "vertical",
2172
- "gap": "sm",
2173
- "children": [
2174
- {
2175
- "type": "typography",
2176
- "variant": "caption",
2177
- "content": "Username"
2178
- },
2179
- {
2180
- "type": "typography",
2181
- "variant": "h3",
2182
- "content": [
2183
- "object/get",
2184
- [
2185
- "array/first",
2186
- "@entity"
2187
- ],
2188
- "username"
2189
- ]
2190
- }
2191
- ]
2192
- }
2193
- ]
2194
- },
2195
- {
2196
- "type": "card",
2197
- "children": [
2198
- {
2199
- "type": "stack",
2200
- "direction": "vertical",
2201
- "gap": "sm",
2202
- "children": [
2203
- {
2204
- "type": "typography",
2205
- "variant": "caption",
2206
- "content": "Status"
2207
- },
2208
- {
2209
- "type": "typography",
2210
- "variant": "h3",
2211
- "content": [
2212
- "object/get",
2213
- [
2214
- "array/first",
2215
- "@entity"
2216
- ],
2217
- "status"
2218
- ]
2219
- }
2220
- ]
2221
- }
2222
- ]
2223
- },
2224
- {
2225
- "type": "card",
2226
- "children": [
2227
- {
2228
- "type": "stack",
2229
- "direction": "vertical",
2230
- "gap": "sm",
2231
- "children": [
2232
- {
2233
- "type": "typography",
2234
- "variant": "caption",
2235
- "content": "LastActive"
2236
- },
2237
- {
2238
- "type": "typography",
2239
- "variant": "h3",
2240
- "content": [
2241
- "object/get",
2242
- [
2243
- "array/first",
2244
- "@entity"
2245
- ],
2246
- "lastActive"
2247
- ]
2248
- }
2249
- ]
2250
- }
2251
- ]
2252
- },
2253
- {
2254
- "type": "card",
2255
- "children": [
2256
- {
2257
- "type": "stack",
2258
- "direction": "vertical",
2259
- "gap": "sm",
2260
- "children": [
2261
- {
2262
- "type": "typography",
2263
- "variant": "caption",
2264
- "content": "Avatar"
2265
- },
2266
- {
2267
- "type": "typography",
2268
- "variant": "h3",
2269
- "content": [
2270
- "object/get",
2271
- [
2272
- "array/first",
2273
- "@entity"
2274
- ],
2275
- "avatar"
2276
- ]
2277
- }
2278
- ]
2279
- }
2280
- ]
2281
- }
2282
- ]
2283
- }
2284
- ]
2285
- },
2286
- {
2287
- "type": "divider"
2288
- },
2289
- {
2290
- "type": "grid",
2291
- "columns": 2,
2292
- "gap": "md",
2293
- "children": [
2294
- {
2295
- "type": "card",
2296
- "children": [
2297
- {
2298
- "type": "typography",
2299
- "variant": "caption",
2300
- "content": "Chart View"
2301
- }
2302
- ]
2303
- },
2304
- {
2305
- "type": "card",
2306
- "children": [
2307
- {
2308
- "type": "typography",
2309
- "variant": "caption",
2310
- "content": "Graph View"
2311
- }
2312
- ]
2313
- }
2314
- ]
2315
- },
2316
- {
2317
- "type": "line-chart",
2318
- "data": [
2319
- {
2320
- "date": "Jan",
2321
- "value": 12
2322
- },
2323
- {
2324
- "date": "Feb",
2325
- "value": 19
2326
- },
2327
- {
2328
- "date": "Mar",
2329
- "value": 15
2330
- },
2331
- {
2332
- "date": "Apr",
2333
- "value": 25
2334
- },
2335
- {
2336
- "date": "May",
2337
- "value": 22
2338
- },
2339
- {
2340
- "date": "Jun",
2341
- "value": 30
2342
- }
2343
- ],
2344
- "xKey": "date",
2345
- "yKey": "value",
2346
- "title": "Trend"
2347
- },
2348
- {
2349
- "type": "chart-legend",
2350
- "items": [
2351
- {
2352
- "label": "Current",
2353
- "color": "primary"
2354
- },
2355
- {
2356
- "label": "Previous",
2357
- "color": "muted"
2358
- }
2359
- ]
2360
- },
2361
- {
2362
- "type": "graph-view",
2363
- "nodes": [
2364
- {
2365
- "id": "a",
2366
- "label": "Start",
2367
- "x": 50,
2368
- "y": 100
2369
- },
2370
- {
2371
- "id": "b",
2372
- "label": "Process",
2373
- "x": 200,
2374
- "y": 50
2375
- },
2376
- {
2377
- "id": "c",
2378
- "label": "End",
2379
- "x": 350,
2380
- "y": 100
2381
- }
2382
- ],
2383
- "edges": [
2384
- {
2385
- "from": "a",
2386
- "to": "b"
2387
- },
2388
- {
2389
- "from": "b",
2390
- "to": "c"
2391
- }
2392
- ],
2393
- "width": 400,
2394
- "height": 200
2395
- }
2396
- ]
2397
- }
2398
- ]
2399
- }
2400
- ]
2401
- }
2402
- ]
2403
- ]
2404
- },
2405
- {
2406
- "from": "displaying",
2407
- "to": "displaying",
2408
- "event": "INIT",
2409
- "effects": [
2410
- [
2411
- "fetch",
2412
- "OnlineUser"
2413
- ],
2414
- [
2415
- "render-ui",
2416
- "main",
2417
- {
2418
- "type": "dashboard-layout",
2419
- "appName": "Realtime Chat",
2420
- "navItems": [
2421
- {
2422
- "label": "Chat",
2423
- "href": "/chat",
2424
- "icon": "layout-list"
2425
- },
2426
- {
2427
- "label": "Channels",
2428
- "href": "/channels",
2429
- "icon": "hash"
2430
- },
2431
- {
2432
- "label": "Online",
2433
- "href": "/online",
2434
- "icon": "layout-list"
2435
- }
2436
- ],
2437
- "children": [
2438
- {
2439
- "type": "scaled-diagram",
2440
- "children": [
2441
- {
2442
- "type": "stack",
2443
- "direction": "vertical",
2444
- "gap": "lg",
2445
- "children": [
2446
- {
2447
- "type": "breadcrumb",
2448
- "items": [
2449
- {
2450
- "label": "Home",
2451
- "href": "/"
2452
- },
2453
- {
2454
- "label": "Online Users"
2455
- }
2456
- ]
2457
- },
2458
- {
2459
- "type": "stack",
2460
- "direction": "horizontal",
2461
- "gap": "md",
2462
- "justify": "space-between",
2463
- "children": [
2464
- {
2465
- "type": "stack",
2466
- "direction": "horizontal",
2467
- "gap": "md",
2468
- "children": [
2469
- {
2470
- "type": "icon",
2471
- "name": "users",
2472
- "size": "lg"
2473
- },
2474
- {
2475
- "type": "typography",
2476
- "content": "Online Users",
2477
- "variant": "h2"
2478
- }
2479
- ]
2480
- },
2481
- {
2482
- "type": "button",
2483
- "label": "Refresh",
2484
- "event": "REFRESH",
2485
- "variant": "secondary",
2486
- "icon": "refresh-cw"
2487
- }
2488
- ]
2489
- },
2490
- {
2491
- "type": "divider"
2492
- },
2493
- {
2494
- "type": "box",
2495
- "padding": "md",
2496
- "children": [
2497
- {
2498
- "type": "simple-grid",
2499
- "columns": 3,
2500
- "children": [
2501
- {
2502
- "type": "card",
2503
- "children": [
2504
- {
2505
- "type": "stack",
2506
- "direction": "vertical",
2507
- "gap": "sm",
2508
- "children": [
2509
- {
2510
- "type": "typography",
2511
- "variant": "caption",
2512
- "content": "Username"
2513
- },
2514
- {
2515
- "type": "typography",
2516
- "variant": "h3",
2517
- "content": [
2518
- "object/get",
2519
- [
2520
- "array/first",
2521
- "@entity"
2522
- ],
2523
- "username"
2524
- ]
2525
- }
2526
- ]
2527
- }
2528
- ]
2529
- },
2530
- {
2531
- "type": "card",
2532
- "children": [
2533
- {
2534
- "type": "stack",
2535
- "direction": "vertical",
2536
- "gap": "sm",
2537
- "children": [
2538
- {
2539
- "type": "typography",
2540
- "variant": "caption",
2541
- "content": "Status"
2542
- },
2543
- {
2544
- "type": "typography",
2545
- "variant": "h3",
2546
- "content": [
2547
- "object/get",
2548
- [
2549
- "array/first",
2550
- "@entity"
2551
- ],
2552
- "status"
2553
- ]
2554
- }
2555
- ]
2556
- }
2557
- ]
2558
- },
2559
- {
2560
- "type": "card",
2561
- "children": [
2562
- {
2563
- "type": "stack",
2564
- "direction": "vertical",
2565
- "gap": "sm",
2566
- "children": [
2567
- {
2568
- "type": "typography",
2569
- "variant": "caption",
2570
- "content": "LastActive"
2571
- },
2572
- {
2573
- "type": "typography",
2574
- "variant": "h3",
2575
- "content": [
2576
- "object/get",
2577
- [
2578
- "array/first",
2579
- "@entity"
2580
- ],
2581
- "lastActive"
2582
- ]
2583
- }
2584
- ]
2585
- }
2586
- ]
2587
- },
2588
- {
2589
- "type": "card",
2590
- "children": [
2591
- {
2592
- "type": "stack",
2593
- "direction": "vertical",
2594
- "gap": "sm",
2595
- "children": [
2596
- {
2597
- "type": "typography",
2598
- "variant": "caption",
2599
- "content": "Avatar"
2600
- },
2601
- {
2602
- "type": "typography",
2603
- "variant": "h3",
2604
- "content": [
2605
- "object/get",
2606
- [
2607
- "array/first",
2608
- "@entity"
2609
- ],
2610
- "avatar"
2611
- ]
2612
- }
2613
- ]
2614
- }
2615
- ]
2616
- }
2617
- ]
2618
- }
2619
- ]
2620
- },
2621
- {
2622
- "type": "divider"
2623
- },
2624
- {
2625
- "type": "grid",
2626
- "columns": 2,
2627
- "gap": "md",
2628
- "children": [
2629
- {
2630
- "type": "card",
2631
- "children": [
2632
- {
2633
- "type": "typography",
2634
- "variant": "caption",
2635
- "content": "Chart View"
2636
- }
2637
- ]
2638
- },
2639
- {
2640
- "type": "card",
2641
- "children": [
2642
- {
2643
- "type": "typography",
2644
- "variant": "caption",
2645
- "content": "Graph View"
2646
- }
2647
- ]
2648
- }
2649
- ]
2650
- },
2651
- {
2652
- "type": "line-chart",
2653
- "data": [
2654
- {
2655
- "date": "Jan",
2656
- "value": 12
2657
- },
2658
- {
2659
- "date": "Feb",
2660
- "value": 19
2661
- },
2662
- {
2663
- "date": "Mar",
2664
- "value": 15
2665
- },
2666
- {
2667
- "date": "Apr",
2668
- "value": 25
2669
- },
2670
- {
2671
- "date": "May",
2672
- "value": 22
2673
- },
2674
- {
2675
- "date": "Jun",
2676
- "value": 30
2677
- }
2678
- ],
2679
- "xKey": "date",
2680
- "yKey": "value",
2681
- "title": "Trend"
2682
- },
2683
- {
2684
- "type": "chart-legend",
2685
- "items": [
2686
- {
2687
- "label": "Current",
2688
- "color": "primary"
2689
- },
2690
- {
2691
- "label": "Previous",
2692
- "color": "muted"
2693
- }
2694
- ]
2695
- },
2696
- {
2697
- "type": "graph-view",
2698
- "nodes": [
2699
- {
2700
- "id": "a",
2701
- "label": "Start",
2702
- "x": 50,
2703
- "y": 100
2704
- },
2705
- {
2706
- "id": "b",
2707
- "label": "Process",
2708
- "x": 200,
2709
- "y": 50
2710
- },
2711
- {
2712
- "id": "c",
2713
- "label": "End",
2714
- "x": 350,
2715
- "y": 100
2716
- }
2717
- ],
2718
- "edges": [
2719
- {
2720
- "from": "a",
2721
- "to": "b"
2722
- },
2723
- {
2724
- "from": "b",
2725
- "to": "c"
2726
- }
2727
- ],
2728
- "width": 400,
2729
- "height": 200
2730
- }
2731
- ]
2732
- }
2733
- ]
2734
- }
2735
- ]
2736
- }
2737
- ]
2738
- ]
2739
- },
2740
- {
2741
- "from": "displaying",
2742
- "to": "refreshing",
2743
- "event": "REFRESH",
2744
- "effects": [
2745
- [
2746
- "fetch",
2747
- "OnlineUser"
2748
- ],
2749
- [
2750
- "render-ui",
2751
- "main",
2752
- {
2753
- "type": "dashboard-layout",
2754
- "appName": "Realtime Chat",
2755
- "navItems": [
2756
- {
2757
- "label": "Chat",
2758
- "href": "/chat",
2759
- "icon": "layout-list"
2760
- },
2761
- {
2762
- "label": "Channels",
2763
- "href": "/channels",
2764
- "icon": "hash"
2765
- },
2766
- {
2767
- "label": "Online",
2768
- "href": "/online",
2769
- "icon": "layout-list"
2770
- }
2771
- ],
2772
- "children": [
2773
- {
2774
- "type": "scaled-diagram",
2775
- "children": [
2776
- {
2777
- "type": "stack",
2778
- "direction": "vertical",
2779
- "gap": "lg",
2780
- "children": [
2781
- {
2782
- "type": "breadcrumb",
2783
- "items": [
2784
- {
2785
- "label": "Home",
2786
- "href": "/"
2787
- },
2788
- {
2789
- "label": "Online Users"
2790
- }
2791
- ]
2792
- },
2793
- {
2794
- "type": "stack",
2795
- "direction": "horizontal",
2796
- "gap": "md",
2797
- "justify": "space-between",
2798
- "children": [
2799
- {
2800
- "type": "stack",
2801
- "direction": "horizontal",
2802
- "gap": "md",
2803
- "children": [
2804
- {
2805
- "type": "icon",
2806
- "name": "users",
2807
- "size": "lg"
2808
- },
2809
- {
2810
- "type": "typography",
2811
- "content": "Online Users",
2812
- "variant": "h2"
2813
- }
2814
- ]
2815
- },
2816
- {
2817
- "type": "button",
2818
- "label": "Refresh",
2819
- "event": "REFRESH",
2820
- "variant": "secondary",
2821
- "icon": "refresh-cw"
2822
- }
2823
- ]
2824
- },
2825
- {
2826
- "type": "divider"
2827
- },
2828
- {
2829
- "type": "box",
2830
- "padding": "md",
2831
- "children": [
2832
- {
2833
- "type": "simple-grid",
2834
- "columns": 3,
2835
- "children": [
2836
- {
2837
- "type": "card",
2838
- "children": [
2839
- {
2840
- "type": "stack",
2841
- "direction": "vertical",
2842
- "gap": "sm",
2843
- "children": [
2844
- {
2845
- "type": "typography",
2846
- "variant": "caption",
2847
- "content": "Username"
2848
- },
2849
- {
2850
- "type": "typography",
2851
- "variant": "h3",
2852
- "content": [
2853
- "object/get",
2854
- [
2855
- "array/first",
2856
- "@entity"
2857
- ],
2858
- "username"
2859
- ]
2860
- }
2861
- ]
2862
- }
2863
- ]
2864
- },
2865
- {
2866
- "type": "card",
2867
- "children": [
2868
- {
2869
- "type": "stack",
2870
- "direction": "vertical",
2871
- "gap": "sm",
2872
- "children": [
2873
- {
2874
- "type": "typography",
2875
- "variant": "caption",
2876
- "content": "Status"
2877
- },
2878
- {
2879
- "type": "typography",
2880
- "variant": "h3",
2881
- "content": [
2882
- "object/get",
2883
- [
2884
- "array/first",
2885
- "@entity"
2886
- ],
2887
- "status"
2888
- ]
2889
- }
2890
- ]
2891
- }
2892
- ]
2893
- },
2894
- {
2895
- "type": "card",
2896
- "children": [
2897
- {
2898
- "type": "stack",
2899
- "direction": "vertical",
2900
- "gap": "sm",
2901
- "children": [
2902
- {
2903
- "type": "typography",
2904
- "variant": "caption",
2905
- "content": "LastActive"
2906
- },
2907
- {
2908
- "type": "typography",
2909
- "variant": "h3",
2910
- "content": [
2911
- "object/get",
2912
- [
2913
- "array/first",
2914
- "@entity"
2915
- ],
2916
- "lastActive"
2917
- ]
2918
- }
2919
- ]
2920
- }
2921
- ]
2922
- },
2923
- {
2924
- "type": "card",
2925
- "children": [
2926
- {
2927
- "type": "stack",
2928
- "direction": "vertical",
2929
- "gap": "sm",
2930
- "children": [
2931
- {
2932
- "type": "typography",
2933
- "variant": "caption",
2934
- "content": "Avatar"
2935
- },
2936
- {
2937
- "type": "typography",
2938
- "variant": "h3",
2939
- "content": [
2940
- "object/get",
2941
- [
2942
- "array/first",
2943
- "@entity"
2944
- ],
2945
- "avatar"
2946
- ]
2947
- }
2948
- ]
2949
- }
2950
- ]
2951
- }
2952
- ]
2953
- }
2954
- ]
2955
- },
2956
- {
2957
- "type": "divider"
2958
- },
2959
- {
2960
- "type": "grid",
2961
- "columns": 2,
2962
- "gap": "md",
2963
- "children": [
2964
- {
2965
- "type": "card",
2966
- "children": [
2967
- {
2968
- "type": "typography",
2969
- "variant": "caption",
2970
- "content": "Chart View"
2971
- }
2972
- ]
2973
- },
2974
- {
2975
- "type": "card",
2976
- "children": [
2977
- {
2978
- "type": "typography",
2979
- "variant": "caption",
2980
- "content": "Graph View"
2981
- }
2982
- ]
2983
- }
2984
- ]
2985
- },
2986
- {
2987
- "type": "line-chart",
2988
- "data": [
2989
- {
2990
- "date": "Jan",
2991
- "value": 12
2992
- },
2993
- {
2994
- "date": "Feb",
2995
- "value": 19
2996
- },
2997
- {
2998
- "date": "Mar",
2999
- "value": 15
3000
- },
3001
- {
3002
- "date": "Apr",
3003
- "value": 25
3004
- },
3005
- {
3006
- "date": "May",
3007
- "value": 22
3008
- },
3009
- {
3010
- "date": "Jun",
3011
- "value": 30
3012
- }
3013
- ],
3014
- "xKey": "date",
3015
- "yKey": "value",
3016
- "title": "Trend"
3017
- },
3018
- {
3019
- "type": "chart-legend",
3020
- "items": [
3021
- {
3022
- "label": "Current",
3023
- "color": "primary"
3024
- },
3025
- {
3026
- "label": "Previous",
3027
- "color": "muted"
3028
- }
3029
- ]
3030
- },
3031
- {
3032
- "type": "graph-view",
3033
- "nodes": [
3034
- {
3035
- "id": "a",
3036
- "label": "Start",
3037
- "x": 50,
3038
- "y": 100
3039
- },
3040
- {
3041
- "id": "b",
3042
- "label": "Process",
3043
- "x": 200,
3044
- "y": 50
3045
- },
3046
- {
3047
- "id": "c",
3048
- "label": "End",
3049
- "x": 350,
3050
- "y": 100
3051
- }
3052
- ],
3053
- "edges": [
3054
- {
3055
- "from": "a",
3056
- "to": "b"
3057
- },
3058
- {
3059
- "from": "b",
3060
- "to": "c"
3061
- }
3062
- ],
3063
- "width": 400,
3064
- "height": 200
3065
- }
3066
- ]
3067
- }
3068
- ]
3069
- }
3070
- ]
3071
- }
3072
- ]
3073
- ]
3074
- },
3075
- {
3076
- "from": "refreshing",
3077
- "to": "displaying",
3078
- "event": "REFRESHED",
3079
- "effects": [
3080
- [
3081
- "fetch",
3082
- "OnlineUser"
3083
- ],
3084
- [
3085
- "render-ui",
3086
- "main",
3087
- {
3088
- "type": "dashboard-layout",
3089
- "appName": "Realtime Chat",
3090
- "navItems": [
3091
- {
3092
- "label": "Chat",
3093
- "href": "/chat",
3094
- "icon": "layout-list"
3095
- },
3096
- {
3097
- "label": "Channels",
3098
- "href": "/channels",
3099
- "icon": "hash"
3100
- },
3101
- {
3102
- "label": "Online",
3103
- "href": "/online",
3104
- "icon": "layout-list"
3105
- }
3106
- ],
3107
- "children": [
3108
- {
3109
- "type": "scaled-diagram",
3110
- "children": [
3111
- {
3112
- "type": "stack",
3113
- "direction": "vertical",
3114
- "gap": "lg",
3115
- "children": [
3116
- {
3117
- "type": "breadcrumb",
3118
- "items": [
3119
- {
3120
- "label": "Home",
3121
- "href": "/"
3122
- },
3123
- {
3124
- "label": "Online Users"
3125
- }
3126
- ]
3127
- },
3128
- {
3129
- "type": "stack",
3130
- "direction": "horizontal",
3131
- "gap": "md",
3132
- "justify": "space-between",
3133
- "children": [
3134
- {
3135
- "type": "stack",
3136
- "direction": "horizontal",
3137
- "gap": "md",
3138
- "children": [
3139
- {
3140
- "type": "icon",
3141
- "name": "users",
3142
- "size": "lg"
3143
- },
3144
- {
3145
- "type": "typography",
3146
- "content": "Online Users",
3147
- "variant": "h2"
3148
- }
3149
- ]
3150
- },
3151
- {
3152
- "type": "button",
3153
- "label": "Refresh",
3154
- "event": "REFRESH",
3155
- "variant": "secondary",
3156
- "icon": "refresh-cw"
3157
- }
3158
- ]
3159
- },
3160
- {
3161
- "type": "divider"
3162
- },
3163
- {
3164
- "type": "box",
3165
- "padding": "md",
3166
- "children": [
3167
- {
3168
- "type": "simple-grid",
3169
- "columns": 3,
3170
- "children": [
3171
- {
3172
- "type": "card",
3173
- "children": [
3174
- {
3175
- "type": "stack",
3176
- "direction": "vertical",
3177
- "gap": "sm",
3178
- "children": [
3179
- {
3180
- "type": "typography",
3181
- "variant": "caption",
3182
- "content": "Username"
3183
- },
3184
- {
3185
- "type": "typography",
3186
- "variant": "h3",
3187
- "content": [
3188
- "object/get",
3189
- [
3190
- "array/first",
3191
- "@entity"
3192
- ],
3193
- "username"
3194
- ]
3195
- }
3196
- ]
3197
- }
3198
- ]
3199
- },
3200
- {
3201
- "type": "card",
3202
- "children": [
3203
- {
3204
- "type": "stack",
3205
- "direction": "vertical",
3206
- "gap": "sm",
3207
- "children": [
3208
- {
3209
- "type": "typography",
3210
- "variant": "caption",
3211
- "content": "Status"
3212
- },
3213
- {
3214
- "type": "typography",
3215
- "variant": "h3",
3216
- "content": [
3217
- "object/get",
3218
- [
3219
- "array/first",
3220
- "@entity"
3221
- ],
3222
- "status"
3223
- ]
3224
- }
3225
- ]
3226
- }
3227
- ]
3228
- },
3229
- {
3230
- "type": "card",
3231
- "children": [
3232
- {
3233
- "type": "stack",
3234
- "direction": "vertical",
3235
- "gap": "sm",
3236
- "children": [
3237
- {
3238
- "type": "typography",
3239
- "variant": "caption",
3240
- "content": "LastActive"
3241
- },
3242
- {
3243
- "type": "typography",
3244
- "variant": "h3",
3245
- "content": [
3246
- "object/get",
3247
- [
3248
- "array/first",
3249
- "@entity"
3250
- ],
3251
- "lastActive"
3252
- ]
3253
- }
3254
- ]
3255
- }
3256
- ]
3257
- },
3258
- {
3259
- "type": "card",
3260
- "children": [
3261
- {
3262
- "type": "stack",
3263
- "direction": "vertical",
3264
- "gap": "sm",
3265
- "children": [
3266
- {
3267
- "type": "typography",
3268
- "variant": "caption",
3269
- "content": "Avatar"
3270
- },
3271
- {
3272
- "type": "typography",
3273
- "variant": "h3",
3274
- "content": [
3275
- "object/get",
3276
- [
3277
- "array/first",
3278
- "@entity"
3279
- ],
3280
- "avatar"
3281
- ]
3282
- }
3283
- ]
3284
- }
3285
- ]
3286
- }
3287
- ]
3288
- }
3289
- ]
3290
- },
3291
- {
3292
- "type": "divider"
3293
- },
3294
- {
3295
- "type": "grid",
3296
- "columns": 2,
3297
- "gap": "md",
3298
- "children": [
3299
- {
3300
- "type": "card",
3301
- "children": [
3302
- {
3303
- "type": "typography",
3304
- "variant": "caption",
3305
- "content": "Chart View"
3306
- }
3307
- ]
3308
- },
3309
- {
3310
- "type": "card",
3311
- "children": [
3312
- {
3313
- "type": "typography",
3314
- "variant": "caption",
3315
- "content": "Graph View"
3316
- }
3317
- ]
3318
- }
3319
- ]
3320
- },
3321
- {
3322
- "type": "line-chart",
3323
- "data": [
3324
- {
3325
- "date": "Jan",
3326
- "value": 12
3327
- },
3328
- {
3329
- "date": "Feb",
3330
- "value": 19
3331
- },
3332
- {
3333
- "date": "Mar",
3334
- "value": 15
3335
- },
3336
- {
3337
- "date": "Apr",
3338
- "value": 25
3339
- },
3340
- {
3341
- "date": "May",
3342
- "value": 22
3343
- },
3344
- {
3345
- "date": "Jun",
3346
- "value": 30
3347
- }
3348
- ],
3349
- "xKey": "date",
3350
- "yKey": "value",
3351
- "title": "Trend"
3352
- },
3353
- {
3354
- "type": "chart-legend",
3355
- "items": [
3356
- {
3357
- "label": "Current",
3358
- "color": "primary"
3359
- },
3360
- {
3361
- "label": "Previous",
3362
- "color": "muted"
3363
- }
3364
- ]
3365
- },
3366
- {
3367
- "type": "graph-view",
3368
- "nodes": [
3369
- {
3370
- "id": "a",
3371
- "label": "Start",
3372
- "x": 50,
3373
- "y": 100
3374
- },
3375
- {
3376
- "id": "b",
3377
- "label": "Process",
3378
- "x": 200,
3379
- "y": 50
3380
- },
3381
- {
3382
- "id": "c",
3383
- "label": "End",
3384
- "x": 350,
3385
- "y": 100
3386
- }
3387
- ],
3388
- "edges": [
3389
- {
3390
- "from": "a",
3391
- "to": "b"
3392
- },
3393
- {
3394
- "from": "b",
3395
- "to": "c"
3396
- }
3397
- ],
3398
- "width": 400,
3399
- "height": 200
3400
- }
3401
- ]
3402
- }
3403
- ]
3404
- }
3405
- ]
3406
- }
3407
- ]
3408
- ]
3409
- }
3410
- ]
3411
- }
3412
- }
3413
- ],
3414
- "pages": [
3415
- {
3416
- "name": "OnlinePage",
3417
- "path": "/online",
3418
- "traits": [
3419
- {
3420
- "ref": "OnlineUserDisplay"
3421
- }
3422
- ]
3423
- }
3424
- ]
3425
- }
3426
- ],
3427
- "description": "Realtime chat organism. Composes: stdMessaging(ChatMessage) + stdList(Channel) + stdDisplay(OnlineUser) Pages: /chat (initial), /channels, /online (2026-04-08). The canonical source for std behaviors is now the registry `.orb` file at `packages/almadar-std/behaviors/registry/<level>/<name>.orb`, which is generated from this TS source by `tools/almadar-behavior-ts-to-orb/` and consumed by the compiler's embedded loader. Consumers should import behaviors via `.lolo`/`.orb` `uses` declarations and reference them as `Alias.entity` / `Alias.traits.X` / `Alias.pages.X`, applying overrides at the call site (`linkedEntity`, `name`, `events`, `effects`, `listens`, `emitsScope`). The TS `*Params` interface and the exported factory functions remain ONLY as the authoring path for the converter; they are NOT a stable public API and may change without notice. See `docs/Almadar_Orb_Behaviors.md` for the orbital-as-function model and `docs/LOLO_Gaps.md` for the migration plan."
3428
- }