@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,4366 +0,0 @@
1
- {
2
- "name": "CRM",
3
- "version": "1.0.0",
4
- "orbitals": [
5
- {
6
- "name": "ContactOrbital",
7
- "entity": {
8
- "name": "Contact",
9
- "persistence": "runtime",
10
- "fields": [
11
- {
12
- "name": "id",
13
- "type": "string",
14
- "required": true
15
- },
16
- {
17
- "name": "name",
18
- "type": "string",
19
- "default": ""
20
- },
21
- {
22
- "name": "company",
23
- "type": "string",
24
- "default": ""
25
- },
26
- {
27
- "name": "email",
28
- "type": "string",
29
- "default": ""
30
- },
31
- {
32
- "name": "phone",
33
- "type": "string",
34
- "default": ""
35
- },
36
- {
37
- "name": "status",
38
- "type": "string",
39
- "default": "lead",
40
- "values": [
41
- "lead",
42
- "prospect",
43
- "customer",
44
- "inactive"
45
- ]
46
- },
47
- {
48
- "name": "pendingId",
49
- "type": "string",
50
- "default": ""
51
- }
52
- ]
53
- },
54
- "traits": [
55
- {
56
- "name": "ContactBrowse",
57
- "linkedEntity": "Contact",
58
- "category": "interaction",
59
- "listens": [
60
- {
61
- "event": "CONTACT_CREATED",
62
- "triggers": "INIT"
63
- },
64
- {
65
- "event": "CONTACT_UPDATED",
66
- "triggers": "INIT"
67
- },
68
- {
69
- "event": "CONTACT_DELETED",
70
- "triggers": "INIT"
71
- }
72
- ],
73
- "stateMachine": {
74
- "states": [
75
- {
76
- "name": "browsing",
77
- "isInitial": true
78
- }
79
- ],
80
- "events": [
81
- {
82
- "key": "INIT",
83
- "name": "Initialize"
84
- },
85
- {
86
- "key": "CREATE",
87
- "name": "CREATE"
88
- },
89
- {
90
- "key": "VIEW",
91
- "name": "VIEW",
92
- "payload": [
93
- {
94
- "name": "id",
95
- "type": "string",
96
- "required": true
97
- },
98
- {
99
- "name": "row",
100
- "type": "object"
101
- }
102
- ]
103
- },
104
- {
105
- "key": "EDIT",
106
- "name": "EDIT",
107
- "payload": [
108
- {
109
- "name": "id",
110
- "type": "string",
111
- "required": true
112
- },
113
- {
114
- "name": "row",
115
- "type": "object"
116
- }
117
- ]
118
- },
119
- {
120
- "key": "DELETE",
121
- "name": "DELETE",
122
- "payload": [
123
- {
124
- "name": "id",
125
- "type": "string",
126
- "required": true
127
- },
128
- {
129
- "name": "row",
130
- "type": "object"
131
- }
132
- ]
133
- }
134
- ],
135
- "transitions": [
136
- {
137
- "from": "browsing",
138
- "to": "browsing",
139
- "event": "INIT",
140
- "effects": [
141
- [
142
- "ref",
143
- "Contact"
144
- ],
145
- [
146
- "render-ui",
147
- "main",
148
- {
149
- "type": "dashboard-layout",
150
- "appName": "CRM",
151
- "navItems": [
152
- {
153
- "label": "Contacts",
154
- "href": "/contacts",
155
- "icon": "users"
156
- },
157
- {
158
- "label": "Deals",
159
- "href": "/deals",
160
- "icon": "briefcase"
161
- },
162
- {
163
- "label": "Pipeline",
164
- "href": "/pipeline",
165
- "icon": "bar-chart-2"
166
- },
167
- {
168
- "label": "Notes",
169
- "href": "/notes",
170
- "icon": "file-text"
171
- }
172
- ],
173
- "children": [
174
- {
175
- "type": "stack",
176
- "direction": "vertical",
177
- "gap": "lg",
178
- "className": "max-w-5xl mx-auto w-full",
179
- "children": [
180
- {
181
- "type": "stack",
182
- "direction": "horizontal",
183
- "gap": "md",
184
- "justify": "space-between",
185
- "align": "center",
186
- "children": [
187
- {
188
- "type": "stack",
189
- "direction": "horizontal",
190
- "gap": "sm",
191
- "align": "center",
192
- "children": [
193
- {
194
- "type": "icon",
195
- "name": "users",
196
- "size": "lg"
197
- },
198
- {
199
- "type": "typography",
200
- "content": "Contacts",
201
- "variant": "h2"
202
- }
203
- ]
204
- },
205
- {
206
- "type": "stack",
207
- "direction": "horizontal",
208
- "gap": "sm",
209
- "children": [
210
- {
211
- "type": "button",
212
- "label": "Add Contact",
213
- "event": "CREATE",
214
- "variant": "primary",
215
- "icon": "plus"
216
- }
217
- ]
218
- }
219
- ]
220
- },
221
- {
222
- "type": "divider"
223
- },
224
- {
225
- "type": "simple-grid",
226
- "columns": 1,
227
- "children": [
228
- {
229
- "type": "stat-display",
230
- "label": "Total Contacts",
231
- "value": [
232
- "array/len",
233
- "@entity"
234
- ],
235
- "icon": "users"
236
- }
237
- ]
238
- },
239
- {
240
- "type": "divider"
241
- },
242
- {
243
- "type": "data-list",
244
- "entity": "Contact",
245
- "emptyIcon": "inbox",
246
- "emptyTitle": "No contacts yet",
247
- "emptyDescription": "Add your first contact to start building your CRM.",
248
- "itemActions": [
249
- {
250
- "label": "View",
251
- "event": "VIEW",
252
- "variant": "ghost",
253
- "size": "sm"
254
- },
255
- {
256
- "label": "Edit",
257
- "event": "EDIT",
258
- "variant": "ghost",
259
- "size": "sm"
260
- },
261
- {
262
- "label": "Delete",
263
- "event": "DELETE",
264
- "variant": "danger",
265
- "size": "sm"
266
- }
267
- ],
268
- "columns": [
269
- {
270
- "name": "name",
271
- "variant": "h3",
272
- "icon": "user"
273
- },
274
- {
275
- "name": "status",
276
- "variant": "badge"
277
- },
278
- {
279
- "name": "company",
280
- "variant": "body"
281
- },
282
- {
283
- "name": "email",
284
- "variant": "caption"
285
- },
286
- {
287
- "name": "phone",
288
- "variant": "caption"
289
- }
290
- ],
291
- "variant": "card",
292
- "gap": "sm"
293
- }
294
- ]
295
- }
296
- ]
297
- }
298
- ]
299
- ]
300
- }
301
- ]
302
- },
303
- "emits": [
304
- {
305
- "event": "CONVERT_LEAD",
306
- "description": "Convert contact lead to a deal",
307
- "payload": [
308
- {
309
- "name": "id",
310
- "type": "string",
311
- "required": true
312
- }
313
- ],
314
- "scope": "external"
315
- }
316
- ]
317
- },
318
- {
319
- "name": "ContactCreate",
320
- "linkedEntity": "Contact",
321
- "category": "interaction",
322
- "emits": [
323
- {
324
- "event": "SAVE"
325
- },
326
- {
327
- "event": "CONTACT_CREATED"
328
- }
329
- ],
330
- "stateMachine": {
331
- "states": [
332
- {
333
- "name": "closed",
334
- "isInitial": true
335
- },
336
- {
337
- "name": "open"
338
- }
339
- ],
340
- "events": [
341
- {
342
- "key": "INIT",
343
- "name": "Initialize"
344
- },
345
- {
346
- "key": "CREATE",
347
- "name": "Open"
348
- },
349
- {
350
- "key": "CLOSE",
351
- "name": "Close"
352
- },
353
- {
354
- "key": "SAVE",
355
- "name": "Save",
356
- "payload": [
357
- {
358
- "name": "data",
359
- "type": "object",
360
- "required": true
361
- }
362
- ]
363
- }
364
- ],
365
- "transitions": [
366
- {
367
- "from": "closed",
368
- "to": "closed",
369
- "event": "INIT",
370
- "effects": [
371
- [
372
- "ref",
373
- "Contact"
374
- ]
375
- ]
376
- },
377
- {
378
- "from": "closed",
379
- "to": "open",
380
- "event": "CREATE",
381
- "effects": [
382
- [
383
- "fetch",
384
- "Contact"
385
- ],
386
- [
387
- "render-ui",
388
- "modal",
389
- {
390
- "type": "stack",
391
- "direction": "vertical",
392
- "gap": "md",
393
- "children": [
394
- {
395
- "type": "stack",
396
- "direction": "horizontal",
397
- "gap": "sm",
398
- "children": [
399
- {
400
- "type": "icon",
401
- "name": "plus-circle",
402
- "size": "md"
403
- },
404
- {
405
- "type": "typography",
406
- "content": "New Contact",
407
- "variant": "h3"
408
- }
409
- ]
410
- },
411
- {
412
- "type": "divider"
413
- },
414
- {
415
- "type": "form-section",
416
- "entity": "Contact",
417
- "mode": "create",
418
- "submitEvent": "SAVE",
419
- "cancelEvent": "CLOSE",
420
- "fields": [
421
- "name",
422
- "company",
423
- "email",
424
- "phone",
425
- "status"
426
- ]
427
- }
428
- ]
429
- }
430
- ]
431
- ]
432
- },
433
- {
434
- "from": "open",
435
- "to": "closed",
436
- "event": "CLOSE",
437
- "effects": [
438
- [
439
- "render-ui",
440
- "modal",
441
- null
442
- ],
443
- [
444
- "notify",
445
- "Cancelled",
446
- "info"
447
- ]
448
- ]
449
- },
450
- {
451
- "from": "open",
452
- "to": "closed",
453
- "event": "SAVE",
454
- "effects": [
455
- [
456
- "persist",
457
- "create",
458
- "Contact",
459
- "@payload.data"
460
- ],
461
- [
462
- "render-ui",
463
- "modal",
464
- null
465
- ],
466
- [
467
- "emit",
468
- "CONTACT_CREATED"
469
- ],
470
- [
471
- "notify",
472
- "Contact created successfully"
473
- ]
474
- ]
475
- }
476
- ]
477
- }
478
- },
479
- {
480
- "name": "ContactEdit",
481
- "linkedEntity": "Contact",
482
- "category": "interaction",
483
- "emits": [
484
- {
485
- "event": "SAVE"
486
- },
487
- {
488
- "event": "CONTACT_UPDATED"
489
- }
490
- ],
491
- "stateMachine": {
492
- "states": [
493
- {
494
- "name": "closed",
495
- "isInitial": true
496
- },
497
- {
498
- "name": "open"
499
- }
500
- ],
501
- "events": [
502
- {
503
- "key": "INIT",
504
- "name": "Initialize"
505
- },
506
- {
507
- "key": "EDIT",
508
- "name": "Open",
509
- "payload": [
510
- {
511
- "name": "id",
512
- "type": "string",
513
- "required": true
514
- }
515
- ]
516
- },
517
- {
518
- "key": "CLOSE",
519
- "name": "Close"
520
- },
521
- {
522
- "key": "SAVE",
523
- "name": "Save",
524
- "payload": [
525
- {
526
- "name": "data",
527
- "type": "object",
528
- "required": true
529
- }
530
- ]
531
- }
532
- ],
533
- "transitions": [
534
- {
535
- "from": "closed",
536
- "to": "closed",
537
- "event": "INIT",
538
- "effects": [
539
- [
540
- "ref",
541
- "Contact"
542
- ]
543
- ]
544
- },
545
- {
546
- "from": "closed",
547
- "to": "open",
548
- "event": "EDIT",
549
- "effects": [
550
- [
551
- "fetch",
552
- "Contact",
553
- {
554
- "id": "@payload.id"
555
- }
556
- ],
557
- [
558
- "render-ui",
559
- "modal",
560
- {
561
- "type": "stack",
562
- "direction": "vertical",
563
- "gap": "md",
564
- "children": [
565
- {
566
- "type": "stack",
567
- "direction": "horizontal",
568
- "gap": "sm",
569
- "children": [
570
- {
571
- "type": "icon",
572
- "name": "edit",
573
- "size": "md"
574
- },
575
- {
576
- "type": "typography",
577
- "content": "Edit Contact",
578
- "variant": "h3"
579
- }
580
- ]
581
- },
582
- {
583
- "type": "divider"
584
- },
585
- {
586
- "type": "form-section",
587
- "entity": "Contact",
588
- "mode": "edit",
589
- "submitEvent": "SAVE",
590
- "cancelEvent": "CLOSE",
591
- "fields": [
592
- "name",
593
- "company",
594
- "email",
595
- "phone",
596
- "status"
597
- ],
598
- "entityId": "@entity.id"
599
- }
600
- ]
601
- }
602
- ]
603
- ]
604
- },
605
- {
606
- "from": "open",
607
- "to": "closed",
608
- "event": "CLOSE",
609
- "effects": [
610
- [
611
- "render-ui",
612
- "modal",
613
- null
614
- ],
615
- [
616
- "notify",
617
- "Cancelled",
618
- "info"
619
- ]
620
- ]
621
- },
622
- {
623
- "from": "open",
624
- "to": "closed",
625
- "event": "SAVE",
626
- "effects": [
627
- [
628
- "persist",
629
- "update",
630
- "Contact",
631
- "@payload.data"
632
- ],
633
- [
634
- "render-ui",
635
- "modal",
636
- null
637
- ],
638
- [
639
- "emit",
640
- "CONTACT_UPDATED"
641
- ],
642
- [
643
- "notify",
644
- "Contact updated successfully"
645
- ]
646
- ]
647
- }
648
- ]
649
- }
650
- },
651
- {
652
- "name": "ContactView",
653
- "linkedEntity": "Contact",
654
- "category": "interaction",
655
- "emits": [
656
- {
657
- "event": "SAVE"
658
- }
659
- ],
660
- "stateMachine": {
661
- "states": [
662
- {
663
- "name": "closed",
664
- "isInitial": true
665
- },
666
- {
667
- "name": "open"
668
- }
669
- ],
670
- "events": [
671
- {
672
- "key": "INIT",
673
- "name": "Initialize"
674
- },
675
- {
676
- "key": "VIEW",
677
- "name": "Open",
678
- "payload": [
679
- {
680
- "name": "id",
681
- "type": "string",
682
- "required": true
683
- }
684
- ]
685
- },
686
- {
687
- "key": "CLOSE",
688
- "name": "Close"
689
- },
690
- {
691
- "key": "SAVE",
692
- "name": "Save",
693
- "payload": [
694
- {
695
- "name": "data",
696
- "type": "object",
697
- "required": true
698
- }
699
- ]
700
- }
701
- ],
702
- "transitions": [
703
- {
704
- "from": "closed",
705
- "to": "closed",
706
- "event": "INIT",
707
- "effects": [
708
- [
709
- "ref",
710
- "Contact"
711
- ]
712
- ]
713
- },
714
- {
715
- "from": "closed",
716
- "to": "open",
717
- "event": "VIEW",
718
- "effects": [
719
- [
720
- "fetch",
721
- "Contact",
722
- {
723
- "id": "@payload.id"
724
- }
725
- ],
726
- [
727
- "render-ui",
728
- "modal",
729
- {
730
- "type": "stack",
731
- "direction": "vertical",
732
- "gap": "md",
733
- "children": [
734
- {
735
- "type": "stack",
736
- "direction": "horizontal",
737
- "gap": "sm",
738
- "align": "center",
739
- "children": [
740
- {
741
- "type": "icon",
742
- "name": "eye",
743
- "size": "md"
744
- },
745
- {
746
- "type": "typography",
747
- "variant": "h3",
748
- "content": "@entity.name"
749
- }
750
- ]
751
- },
752
- {
753
- "type": "divider"
754
- },
755
- {
756
- "type": "stack",
757
- "direction": "horizontal",
758
- "gap": "md",
759
- "children": [
760
- {
761
- "type": "typography",
762
- "variant": "caption",
763
- "content": "Name"
764
- },
765
- {
766
- "type": "typography",
767
- "variant": "body",
768
- "content": "@entity.name"
769
- }
770
- ]
771
- },
772
- {
773
- "type": "stack",
774
- "direction": "horizontal",
775
- "gap": "md",
776
- "children": [
777
- {
778
- "type": "typography",
779
- "variant": "caption",
780
- "content": "Company"
781
- },
782
- {
783
- "type": "typography",
784
- "variant": "body",
785
- "content": "@entity.company"
786
- }
787
- ]
788
- },
789
- {
790
- "type": "stack",
791
- "direction": "horizontal",
792
- "gap": "md",
793
- "children": [
794
- {
795
- "type": "typography",
796
- "variant": "caption",
797
- "content": "Email"
798
- },
799
- {
800
- "type": "typography",
801
- "variant": "body",
802
- "content": "@entity.email"
803
- }
804
- ]
805
- },
806
- {
807
- "type": "stack",
808
- "direction": "horizontal",
809
- "gap": "md",
810
- "children": [
811
- {
812
- "type": "typography",
813
- "variant": "caption",
814
- "content": "Phone"
815
- },
816
- {
817
- "type": "typography",
818
- "variant": "body",
819
- "content": "@entity.phone"
820
- }
821
- ]
822
- },
823
- {
824
- "type": "stack",
825
- "direction": "horizontal",
826
- "gap": "md",
827
- "children": [
828
- {
829
- "type": "typography",
830
- "variant": "caption",
831
- "content": "Status"
832
- },
833
- {
834
- "type": "typography",
835
- "variant": "body",
836
- "content": "@entity.status"
837
- }
838
- ]
839
- },
840
- {
841
- "type": "divider"
842
- },
843
- {
844
- "type": "stack",
845
- "direction": "horizontal",
846
- "gap": "sm",
847
- "justify": "end",
848
- "children": [
849
- {
850
- "type": "button",
851
- "label": "Edit",
852
- "event": "EDIT",
853
- "variant": "primary",
854
- "icon": "edit"
855
- },
856
- {
857
- "type": "button",
858
- "label": "Close",
859
- "event": "CLOSE",
860
- "variant": "ghost"
861
- }
862
- ]
863
- }
864
- ]
865
- }
866
- ]
867
- ]
868
- },
869
- {
870
- "from": "open",
871
- "to": "closed",
872
- "event": "CLOSE",
873
- "effects": [
874
- [
875
- "render-ui",
876
- "modal",
877
- null
878
- ],
879
- [
880
- "notify",
881
- "Cancelled",
882
- "info"
883
- ]
884
- ]
885
- },
886
- {
887
- "from": "open",
888
- "to": "closed",
889
- "event": "SAVE",
890
- "effects": [
891
- [
892
- "render-ui",
893
- "modal",
894
- null
895
- ]
896
- ]
897
- }
898
- ]
899
- }
900
- },
901
- {
902
- "name": "ContactDelete",
903
- "linkedEntity": "Contact",
904
- "category": "interaction",
905
- "emits": [
906
- {
907
- "event": "CONFIRM_DELETE"
908
- },
909
- {
910
- "event": "CONTACT_DELETED"
911
- }
912
- ],
913
- "stateMachine": {
914
- "states": [
915
- {
916
- "name": "idle",
917
- "isInitial": true
918
- },
919
- {
920
- "name": "confirming"
921
- }
922
- ],
923
- "events": [
924
- {
925
- "key": "INIT",
926
- "name": "Initialize"
927
- },
928
- {
929
- "key": "DELETE",
930
- "name": "Request Confirmation",
931
- "payload": [
932
- {
933
- "name": "id",
934
- "type": "string",
935
- "required": true
936
- }
937
- ]
938
- },
939
- {
940
- "key": "CONFIRM_DELETE",
941
- "name": "Confirm"
942
- },
943
- {
944
- "key": "CANCEL",
945
- "name": "Cancel"
946
- },
947
- {
948
- "key": "CLOSE",
949
- "name": "Close"
950
- }
951
- ],
952
- "transitions": [
953
- {
954
- "from": "idle",
955
- "to": "idle",
956
- "event": "INIT",
957
- "effects": [
958
- [
959
- "ref",
960
- "Contact"
961
- ]
962
- ]
963
- },
964
- {
965
- "from": "idle",
966
- "to": "confirming",
967
- "event": "DELETE",
968
- "effects": [
969
- [
970
- "set",
971
- "@entity.pendingId",
972
- "@payload.id"
973
- ],
974
- [
975
- "fetch",
976
- "Contact",
977
- {
978
- "id": "@payload.id"
979
- }
980
- ],
981
- [
982
- "render-ui",
983
- "modal",
984
- {
985
- "type": "stack",
986
- "direction": "vertical",
987
- "gap": "md",
988
- "children": [
989
- {
990
- "type": "stack",
991
- "direction": "horizontal",
992
- "gap": "sm",
993
- "align": "center",
994
- "children": [
995
- {
996
- "type": "icon",
997
- "name": "alert-triangle",
998
- "size": "md"
999
- },
1000
- {
1001
- "type": "typography",
1002
- "content": "Delete Contact",
1003
- "variant": "h3"
1004
- }
1005
- ]
1006
- },
1007
- {
1008
- "type": "divider"
1009
- },
1010
- {
1011
- "type": "alert",
1012
- "variant": "danger",
1013
- "message": "This action cannot be undone."
1014
- },
1015
- {
1016
- "type": "stack",
1017
- "direction": "horizontal",
1018
- "gap": "sm",
1019
- "justify": "end",
1020
- "children": [
1021
- {
1022
- "type": "button",
1023
- "label": "Cancel",
1024
- "event": "CANCEL",
1025
- "variant": "ghost"
1026
- },
1027
- {
1028
- "type": "button",
1029
- "label": "Delete",
1030
- "event": "CONFIRM_DELETE",
1031
- "variant": "danger",
1032
- "icon": "check"
1033
- }
1034
- ]
1035
- }
1036
- ]
1037
- }
1038
- ]
1039
- ]
1040
- },
1041
- {
1042
- "from": "confirming",
1043
- "to": "idle",
1044
- "event": "CONFIRM_DELETE",
1045
- "effects": [
1046
- [
1047
- "persist",
1048
- "delete",
1049
- "Contact",
1050
- "@entity.pendingId"
1051
- ],
1052
- [
1053
- "render-ui",
1054
- "modal",
1055
- null
1056
- ],
1057
- [
1058
- "ref",
1059
- "Contact"
1060
- ],
1061
- [
1062
- "emit",
1063
- "CONTACT_DELETED"
1064
- ],
1065
- [
1066
- "notify",
1067
- "Contact deleted successfully"
1068
- ]
1069
- ]
1070
- },
1071
- {
1072
- "from": "confirming",
1073
- "to": "idle",
1074
- "event": "CANCEL",
1075
- "effects": [
1076
- [
1077
- "render-ui",
1078
- "modal",
1079
- null
1080
- ],
1081
- [
1082
- "ref",
1083
- "Contact"
1084
- ]
1085
- ]
1086
- },
1087
- {
1088
- "from": "confirming",
1089
- "to": "idle",
1090
- "event": "CLOSE",
1091
- "effects": [
1092
- [
1093
- "render-ui",
1094
- "modal",
1095
- null
1096
- ],
1097
- [
1098
- "ref",
1099
- "Contact"
1100
- ]
1101
- ]
1102
- }
1103
- ]
1104
- }
1105
- }
1106
- ],
1107
- "pages": [
1108
- {
1109
- "name": "ContactsPage",
1110
- "path": "/contacts",
1111
- "isInitial": true,
1112
- "traits": [
1113
- {
1114
- "ref": "ContactBrowse"
1115
- },
1116
- {
1117
- "ref": "ContactCreate"
1118
- },
1119
- {
1120
- "ref": "ContactEdit"
1121
- },
1122
- {
1123
- "ref": "ContactView"
1124
- },
1125
- {
1126
- "ref": "ContactDelete"
1127
- }
1128
- ]
1129
- }
1130
- ]
1131
- },
1132
- {
1133
- "name": "DealOrbital",
1134
- "entity": {
1135
- "name": "Deal",
1136
- "persistence": "runtime",
1137
- "fields": [
1138
- {
1139
- "name": "id",
1140
- "type": "string",
1141
- "required": true
1142
- },
1143
- {
1144
- "name": "title",
1145
- "type": "string",
1146
- "default": ""
1147
- },
1148
- {
1149
- "name": "contactId",
1150
- "type": "string",
1151
- "default": ""
1152
- },
1153
- {
1154
- "name": "value",
1155
- "type": "number",
1156
- "default": 0
1157
- },
1158
- {
1159
- "name": "stage",
1160
- "type": "string",
1161
- "default": "prospecting",
1162
- "values": [
1163
- "prospecting",
1164
- "qualification",
1165
- "proposal",
1166
- "negotiation",
1167
- "closed-won",
1168
- "closed-lost"
1169
- ]
1170
- },
1171
- {
1172
- "name": "closedAt",
1173
- "type": "date",
1174
- "default": ""
1175
- },
1176
- {
1177
- "name": "pendingId",
1178
- "type": "string",
1179
- "default": ""
1180
- }
1181
- ]
1182
- },
1183
- "traits": [
1184
- {
1185
- "name": "DealBrowse",
1186
- "linkedEntity": "Deal",
1187
- "category": "interaction",
1188
- "listens": [
1189
- {
1190
- "event": "DEAL_CREATED",
1191
- "triggers": "INIT"
1192
- },
1193
- {
1194
- "event": "DEAL_UPDATED",
1195
- "triggers": "INIT"
1196
- },
1197
- {
1198
- "event": "DEAL_DELETED",
1199
- "triggers": "INIT"
1200
- },
1201
- {
1202
- "event": "CONVERT_LEAD",
1203
- "triggers": "INIT",
1204
- "scope": "external"
1205
- }
1206
- ],
1207
- "stateMachine": {
1208
- "states": [
1209
- {
1210
- "name": "browsing",
1211
- "isInitial": true
1212
- }
1213
- ],
1214
- "events": [
1215
- {
1216
- "key": "INIT",
1217
- "name": "Initialize"
1218
- },
1219
- {
1220
- "key": "CREATE",
1221
- "name": "CREATE"
1222
- },
1223
- {
1224
- "key": "VIEW",
1225
- "name": "VIEW",
1226
- "payload": [
1227
- {
1228
- "name": "id",
1229
- "type": "string",
1230
- "required": true
1231
- },
1232
- {
1233
- "name": "row",
1234
- "type": "object"
1235
- }
1236
- ]
1237
- },
1238
- {
1239
- "key": "EDIT",
1240
- "name": "EDIT",
1241
- "payload": [
1242
- {
1243
- "name": "id",
1244
- "type": "string",
1245
- "required": true
1246
- },
1247
- {
1248
- "name": "row",
1249
- "type": "object"
1250
- }
1251
- ]
1252
- },
1253
- {
1254
- "key": "DELETE",
1255
- "name": "DELETE",
1256
- "payload": [
1257
- {
1258
- "name": "id",
1259
- "type": "string",
1260
- "required": true
1261
- },
1262
- {
1263
- "name": "row",
1264
- "type": "object"
1265
- }
1266
- ]
1267
- }
1268
- ],
1269
- "transitions": [
1270
- {
1271
- "from": "browsing",
1272
- "to": "browsing",
1273
- "event": "INIT",
1274
- "effects": [
1275
- [
1276
- "ref",
1277
- "Deal"
1278
- ],
1279
- [
1280
- "render-ui",
1281
- "main",
1282
- {
1283
- "type": "dashboard-layout",
1284
- "appName": "CRM",
1285
- "navItems": [
1286
- {
1287
- "label": "Contacts",
1288
- "href": "/contacts",
1289
- "icon": "users"
1290
- },
1291
- {
1292
- "label": "Deals",
1293
- "href": "/deals",
1294
- "icon": "briefcase"
1295
- },
1296
- {
1297
- "label": "Pipeline",
1298
- "href": "/pipeline",
1299
- "icon": "bar-chart-2"
1300
- },
1301
- {
1302
- "label": "Notes",
1303
- "href": "/notes",
1304
- "icon": "file-text"
1305
- }
1306
- ],
1307
- "children": [
1308
- {
1309
- "type": "stack",
1310
- "direction": "vertical",
1311
- "gap": "lg",
1312
- "className": "max-w-5xl mx-auto w-full",
1313
- "children": [
1314
- {
1315
- "type": "stack",
1316
- "direction": "horizontal",
1317
- "gap": "md",
1318
- "justify": "space-between",
1319
- "align": "center",
1320
- "children": [
1321
- {
1322
- "type": "stack",
1323
- "direction": "horizontal",
1324
- "gap": "sm",
1325
- "align": "center",
1326
- "children": [
1327
- {
1328
- "type": "icon",
1329
- "name": "briefcase",
1330
- "size": "lg"
1331
- },
1332
- {
1333
- "type": "typography",
1334
- "content": "Deals",
1335
- "variant": "h2"
1336
- }
1337
- ]
1338
- },
1339
- {
1340
- "type": "stack",
1341
- "direction": "horizontal",
1342
- "gap": "sm",
1343
- "children": [
1344
- {
1345
- "type": "button",
1346
- "label": "New Deal",
1347
- "event": "CREATE",
1348
- "variant": "primary",
1349
- "icon": "plus"
1350
- }
1351
- ]
1352
- }
1353
- ]
1354
- },
1355
- {
1356
- "type": "divider"
1357
- },
1358
- {
1359
- "type": "data-grid",
1360
- "entity": "Deal",
1361
- "emptyIcon": "inbox",
1362
- "emptyTitle": "No deals yet",
1363
- "emptyDescription": "Create a deal to track your sales pipeline.",
1364
- "itemActions": [
1365
- {
1366
- "label": "View",
1367
- "event": "VIEW",
1368
- "variant": "ghost",
1369
- "size": "sm"
1370
- },
1371
- {
1372
- "label": "Edit",
1373
- "event": "EDIT",
1374
- "variant": "ghost",
1375
- "size": "sm"
1376
- },
1377
- {
1378
- "label": "Delete",
1379
- "event": "DELETE",
1380
- "variant": "danger",
1381
- "size": "sm"
1382
- }
1383
- ],
1384
- "columns": [
1385
- {
1386
- "name": "title",
1387
- "variant": "h3",
1388
- "icon": "briefcase"
1389
- },
1390
- {
1391
- "name": "stage",
1392
- "variant": "badge"
1393
- },
1394
- {
1395
- "name": "value",
1396
- "variant": "h4",
1397
- "format": "currency"
1398
- },
1399
- {
1400
- "name": "contactId",
1401
- "label": "Contact",
1402
- "variant": "caption"
1403
- }
1404
- ],
1405
- "cols": 2,
1406
- "gap": "md"
1407
- }
1408
- ]
1409
- }
1410
- ]
1411
- }
1412
- ]
1413
- ]
1414
- }
1415
- ]
1416
- },
1417
- "emits": [
1418
- {
1419
- "event": "CLOSE_DEAL",
1420
- "description": "Close a deal and update pipeline",
1421
- "payload": [
1422
- {
1423
- "name": "id",
1424
- "type": "string",
1425
- "required": true
1426
- }
1427
- ],
1428
- "scope": "external"
1429
- }
1430
- ]
1431
- },
1432
- {
1433
- "name": "DealCreate",
1434
- "linkedEntity": "Deal",
1435
- "category": "interaction",
1436
- "emits": [
1437
- {
1438
- "event": "SAVE"
1439
- },
1440
- {
1441
- "event": "DEAL_CREATED"
1442
- }
1443
- ],
1444
- "stateMachine": {
1445
- "states": [
1446
- {
1447
- "name": "closed",
1448
- "isInitial": true
1449
- },
1450
- {
1451
- "name": "open"
1452
- }
1453
- ],
1454
- "events": [
1455
- {
1456
- "key": "INIT",
1457
- "name": "Initialize"
1458
- },
1459
- {
1460
- "key": "CREATE",
1461
- "name": "Open"
1462
- },
1463
- {
1464
- "key": "CLOSE",
1465
- "name": "Close"
1466
- },
1467
- {
1468
- "key": "SAVE",
1469
- "name": "Save",
1470
- "payload": [
1471
- {
1472
- "name": "data",
1473
- "type": "object",
1474
- "required": true
1475
- }
1476
- ]
1477
- }
1478
- ],
1479
- "transitions": [
1480
- {
1481
- "from": "closed",
1482
- "to": "closed",
1483
- "event": "INIT",
1484
- "effects": [
1485
- [
1486
- "ref",
1487
- "Deal"
1488
- ]
1489
- ]
1490
- },
1491
- {
1492
- "from": "closed",
1493
- "to": "open",
1494
- "event": "CREATE",
1495
- "effects": [
1496
- [
1497
- "fetch",
1498
- "Deal"
1499
- ],
1500
- [
1501
- "render-ui",
1502
- "modal",
1503
- {
1504
- "type": "stack",
1505
- "direction": "vertical",
1506
- "gap": "md",
1507
- "children": [
1508
- {
1509
- "type": "stack",
1510
- "direction": "horizontal",
1511
- "gap": "sm",
1512
- "children": [
1513
- {
1514
- "type": "icon",
1515
- "name": "plus-circle",
1516
- "size": "md"
1517
- },
1518
- {
1519
- "type": "typography",
1520
- "content": "Create Deal",
1521
- "variant": "h3"
1522
- }
1523
- ]
1524
- },
1525
- {
1526
- "type": "divider"
1527
- },
1528
- {
1529
- "type": "form-section",
1530
- "entity": "Deal",
1531
- "mode": "create",
1532
- "submitEvent": "SAVE",
1533
- "cancelEvent": "CLOSE",
1534
- "fields": [
1535
- "title",
1536
- "contactId",
1537
- "value",
1538
- "stage",
1539
- "closedAt"
1540
- ]
1541
- }
1542
- ]
1543
- }
1544
- ]
1545
- ]
1546
- },
1547
- {
1548
- "from": "open",
1549
- "to": "closed",
1550
- "event": "CLOSE",
1551
- "effects": [
1552
- [
1553
- "render-ui",
1554
- "modal",
1555
- null
1556
- ],
1557
- [
1558
- "notify",
1559
- "Cancelled",
1560
- "info"
1561
- ]
1562
- ]
1563
- },
1564
- {
1565
- "from": "open",
1566
- "to": "closed",
1567
- "event": "SAVE",
1568
- "effects": [
1569
- [
1570
- "persist",
1571
- "create",
1572
- "Deal",
1573
- "@payload.data"
1574
- ],
1575
- [
1576
- "render-ui",
1577
- "modal",
1578
- null
1579
- ],
1580
- [
1581
- "emit",
1582
- "DEAL_CREATED"
1583
- ],
1584
- [
1585
- "notify",
1586
- "Deal created successfully"
1587
- ]
1588
- ]
1589
- }
1590
- ]
1591
- }
1592
- },
1593
- {
1594
- "name": "DealEdit",
1595
- "linkedEntity": "Deal",
1596
- "category": "interaction",
1597
- "emits": [
1598
- {
1599
- "event": "SAVE"
1600
- },
1601
- {
1602
- "event": "DEAL_UPDATED"
1603
- }
1604
- ],
1605
- "stateMachine": {
1606
- "states": [
1607
- {
1608
- "name": "closed",
1609
- "isInitial": true
1610
- },
1611
- {
1612
- "name": "open"
1613
- }
1614
- ],
1615
- "events": [
1616
- {
1617
- "key": "INIT",
1618
- "name": "Initialize"
1619
- },
1620
- {
1621
- "key": "EDIT",
1622
- "name": "Open",
1623
- "payload": [
1624
- {
1625
- "name": "id",
1626
- "type": "string",
1627
- "required": true
1628
- }
1629
- ]
1630
- },
1631
- {
1632
- "key": "CLOSE",
1633
- "name": "Close"
1634
- },
1635
- {
1636
- "key": "SAVE",
1637
- "name": "Save",
1638
- "payload": [
1639
- {
1640
- "name": "data",
1641
- "type": "object",
1642
- "required": true
1643
- }
1644
- ]
1645
- }
1646
- ],
1647
- "transitions": [
1648
- {
1649
- "from": "closed",
1650
- "to": "closed",
1651
- "event": "INIT",
1652
- "effects": [
1653
- [
1654
- "ref",
1655
- "Deal"
1656
- ]
1657
- ]
1658
- },
1659
- {
1660
- "from": "closed",
1661
- "to": "open",
1662
- "event": "EDIT",
1663
- "effects": [
1664
- [
1665
- "fetch",
1666
- "Deal",
1667
- {
1668
- "id": "@payload.id"
1669
- }
1670
- ],
1671
- [
1672
- "render-ui",
1673
- "modal",
1674
- {
1675
- "type": "stack",
1676
- "direction": "vertical",
1677
- "gap": "md",
1678
- "children": [
1679
- {
1680
- "type": "stack",
1681
- "direction": "horizontal",
1682
- "gap": "sm",
1683
- "children": [
1684
- {
1685
- "type": "icon",
1686
- "name": "edit",
1687
- "size": "md"
1688
- },
1689
- {
1690
- "type": "typography",
1691
- "content": "Edit Deal",
1692
- "variant": "h3"
1693
- }
1694
- ]
1695
- },
1696
- {
1697
- "type": "divider"
1698
- },
1699
- {
1700
- "type": "form-section",
1701
- "entity": "Deal",
1702
- "mode": "edit",
1703
- "submitEvent": "SAVE",
1704
- "cancelEvent": "CLOSE",
1705
- "fields": [
1706
- "title",
1707
- "contactId",
1708
- "value",
1709
- "stage",
1710
- "closedAt"
1711
- ],
1712
- "entityId": "@entity.id"
1713
- }
1714
- ]
1715
- }
1716
- ]
1717
- ]
1718
- },
1719
- {
1720
- "from": "open",
1721
- "to": "closed",
1722
- "event": "CLOSE",
1723
- "effects": [
1724
- [
1725
- "render-ui",
1726
- "modal",
1727
- null
1728
- ],
1729
- [
1730
- "notify",
1731
- "Cancelled",
1732
- "info"
1733
- ]
1734
- ]
1735
- },
1736
- {
1737
- "from": "open",
1738
- "to": "closed",
1739
- "event": "SAVE",
1740
- "effects": [
1741
- [
1742
- "persist",
1743
- "update",
1744
- "Deal",
1745
- "@payload.data"
1746
- ],
1747
- [
1748
- "render-ui",
1749
- "modal",
1750
- null
1751
- ],
1752
- [
1753
- "emit",
1754
- "DEAL_UPDATED"
1755
- ],
1756
- [
1757
- "notify",
1758
- "Deal updated successfully"
1759
- ]
1760
- ]
1761
- }
1762
- ]
1763
- }
1764
- },
1765
- {
1766
- "name": "DealView",
1767
- "linkedEntity": "Deal",
1768
- "category": "interaction",
1769
- "emits": [
1770
- {
1771
- "event": "SAVE"
1772
- }
1773
- ],
1774
- "stateMachine": {
1775
- "states": [
1776
- {
1777
- "name": "closed",
1778
- "isInitial": true
1779
- },
1780
- {
1781
- "name": "open"
1782
- }
1783
- ],
1784
- "events": [
1785
- {
1786
- "key": "INIT",
1787
- "name": "Initialize"
1788
- },
1789
- {
1790
- "key": "VIEW",
1791
- "name": "Open",
1792
- "payload": [
1793
- {
1794
- "name": "id",
1795
- "type": "string",
1796
- "required": true
1797
- }
1798
- ]
1799
- },
1800
- {
1801
- "key": "CLOSE",
1802
- "name": "Close"
1803
- },
1804
- {
1805
- "key": "SAVE",
1806
- "name": "Save",
1807
- "payload": [
1808
- {
1809
- "name": "data",
1810
- "type": "object",
1811
- "required": true
1812
- }
1813
- ]
1814
- }
1815
- ],
1816
- "transitions": [
1817
- {
1818
- "from": "closed",
1819
- "to": "closed",
1820
- "event": "INIT",
1821
- "effects": [
1822
- [
1823
- "ref",
1824
- "Deal"
1825
- ]
1826
- ]
1827
- },
1828
- {
1829
- "from": "closed",
1830
- "to": "open",
1831
- "event": "VIEW",
1832
- "effects": [
1833
- [
1834
- "fetch",
1835
- "Deal",
1836
- {
1837
- "id": "@payload.id"
1838
- }
1839
- ],
1840
- [
1841
- "render-ui",
1842
- "modal",
1843
- {
1844
- "type": "stack",
1845
- "direction": "vertical",
1846
- "gap": "md",
1847
- "children": [
1848
- {
1849
- "type": "stack",
1850
- "direction": "horizontal",
1851
- "gap": "sm",
1852
- "align": "center",
1853
- "children": [
1854
- {
1855
- "type": "icon",
1856
- "name": "eye",
1857
- "size": "md"
1858
- },
1859
- {
1860
- "type": "typography",
1861
- "variant": "h3",
1862
- "content": "@entity.title"
1863
- }
1864
- ]
1865
- },
1866
- {
1867
- "type": "divider"
1868
- },
1869
- {
1870
- "type": "stack",
1871
- "direction": "horizontal",
1872
- "gap": "md",
1873
- "children": [
1874
- {
1875
- "type": "typography",
1876
- "variant": "caption",
1877
- "content": "Title"
1878
- },
1879
- {
1880
- "type": "typography",
1881
- "variant": "body",
1882
- "content": "@entity.title"
1883
- }
1884
- ]
1885
- },
1886
- {
1887
- "type": "stack",
1888
- "direction": "horizontal",
1889
- "gap": "md",
1890
- "children": [
1891
- {
1892
- "type": "typography",
1893
- "variant": "caption",
1894
- "content": "Contact ID"
1895
- },
1896
- {
1897
- "type": "typography",
1898
- "variant": "body",
1899
- "content": "@entity.contactId"
1900
- }
1901
- ]
1902
- },
1903
- {
1904
- "type": "stack",
1905
- "direction": "horizontal",
1906
- "gap": "md",
1907
- "children": [
1908
- {
1909
- "type": "typography",
1910
- "variant": "caption",
1911
- "content": "Value"
1912
- },
1913
- {
1914
- "type": "typography",
1915
- "variant": "body",
1916
- "content": "@entity.value"
1917
- }
1918
- ]
1919
- },
1920
- {
1921
- "type": "stack",
1922
- "direction": "horizontal",
1923
- "gap": "md",
1924
- "children": [
1925
- {
1926
- "type": "typography",
1927
- "variant": "caption",
1928
- "content": "Stage"
1929
- },
1930
- {
1931
- "type": "typography",
1932
- "variant": "body",
1933
- "content": "@entity.stage"
1934
- }
1935
- ]
1936
- },
1937
- {
1938
- "type": "stack",
1939
- "direction": "horizontal",
1940
- "gap": "md",
1941
- "children": [
1942
- {
1943
- "type": "typography",
1944
- "variant": "caption",
1945
- "content": "Closed At"
1946
- },
1947
- {
1948
- "type": "typography",
1949
- "variant": "body",
1950
- "content": "@entity.closedAt"
1951
- }
1952
- ]
1953
- },
1954
- {
1955
- "type": "divider"
1956
- },
1957
- {
1958
- "type": "stack",
1959
- "direction": "horizontal",
1960
- "gap": "sm",
1961
- "justify": "end",
1962
- "children": [
1963
- {
1964
- "type": "button",
1965
- "label": "Edit",
1966
- "event": "EDIT",
1967
- "variant": "primary",
1968
- "icon": "edit"
1969
- },
1970
- {
1971
- "type": "button",
1972
- "label": "Close",
1973
- "event": "CLOSE",
1974
- "variant": "ghost"
1975
- }
1976
- ]
1977
- }
1978
- ]
1979
- }
1980
- ]
1981
- ]
1982
- },
1983
- {
1984
- "from": "open",
1985
- "to": "closed",
1986
- "event": "CLOSE",
1987
- "effects": [
1988
- [
1989
- "render-ui",
1990
- "modal",
1991
- null
1992
- ],
1993
- [
1994
- "notify",
1995
- "Cancelled",
1996
- "info"
1997
- ]
1998
- ]
1999
- },
2000
- {
2001
- "from": "open",
2002
- "to": "closed",
2003
- "event": "SAVE",
2004
- "effects": [
2005
- [
2006
- "render-ui",
2007
- "modal",
2008
- null
2009
- ]
2010
- ]
2011
- }
2012
- ]
2013
- }
2014
- },
2015
- {
2016
- "name": "DealDelete",
2017
- "linkedEntity": "Deal",
2018
- "category": "interaction",
2019
- "emits": [
2020
- {
2021
- "event": "CONFIRM_DELETE"
2022
- },
2023
- {
2024
- "event": "DEAL_DELETED"
2025
- }
2026
- ],
2027
- "stateMachine": {
2028
- "states": [
2029
- {
2030
- "name": "idle",
2031
- "isInitial": true
2032
- },
2033
- {
2034
- "name": "confirming"
2035
- }
2036
- ],
2037
- "events": [
2038
- {
2039
- "key": "INIT",
2040
- "name": "Initialize"
2041
- },
2042
- {
2043
- "key": "DELETE",
2044
- "name": "Request Confirmation",
2045
- "payload": [
2046
- {
2047
- "name": "id",
2048
- "type": "string",
2049
- "required": true
2050
- }
2051
- ]
2052
- },
2053
- {
2054
- "key": "CONFIRM_DELETE",
2055
- "name": "Confirm"
2056
- },
2057
- {
2058
- "key": "CANCEL",
2059
- "name": "Cancel"
2060
- },
2061
- {
2062
- "key": "CLOSE",
2063
- "name": "Close"
2064
- }
2065
- ],
2066
- "transitions": [
2067
- {
2068
- "from": "idle",
2069
- "to": "idle",
2070
- "event": "INIT",
2071
- "effects": [
2072
- [
2073
- "ref",
2074
- "Deal"
2075
- ]
2076
- ]
2077
- },
2078
- {
2079
- "from": "idle",
2080
- "to": "confirming",
2081
- "event": "DELETE",
2082
- "effects": [
2083
- [
2084
- "set",
2085
- "@entity.pendingId",
2086
- "@payload.id"
2087
- ],
2088
- [
2089
- "fetch",
2090
- "Deal",
2091
- {
2092
- "id": "@payload.id"
2093
- }
2094
- ],
2095
- [
2096
- "render-ui",
2097
- "modal",
2098
- {
2099
- "type": "stack",
2100
- "direction": "vertical",
2101
- "gap": "md",
2102
- "children": [
2103
- {
2104
- "type": "stack",
2105
- "direction": "horizontal",
2106
- "gap": "sm",
2107
- "align": "center",
2108
- "children": [
2109
- {
2110
- "type": "icon",
2111
- "name": "alert-triangle",
2112
- "size": "md"
2113
- },
2114
- {
2115
- "type": "typography",
2116
- "content": "Delete Deal",
2117
- "variant": "h3"
2118
- }
2119
- ]
2120
- },
2121
- {
2122
- "type": "divider"
2123
- },
2124
- {
2125
- "type": "alert",
2126
- "variant": "danger",
2127
- "message": "This action cannot be undone."
2128
- },
2129
- {
2130
- "type": "stack",
2131
- "direction": "horizontal",
2132
- "gap": "sm",
2133
- "justify": "end",
2134
- "children": [
2135
- {
2136
- "type": "button",
2137
- "label": "Cancel",
2138
- "event": "CANCEL",
2139
- "variant": "ghost"
2140
- },
2141
- {
2142
- "type": "button",
2143
- "label": "Delete",
2144
- "event": "CONFIRM_DELETE",
2145
- "variant": "danger",
2146
- "icon": "check"
2147
- }
2148
- ]
2149
- }
2150
- ]
2151
- }
2152
- ]
2153
- ]
2154
- },
2155
- {
2156
- "from": "confirming",
2157
- "to": "idle",
2158
- "event": "CONFIRM_DELETE",
2159
- "effects": [
2160
- [
2161
- "persist",
2162
- "delete",
2163
- "Deal",
2164
- "@entity.pendingId"
2165
- ],
2166
- [
2167
- "render-ui",
2168
- "modal",
2169
- null
2170
- ],
2171
- [
2172
- "ref",
2173
- "Deal"
2174
- ],
2175
- [
2176
- "emit",
2177
- "DEAL_DELETED"
2178
- ],
2179
- [
2180
- "notify",
2181
- "Deal deleted successfully"
2182
- ]
2183
- ]
2184
- },
2185
- {
2186
- "from": "confirming",
2187
- "to": "idle",
2188
- "event": "CANCEL",
2189
- "effects": [
2190
- [
2191
- "render-ui",
2192
- "modal",
2193
- null
2194
- ],
2195
- [
2196
- "ref",
2197
- "Deal"
2198
- ]
2199
- ]
2200
- },
2201
- {
2202
- "from": "confirming",
2203
- "to": "idle",
2204
- "event": "CLOSE",
2205
- "effects": [
2206
- [
2207
- "render-ui",
2208
- "modal",
2209
- null
2210
- ],
2211
- [
2212
- "ref",
2213
- "Deal"
2214
- ]
2215
- ]
2216
- }
2217
- ]
2218
- }
2219
- }
2220
- ],
2221
- "pages": [
2222
- {
2223
- "name": "DealsPage",
2224
- "path": "/deals",
2225
- "traits": [
2226
- {
2227
- "ref": "DealBrowse"
2228
- },
2229
- {
2230
- "ref": "DealCreate"
2231
- },
2232
- {
2233
- "ref": "DealEdit"
2234
- },
2235
- {
2236
- "ref": "DealView"
2237
- },
2238
- {
2239
- "ref": "DealDelete"
2240
- }
2241
- ]
2242
- }
2243
- ]
2244
- },
2245
- {
2246
- "name": "PipelineOrbital",
2247
- "entity": {
2248
- "name": "Pipeline",
2249
- "persistence": "runtime",
2250
- "fields": [
2251
- {
2252
- "name": "id",
2253
- "type": "string",
2254
- "required": true
2255
- },
2256
- {
2257
- "name": "totalDeals",
2258
- "type": "number",
2259
- "default": 0
2260
- },
2261
- {
2262
- "name": "totalValue",
2263
- "type": "number",
2264
- "default": 0
2265
- },
2266
- {
2267
- "name": "wonDeals",
2268
- "type": "number",
2269
- "default": 0
2270
- },
2271
- {
2272
- "name": "lostDeals",
2273
- "type": "number",
2274
- "default": 0
2275
- },
2276
- {
2277
- "name": "conversionRate",
2278
- "type": "number",
2279
- "default": 0
2280
- }
2281
- ]
2282
- },
2283
- "traits": [
2284
- {
2285
- "name": "PipelineDisplay",
2286
- "linkedEntity": "Pipeline",
2287
- "category": "interaction",
2288
- "stateMachine": {
2289
- "states": [
2290
- {
2291
- "name": "loading",
2292
- "isInitial": true
2293
- },
2294
- {
2295
- "name": "displaying"
2296
- },
2297
- {
2298
- "name": "refreshing"
2299
- }
2300
- ],
2301
- "events": [
2302
- {
2303
- "key": "INIT",
2304
- "name": "Initialize"
2305
- },
2306
- {
2307
- "key": "LOADED",
2308
- "name": "Loaded"
2309
- },
2310
- {
2311
- "key": "REFRESH",
2312
- "name": "Refresh"
2313
- },
2314
- {
2315
- "key": "REFRESHED",
2316
- "name": "Refreshed"
2317
- }
2318
- ],
2319
- "transitions": [
2320
- {
2321
- "from": "loading",
2322
- "to": "displaying",
2323
- "event": "INIT",
2324
- "effects": [
2325
- [
2326
- "fetch",
2327
- "Pipeline"
2328
- ],
2329
- [
2330
- "render-ui",
2331
- "main",
2332
- {
2333
- "type": "dashboard-layout",
2334
- "appName": "CRM",
2335
- "navItems": [
2336
- {
2337
- "label": "Contacts",
2338
- "href": "/contacts",
2339
- "icon": "users"
2340
- },
2341
- {
2342
- "label": "Deals",
2343
- "href": "/deals",
2344
- "icon": "briefcase"
2345
- },
2346
- {
2347
- "label": "Pipeline",
2348
- "href": "/pipeline",
2349
- "icon": "bar-chart-2"
2350
- },
2351
- {
2352
- "label": "Notes",
2353
- "href": "/notes",
2354
- "icon": "file-text"
2355
- }
2356
- ],
2357
- "children": [
2358
- {
2359
- "type": "scaled-diagram",
2360
- "children": [
2361
- {
2362
- "type": "stack",
2363
- "direction": "vertical",
2364
- "gap": "lg",
2365
- "children": [
2366
- {
2367
- "type": "breadcrumb",
2368
- "items": [
2369
- {
2370
- "label": "Home",
2371
- "href": "/"
2372
- },
2373
- {
2374
- "label": "Pipeline"
2375
- }
2376
- ]
2377
- },
2378
- {
2379
- "type": "stack",
2380
- "direction": "horizontal",
2381
- "gap": "md",
2382
- "justify": "space-between",
2383
- "children": [
2384
- {
2385
- "type": "stack",
2386
- "direction": "horizontal",
2387
- "gap": "md",
2388
- "children": [
2389
- {
2390
- "type": "icon",
2391
- "name": "bar-chart-2",
2392
- "size": "lg"
2393
- },
2394
- {
2395
- "type": "typography",
2396
- "content": "Pipeline",
2397
- "variant": "h2"
2398
- }
2399
- ]
2400
- },
2401
- {
2402
- "type": "button",
2403
- "label": "Refresh",
2404
- "event": "REFRESH",
2405
- "variant": "secondary",
2406
- "icon": "refresh-cw"
2407
- }
2408
- ]
2409
- },
2410
- {
2411
- "type": "divider"
2412
- },
2413
- {
2414
- "type": "box",
2415
- "padding": "md",
2416
- "children": [
2417
- {
2418
- "type": "simple-grid",
2419
- "columns": 3,
2420
- "children": [
2421
- {
2422
- "type": "stat-display",
2423
- "label": "TotalDeals",
2424
- "value": [
2425
- "object/get",
2426
- [
2427
- "array/first",
2428
- "@entity"
2429
- ],
2430
- "totalDeals"
2431
- ]
2432
- },
2433
- {
2434
- "type": "stat-display",
2435
- "label": "TotalValue",
2436
- "value": [
2437
- "object/get",
2438
- [
2439
- "array/first",
2440
- "@entity"
2441
- ],
2442
- "totalValue"
2443
- ]
2444
- },
2445
- {
2446
- "type": "stat-display",
2447
- "label": "WonDeals",
2448
- "value": [
2449
- "object/get",
2450
- [
2451
- "array/first",
2452
- "@entity"
2453
- ],
2454
- "wonDeals"
2455
- ]
2456
- },
2457
- {
2458
- "type": "stat-display",
2459
- "label": "LostDeals",
2460
- "value": [
2461
- "object/get",
2462
- [
2463
- "array/first",
2464
- "@entity"
2465
- ],
2466
- "lostDeals"
2467
- ]
2468
- },
2469
- {
2470
- "type": "stat-display",
2471
- "label": "ConversionRate",
2472
- "value": [
2473
- "object/get",
2474
- [
2475
- "array/first",
2476
- "@entity"
2477
- ],
2478
- "conversionRate"
2479
- ]
2480
- }
2481
- ]
2482
- }
2483
- ]
2484
- },
2485
- {
2486
- "type": "divider"
2487
- },
2488
- {
2489
- "type": "grid",
2490
- "columns": 2,
2491
- "gap": "md",
2492
- "children": [
2493
- {
2494
- "type": "card",
2495
- "children": [
2496
- {
2497
- "type": "typography",
2498
- "variant": "caption",
2499
- "content": "Chart View"
2500
- }
2501
- ]
2502
- },
2503
- {
2504
- "type": "card",
2505
- "children": [
2506
- {
2507
- "type": "typography",
2508
- "variant": "caption",
2509
- "content": "Graph View"
2510
- }
2511
- ]
2512
- }
2513
- ]
2514
- },
2515
- {
2516
- "type": "line-chart",
2517
- "data": [
2518
- {
2519
- "date": "Jan",
2520
- "value": 12
2521
- },
2522
- {
2523
- "date": "Feb",
2524
- "value": 19
2525
- },
2526
- {
2527
- "date": "Mar",
2528
- "value": 15
2529
- },
2530
- {
2531
- "date": "Apr",
2532
- "value": 25
2533
- },
2534
- {
2535
- "date": "May",
2536
- "value": 22
2537
- },
2538
- {
2539
- "date": "Jun",
2540
- "value": 30
2541
- }
2542
- ],
2543
- "xKey": "date",
2544
- "yKey": "value",
2545
- "title": "Trend"
2546
- },
2547
- {
2548
- "type": "chart-legend",
2549
- "items": [
2550
- {
2551
- "label": "Current",
2552
- "color": "primary"
2553
- },
2554
- {
2555
- "label": "Previous",
2556
- "color": "muted"
2557
- }
2558
- ]
2559
- },
2560
- {
2561
- "type": "graph-view",
2562
- "nodes": [
2563
- {
2564
- "id": "a",
2565
- "label": "Start",
2566
- "x": 50,
2567
- "y": 100
2568
- },
2569
- {
2570
- "id": "b",
2571
- "label": "Process",
2572
- "x": 200,
2573
- "y": 50
2574
- },
2575
- {
2576
- "id": "c",
2577
- "label": "End",
2578
- "x": 350,
2579
- "y": 100
2580
- }
2581
- ],
2582
- "edges": [
2583
- {
2584
- "from": "a",
2585
- "to": "b"
2586
- },
2587
- {
2588
- "from": "b",
2589
- "to": "c"
2590
- }
2591
- ],
2592
- "width": 400,
2593
- "height": 200
2594
- }
2595
- ]
2596
- }
2597
- ]
2598
- }
2599
- ]
2600
- }
2601
- ]
2602
- ]
2603
- },
2604
- {
2605
- "from": "loading",
2606
- "to": "displaying",
2607
- "event": "LOADED",
2608
- "effects": [
2609
- [
2610
- "fetch",
2611
- "Pipeline"
2612
- ],
2613
- [
2614
- "render-ui",
2615
- "main",
2616
- {
2617
- "type": "dashboard-layout",
2618
- "appName": "CRM",
2619
- "navItems": [
2620
- {
2621
- "label": "Contacts",
2622
- "href": "/contacts",
2623
- "icon": "users"
2624
- },
2625
- {
2626
- "label": "Deals",
2627
- "href": "/deals",
2628
- "icon": "briefcase"
2629
- },
2630
- {
2631
- "label": "Pipeline",
2632
- "href": "/pipeline",
2633
- "icon": "bar-chart-2"
2634
- },
2635
- {
2636
- "label": "Notes",
2637
- "href": "/notes",
2638
- "icon": "file-text"
2639
- }
2640
- ],
2641
- "children": [
2642
- {
2643
- "type": "scaled-diagram",
2644
- "children": [
2645
- {
2646
- "type": "stack",
2647
- "direction": "vertical",
2648
- "gap": "lg",
2649
- "children": [
2650
- {
2651
- "type": "breadcrumb",
2652
- "items": [
2653
- {
2654
- "label": "Home",
2655
- "href": "/"
2656
- },
2657
- {
2658
- "label": "Pipeline"
2659
- }
2660
- ]
2661
- },
2662
- {
2663
- "type": "stack",
2664
- "direction": "horizontal",
2665
- "gap": "md",
2666
- "justify": "space-between",
2667
- "children": [
2668
- {
2669
- "type": "stack",
2670
- "direction": "horizontal",
2671
- "gap": "md",
2672
- "children": [
2673
- {
2674
- "type": "icon",
2675
- "name": "bar-chart-2",
2676
- "size": "lg"
2677
- },
2678
- {
2679
- "type": "typography",
2680
- "content": "Pipeline",
2681
- "variant": "h2"
2682
- }
2683
- ]
2684
- },
2685
- {
2686
- "type": "button",
2687
- "label": "Refresh",
2688
- "event": "REFRESH",
2689
- "variant": "secondary",
2690
- "icon": "refresh-cw"
2691
- }
2692
- ]
2693
- },
2694
- {
2695
- "type": "divider"
2696
- },
2697
- {
2698
- "type": "box",
2699
- "padding": "md",
2700
- "children": [
2701
- {
2702
- "type": "simple-grid",
2703
- "columns": 3,
2704
- "children": [
2705
- {
2706
- "type": "stat-display",
2707
- "label": "TotalDeals",
2708
- "value": [
2709
- "object/get",
2710
- [
2711
- "array/first",
2712
- "@entity"
2713
- ],
2714
- "totalDeals"
2715
- ]
2716
- },
2717
- {
2718
- "type": "stat-display",
2719
- "label": "TotalValue",
2720
- "value": [
2721
- "object/get",
2722
- [
2723
- "array/first",
2724
- "@entity"
2725
- ],
2726
- "totalValue"
2727
- ]
2728
- },
2729
- {
2730
- "type": "stat-display",
2731
- "label": "WonDeals",
2732
- "value": [
2733
- "object/get",
2734
- [
2735
- "array/first",
2736
- "@entity"
2737
- ],
2738
- "wonDeals"
2739
- ]
2740
- },
2741
- {
2742
- "type": "stat-display",
2743
- "label": "LostDeals",
2744
- "value": [
2745
- "object/get",
2746
- [
2747
- "array/first",
2748
- "@entity"
2749
- ],
2750
- "lostDeals"
2751
- ]
2752
- },
2753
- {
2754
- "type": "stat-display",
2755
- "label": "ConversionRate",
2756
- "value": [
2757
- "object/get",
2758
- [
2759
- "array/first",
2760
- "@entity"
2761
- ],
2762
- "conversionRate"
2763
- ]
2764
- }
2765
- ]
2766
- }
2767
- ]
2768
- },
2769
- {
2770
- "type": "divider"
2771
- },
2772
- {
2773
- "type": "grid",
2774
- "columns": 2,
2775
- "gap": "md",
2776
- "children": [
2777
- {
2778
- "type": "card",
2779
- "children": [
2780
- {
2781
- "type": "typography",
2782
- "variant": "caption",
2783
- "content": "Chart View"
2784
- }
2785
- ]
2786
- },
2787
- {
2788
- "type": "card",
2789
- "children": [
2790
- {
2791
- "type": "typography",
2792
- "variant": "caption",
2793
- "content": "Graph View"
2794
- }
2795
- ]
2796
- }
2797
- ]
2798
- },
2799
- {
2800
- "type": "line-chart",
2801
- "data": [
2802
- {
2803
- "date": "Jan",
2804
- "value": 12
2805
- },
2806
- {
2807
- "date": "Feb",
2808
- "value": 19
2809
- },
2810
- {
2811
- "date": "Mar",
2812
- "value": 15
2813
- },
2814
- {
2815
- "date": "Apr",
2816
- "value": 25
2817
- },
2818
- {
2819
- "date": "May",
2820
- "value": 22
2821
- },
2822
- {
2823
- "date": "Jun",
2824
- "value": 30
2825
- }
2826
- ],
2827
- "xKey": "date",
2828
- "yKey": "value",
2829
- "title": "Trend"
2830
- },
2831
- {
2832
- "type": "chart-legend",
2833
- "items": [
2834
- {
2835
- "label": "Current",
2836
- "color": "primary"
2837
- },
2838
- {
2839
- "label": "Previous",
2840
- "color": "muted"
2841
- }
2842
- ]
2843
- },
2844
- {
2845
- "type": "graph-view",
2846
- "nodes": [
2847
- {
2848
- "id": "a",
2849
- "label": "Start",
2850
- "x": 50,
2851
- "y": 100
2852
- },
2853
- {
2854
- "id": "b",
2855
- "label": "Process",
2856
- "x": 200,
2857
- "y": 50
2858
- },
2859
- {
2860
- "id": "c",
2861
- "label": "End",
2862
- "x": 350,
2863
- "y": 100
2864
- }
2865
- ],
2866
- "edges": [
2867
- {
2868
- "from": "a",
2869
- "to": "b"
2870
- },
2871
- {
2872
- "from": "b",
2873
- "to": "c"
2874
- }
2875
- ],
2876
- "width": 400,
2877
- "height": 200
2878
- }
2879
- ]
2880
- }
2881
- ]
2882
- }
2883
- ]
2884
- }
2885
- ]
2886
- ]
2887
- },
2888
- {
2889
- "from": "displaying",
2890
- "to": "displaying",
2891
- "event": "INIT",
2892
- "effects": [
2893
- [
2894
- "fetch",
2895
- "Pipeline"
2896
- ],
2897
- [
2898
- "render-ui",
2899
- "main",
2900
- {
2901
- "type": "dashboard-layout",
2902
- "appName": "CRM",
2903
- "navItems": [
2904
- {
2905
- "label": "Contacts",
2906
- "href": "/contacts",
2907
- "icon": "users"
2908
- },
2909
- {
2910
- "label": "Deals",
2911
- "href": "/deals",
2912
- "icon": "briefcase"
2913
- },
2914
- {
2915
- "label": "Pipeline",
2916
- "href": "/pipeline",
2917
- "icon": "bar-chart-2"
2918
- },
2919
- {
2920
- "label": "Notes",
2921
- "href": "/notes",
2922
- "icon": "file-text"
2923
- }
2924
- ],
2925
- "children": [
2926
- {
2927
- "type": "scaled-diagram",
2928
- "children": [
2929
- {
2930
- "type": "stack",
2931
- "direction": "vertical",
2932
- "gap": "lg",
2933
- "children": [
2934
- {
2935
- "type": "breadcrumb",
2936
- "items": [
2937
- {
2938
- "label": "Home",
2939
- "href": "/"
2940
- },
2941
- {
2942
- "label": "Pipeline"
2943
- }
2944
- ]
2945
- },
2946
- {
2947
- "type": "stack",
2948
- "direction": "horizontal",
2949
- "gap": "md",
2950
- "justify": "space-between",
2951
- "children": [
2952
- {
2953
- "type": "stack",
2954
- "direction": "horizontal",
2955
- "gap": "md",
2956
- "children": [
2957
- {
2958
- "type": "icon",
2959
- "name": "bar-chart-2",
2960
- "size": "lg"
2961
- },
2962
- {
2963
- "type": "typography",
2964
- "content": "Pipeline",
2965
- "variant": "h2"
2966
- }
2967
- ]
2968
- },
2969
- {
2970
- "type": "button",
2971
- "label": "Refresh",
2972
- "event": "REFRESH",
2973
- "variant": "secondary",
2974
- "icon": "refresh-cw"
2975
- }
2976
- ]
2977
- },
2978
- {
2979
- "type": "divider"
2980
- },
2981
- {
2982
- "type": "box",
2983
- "padding": "md",
2984
- "children": [
2985
- {
2986
- "type": "simple-grid",
2987
- "columns": 3,
2988
- "children": [
2989
- {
2990
- "type": "stat-display",
2991
- "label": "TotalDeals",
2992
- "value": [
2993
- "object/get",
2994
- [
2995
- "array/first",
2996
- "@entity"
2997
- ],
2998
- "totalDeals"
2999
- ]
3000
- },
3001
- {
3002
- "type": "stat-display",
3003
- "label": "TotalValue",
3004
- "value": [
3005
- "object/get",
3006
- [
3007
- "array/first",
3008
- "@entity"
3009
- ],
3010
- "totalValue"
3011
- ]
3012
- },
3013
- {
3014
- "type": "stat-display",
3015
- "label": "WonDeals",
3016
- "value": [
3017
- "object/get",
3018
- [
3019
- "array/first",
3020
- "@entity"
3021
- ],
3022
- "wonDeals"
3023
- ]
3024
- },
3025
- {
3026
- "type": "stat-display",
3027
- "label": "LostDeals",
3028
- "value": [
3029
- "object/get",
3030
- [
3031
- "array/first",
3032
- "@entity"
3033
- ],
3034
- "lostDeals"
3035
- ]
3036
- },
3037
- {
3038
- "type": "stat-display",
3039
- "label": "ConversionRate",
3040
- "value": [
3041
- "object/get",
3042
- [
3043
- "array/first",
3044
- "@entity"
3045
- ],
3046
- "conversionRate"
3047
- ]
3048
- }
3049
- ]
3050
- }
3051
- ]
3052
- },
3053
- {
3054
- "type": "divider"
3055
- },
3056
- {
3057
- "type": "grid",
3058
- "columns": 2,
3059
- "gap": "md",
3060
- "children": [
3061
- {
3062
- "type": "card",
3063
- "children": [
3064
- {
3065
- "type": "typography",
3066
- "variant": "caption",
3067
- "content": "Chart View"
3068
- }
3069
- ]
3070
- },
3071
- {
3072
- "type": "card",
3073
- "children": [
3074
- {
3075
- "type": "typography",
3076
- "variant": "caption",
3077
- "content": "Graph View"
3078
- }
3079
- ]
3080
- }
3081
- ]
3082
- },
3083
- {
3084
- "type": "line-chart",
3085
- "data": [
3086
- {
3087
- "date": "Jan",
3088
- "value": 12
3089
- },
3090
- {
3091
- "date": "Feb",
3092
- "value": 19
3093
- },
3094
- {
3095
- "date": "Mar",
3096
- "value": 15
3097
- },
3098
- {
3099
- "date": "Apr",
3100
- "value": 25
3101
- },
3102
- {
3103
- "date": "May",
3104
- "value": 22
3105
- },
3106
- {
3107
- "date": "Jun",
3108
- "value": 30
3109
- }
3110
- ],
3111
- "xKey": "date",
3112
- "yKey": "value",
3113
- "title": "Trend"
3114
- },
3115
- {
3116
- "type": "chart-legend",
3117
- "items": [
3118
- {
3119
- "label": "Current",
3120
- "color": "primary"
3121
- },
3122
- {
3123
- "label": "Previous",
3124
- "color": "muted"
3125
- }
3126
- ]
3127
- },
3128
- {
3129
- "type": "graph-view",
3130
- "nodes": [
3131
- {
3132
- "id": "a",
3133
- "label": "Start",
3134
- "x": 50,
3135
- "y": 100
3136
- },
3137
- {
3138
- "id": "b",
3139
- "label": "Process",
3140
- "x": 200,
3141
- "y": 50
3142
- },
3143
- {
3144
- "id": "c",
3145
- "label": "End",
3146
- "x": 350,
3147
- "y": 100
3148
- }
3149
- ],
3150
- "edges": [
3151
- {
3152
- "from": "a",
3153
- "to": "b"
3154
- },
3155
- {
3156
- "from": "b",
3157
- "to": "c"
3158
- }
3159
- ],
3160
- "width": 400,
3161
- "height": 200
3162
- }
3163
- ]
3164
- }
3165
- ]
3166
- }
3167
- ]
3168
- }
3169
- ]
3170
- ]
3171
- },
3172
- {
3173
- "from": "displaying",
3174
- "to": "refreshing",
3175
- "event": "REFRESH",
3176
- "effects": [
3177
- [
3178
- "fetch",
3179
- "Pipeline"
3180
- ],
3181
- [
3182
- "render-ui",
3183
- "main",
3184
- {
3185
- "type": "dashboard-layout",
3186
- "appName": "CRM",
3187
- "navItems": [
3188
- {
3189
- "label": "Contacts",
3190
- "href": "/contacts",
3191
- "icon": "users"
3192
- },
3193
- {
3194
- "label": "Deals",
3195
- "href": "/deals",
3196
- "icon": "briefcase"
3197
- },
3198
- {
3199
- "label": "Pipeline",
3200
- "href": "/pipeline",
3201
- "icon": "bar-chart-2"
3202
- },
3203
- {
3204
- "label": "Notes",
3205
- "href": "/notes",
3206
- "icon": "file-text"
3207
- }
3208
- ],
3209
- "children": [
3210
- {
3211
- "type": "scaled-diagram",
3212
- "children": [
3213
- {
3214
- "type": "stack",
3215
- "direction": "vertical",
3216
- "gap": "lg",
3217
- "children": [
3218
- {
3219
- "type": "breadcrumb",
3220
- "items": [
3221
- {
3222
- "label": "Home",
3223
- "href": "/"
3224
- },
3225
- {
3226
- "label": "Pipeline"
3227
- }
3228
- ]
3229
- },
3230
- {
3231
- "type": "stack",
3232
- "direction": "horizontal",
3233
- "gap": "md",
3234
- "justify": "space-between",
3235
- "children": [
3236
- {
3237
- "type": "stack",
3238
- "direction": "horizontal",
3239
- "gap": "md",
3240
- "children": [
3241
- {
3242
- "type": "icon",
3243
- "name": "bar-chart-2",
3244
- "size": "lg"
3245
- },
3246
- {
3247
- "type": "typography",
3248
- "content": "Pipeline",
3249
- "variant": "h2"
3250
- }
3251
- ]
3252
- },
3253
- {
3254
- "type": "button",
3255
- "label": "Refresh",
3256
- "event": "REFRESH",
3257
- "variant": "secondary",
3258
- "icon": "refresh-cw"
3259
- }
3260
- ]
3261
- },
3262
- {
3263
- "type": "divider"
3264
- },
3265
- {
3266
- "type": "box",
3267
- "padding": "md",
3268
- "children": [
3269
- {
3270
- "type": "simple-grid",
3271
- "columns": 3,
3272
- "children": [
3273
- {
3274
- "type": "stat-display",
3275
- "label": "TotalDeals",
3276
- "value": [
3277
- "object/get",
3278
- [
3279
- "array/first",
3280
- "@entity"
3281
- ],
3282
- "totalDeals"
3283
- ]
3284
- },
3285
- {
3286
- "type": "stat-display",
3287
- "label": "TotalValue",
3288
- "value": [
3289
- "object/get",
3290
- [
3291
- "array/first",
3292
- "@entity"
3293
- ],
3294
- "totalValue"
3295
- ]
3296
- },
3297
- {
3298
- "type": "stat-display",
3299
- "label": "WonDeals",
3300
- "value": [
3301
- "object/get",
3302
- [
3303
- "array/first",
3304
- "@entity"
3305
- ],
3306
- "wonDeals"
3307
- ]
3308
- },
3309
- {
3310
- "type": "stat-display",
3311
- "label": "LostDeals",
3312
- "value": [
3313
- "object/get",
3314
- [
3315
- "array/first",
3316
- "@entity"
3317
- ],
3318
- "lostDeals"
3319
- ]
3320
- },
3321
- {
3322
- "type": "stat-display",
3323
- "label": "ConversionRate",
3324
- "value": [
3325
- "object/get",
3326
- [
3327
- "array/first",
3328
- "@entity"
3329
- ],
3330
- "conversionRate"
3331
- ]
3332
- }
3333
- ]
3334
- }
3335
- ]
3336
- },
3337
- {
3338
- "type": "divider"
3339
- },
3340
- {
3341
- "type": "grid",
3342
- "columns": 2,
3343
- "gap": "md",
3344
- "children": [
3345
- {
3346
- "type": "card",
3347
- "children": [
3348
- {
3349
- "type": "typography",
3350
- "variant": "caption",
3351
- "content": "Chart View"
3352
- }
3353
- ]
3354
- },
3355
- {
3356
- "type": "card",
3357
- "children": [
3358
- {
3359
- "type": "typography",
3360
- "variant": "caption",
3361
- "content": "Graph View"
3362
- }
3363
- ]
3364
- }
3365
- ]
3366
- },
3367
- {
3368
- "type": "line-chart",
3369
- "data": [
3370
- {
3371
- "date": "Jan",
3372
- "value": 12
3373
- },
3374
- {
3375
- "date": "Feb",
3376
- "value": 19
3377
- },
3378
- {
3379
- "date": "Mar",
3380
- "value": 15
3381
- },
3382
- {
3383
- "date": "Apr",
3384
- "value": 25
3385
- },
3386
- {
3387
- "date": "May",
3388
- "value": 22
3389
- },
3390
- {
3391
- "date": "Jun",
3392
- "value": 30
3393
- }
3394
- ],
3395
- "xKey": "date",
3396
- "yKey": "value",
3397
- "title": "Trend"
3398
- },
3399
- {
3400
- "type": "chart-legend",
3401
- "items": [
3402
- {
3403
- "label": "Current",
3404
- "color": "primary"
3405
- },
3406
- {
3407
- "label": "Previous",
3408
- "color": "muted"
3409
- }
3410
- ]
3411
- },
3412
- {
3413
- "type": "graph-view",
3414
- "nodes": [
3415
- {
3416
- "id": "a",
3417
- "label": "Start",
3418
- "x": 50,
3419
- "y": 100
3420
- },
3421
- {
3422
- "id": "b",
3423
- "label": "Process",
3424
- "x": 200,
3425
- "y": 50
3426
- },
3427
- {
3428
- "id": "c",
3429
- "label": "End",
3430
- "x": 350,
3431
- "y": 100
3432
- }
3433
- ],
3434
- "edges": [
3435
- {
3436
- "from": "a",
3437
- "to": "b"
3438
- },
3439
- {
3440
- "from": "b",
3441
- "to": "c"
3442
- }
3443
- ],
3444
- "width": 400,
3445
- "height": 200
3446
- }
3447
- ]
3448
- }
3449
- ]
3450
- }
3451
- ]
3452
- }
3453
- ]
3454
- ]
3455
- },
3456
- {
3457
- "from": "refreshing",
3458
- "to": "displaying",
3459
- "event": "REFRESHED",
3460
- "effects": [
3461
- [
3462
- "fetch",
3463
- "Pipeline"
3464
- ],
3465
- [
3466
- "render-ui",
3467
- "main",
3468
- {
3469
- "type": "dashboard-layout",
3470
- "appName": "CRM",
3471
- "navItems": [
3472
- {
3473
- "label": "Contacts",
3474
- "href": "/contacts",
3475
- "icon": "users"
3476
- },
3477
- {
3478
- "label": "Deals",
3479
- "href": "/deals",
3480
- "icon": "briefcase"
3481
- },
3482
- {
3483
- "label": "Pipeline",
3484
- "href": "/pipeline",
3485
- "icon": "bar-chart-2"
3486
- },
3487
- {
3488
- "label": "Notes",
3489
- "href": "/notes",
3490
- "icon": "file-text"
3491
- }
3492
- ],
3493
- "children": [
3494
- {
3495
- "type": "scaled-diagram",
3496
- "children": [
3497
- {
3498
- "type": "stack",
3499
- "direction": "vertical",
3500
- "gap": "lg",
3501
- "children": [
3502
- {
3503
- "type": "breadcrumb",
3504
- "items": [
3505
- {
3506
- "label": "Home",
3507
- "href": "/"
3508
- },
3509
- {
3510
- "label": "Pipeline"
3511
- }
3512
- ]
3513
- },
3514
- {
3515
- "type": "stack",
3516
- "direction": "horizontal",
3517
- "gap": "md",
3518
- "justify": "space-between",
3519
- "children": [
3520
- {
3521
- "type": "stack",
3522
- "direction": "horizontal",
3523
- "gap": "md",
3524
- "children": [
3525
- {
3526
- "type": "icon",
3527
- "name": "bar-chart-2",
3528
- "size": "lg"
3529
- },
3530
- {
3531
- "type": "typography",
3532
- "content": "Pipeline",
3533
- "variant": "h2"
3534
- }
3535
- ]
3536
- },
3537
- {
3538
- "type": "button",
3539
- "label": "Refresh",
3540
- "event": "REFRESH",
3541
- "variant": "secondary",
3542
- "icon": "refresh-cw"
3543
- }
3544
- ]
3545
- },
3546
- {
3547
- "type": "divider"
3548
- },
3549
- {
3550
- "type": "box",
3551
- "padding": "md",
3552
- "children": [
3553
- {
3554
- "type": "simple-grid",
3555
- "columns": 3,
3556
- "children": [
3557
- {
3558
- "type": "stat-display",
3559
- "label": "TotalDeals",
3560
- "value": [
3561
- "object/get",
3562
- [
3563
- "array/first",
3564
- "@entity"
3565
- ],
3566
- "totalDeals"
3567
- ]
3568
- },
3569
- {
3570
- "type": "stat-display",
3571
- "label": "TotalValue",
3572
- "value": [
3573
- "object/get",
3574
- [
3575
- "array/first",
3576
- "@entity"
3577
- ],
3578
- "totalValue"
3579
- ]
3580
- },
3581
- {
3582
- "type": "stat-display",
3583
- "label": "WonDeals",
3584
- "value": [
3585
- "object/get",
3586
- [
3587
- "array/first",
3588
- "@entity"
3589
- ],
3590
- "wonDeals"
3591
- ]
3592
- },
3593
- {
3594
- "type": "stat-display",
3595
- "label": "LostDeals",
3596
- "value": [
3597
- "object/get",
3598
- [
3599
- "array/first",
3600
- "@entity"
3601
- ],
3602
- "lostDeals"
3603
- ]
3604
- },
3605
- {
3606
- "type": "stat-display",
3607
- "label": "ConversionRate",
3608
- "value": [
3609
- "object/get",
3610
- [
3611
- "array/first",
3612
- "@entity"
3613
- ],
3614
- "conversionRate"
3615
- ]
3616
- }
3617
- ]
3618
- }
3619
- ]
3620
- },
3621
- {
3622
- "type": "divider"
3623
- },
3624
- {
3625
- "type": "grid",
3626
- "columns": 2,
3627
- "gap": "md",
3628
- "children": [
3629
- {
3630
- "type": "card",
3631
- "children": [
3632
- {
3633
- "type": "typography",
3634
- "variant": "caption",
3635
- "content": "Chart View"
3636
- }
3637
- ]
3638
- },
3639
- {
3640
- "type": "card",
3641
- "children": [
3642
- {
3643
- "type": "typography",
3644
- "variant": "caption",
3645
- "content": "Graph View"
3646
- }
3647
- ]
3648
- }
3649
- ]
3650
- },
3651
- {
3652
- "type": "line-chart",
3653
- "data": [
3654
- {
3655
- "date": "Jan",
3656
- "value": 12
3657
- },
3658
- {
3659
- "date": "Feb",
3660
- "value": 19
3661
- },
3662
- {
3663
- "date": "Mar",
3664
- "value": 15
3665
- },
3666
- {
3667
- "date": "Apr",
3668
- "value": 25
3669
- },
3670
- {
3671
- "date": "May",
3672
- "value": 22
3673
- },
3674
- {
3675
- "date": "Jun",
3676
- "value": 30
3677
- }
3678
- ],
3679
- "xKey": "date",
3680
- "yKey": "value",
3681
- "title": "Trend"
3682
- },
3683
- {
3684
- "type": "chart-legend",
3685
- "items": [
3686
- {
3687
- "label": "Current",
3688
- "color": "primary"
3689
- },
3690
- {
3691
- "label": "Previous",
3692
- "color": "muted"
3693
- }
3694
- ]
3695
- },
3696
- {
3697
- "type": "graph-view",
3698
- "nodes": [
3699
- {
3700
- "id": "a",
3701
- "label": "Start",
3702
- "x": 50,
3703
- "y": 100
3704
- },
3705
- {
3706
- "id": "b",
3707
- "label": "Process",
3708
- "x": 200,
3709
- "y": 50
3710
- },
3711
- {
3712
- "id": "c",
3713
- "label": "End",
3714
- "x": 350,
3715
- "y": 100
3716
- }
3717
- ],
3718
- "edges": [
3719
- {
3720
- "from": "a",
3721
- "to": "b"
3722
- },
3723
- {
3724
- "from": "b",
3725
- "to": "c"
3726
- }
3727
- ],
3728
- "width": 400,
3729
- "height": 200
3730
- }
3731
- ]
3732
- }
3733
- ]
3734
- }
3735
- ]
3736
- }
3737
- ]
3738
- ]
3739
- }
3740
- ]
3741
- },
3742
- "listens": [
3743
- {
3744
- "event": "CLOSE_DEAL",
3745
- "triggers": "INIT",
3746
- "scope": "external"
3747
- }
3748
- ]
3749
- }
3750
- ],
3751
- "pages": [
3752
- {
3753
- "name": "PipelinePage",
3754
- "path": "/pipeline",
3755
- "traits": [
3756
- {
3757
- "ref": "PipelineDisplay"
3758
- }
3759
- ]
3760
- }
3761
- ]
3762
- },
3763
- {
3764
- "name": "NoteOrbital",
3765
- "entity": {
3766
- "name": "Note",
3767
- "persistence": "runtime",
3768
- "fields": [
3769
- {
3770
- "name": "id",
3771
- "type": "string",
3772
- "required": true
3773
- },
3774
- {
3775
- "name": "subject",
3776
- "type": "string",
3777
- "default": ""
3778
- },
3779
- {
3780
- "name": "body",
3781
- "type": "string",
3782
- "default": ""
3783
- },
3784
- {
3785
- "name": "author",
3786
- "type": "string",
3787
- "default": ""
3788
- },
3789
- {
3790
- "name": "createdAt",
3791
- "type": "date",
3792
- "default": ""
3793
- }
3794
- ]
3795
- },
3796
- "traits": [
3797
- {
3798
- "name": "NoteBrowse",
3799
- "linkedEntity": "Note",
3800
- "category": "interaction",
3801
- "listens": [
3802
- {
3803
- "event": "SEND",
3804
- "triggers": "INIT"
3805
- }
3806
- ],
3807
- "stateMachine": {
3808
- "states": [
3809
- {
3810
- "name": "browsing",
3811
- "isInitial": true
3812
- }
3813
- ],
3814
- "events": [
3815
- {
3816
- "key": "INIT",
3817
- "name": "Initialize"
3818
- },
3819
- {
3820
- "key": "COMPOSE",
3821
- "name": "COMPOSE"
3822
- },
3823
- {
3824
- "key": "VIEW",
3825
- "name": "VIEW",
3826
- "payload": [
3827
- {
3828
- "name": "id",
3829
- "type": "string",
3830
- "required": true
3831
- },
3832
- {
3833
- "name": "row",
3834
- "type": "object"
3835
- }
3836
- ]
3837
- }
3838
- ],
3839
- "transitions": [
3840
- {
3841
- "from": "browsing",
3842
- "to": "browsing",
3843
- "event": "INIT",
3844
- "effects": [
3845
- [
3846
- "ref",
3847
- "Note"
3848
- ],
3849
- [
3850
- "render-ui",
3851
- "main",
3852
- {
3853
- "type": "dashboard-layout",
3854
- "appName": "CRM",
3855
- "navItems": [
3856
- {
3857
- "label": "Contacts",
3858
- "href": "/contacts",
3859
- "icon": "users"
3860
- },
3861
- {
3862
- "label": "Deals",
3863
- "href": "/deals",
3864
- "icon": "briefcase"
3865
- },
3866
- {
3867
- "label": "Pipeline",
3868
- "href": "/pipeline",
3869
- "icon": "bar-chart-2"
3870
- },
3871
- {
3872
- "label": "Notes",
3873
- "href": "/notes",
3874
- "icon": "file-text"
3875
- }
3876
- ],
3877
- "children": [
3878
- {
3879
- "type": "stack",
3880
- "direction": "vertical",
3881
- "gap": "lg",
3882
- "className": "max-w-5xl mx-auto w-full",
3883
- "children": [
3884
- {
3885
- "type": "stack",
3886
- "direction": "horizontal",
3887
- "gap": "md",
3888
- "justify": "space-between",
3889
- "align": "center",
3890
- "children": [
3891
- {
3892
- "type": "stack",
3893
- "direction": "horizontal",
3894
- "gap": "sm",
3895
- "align": "center",
3896
- "children": [
3897
- {
3898
- "type": "icon",
3899
- "name": "file-text",
3900
- "size": "lg"
3901
- },
3902
- {
3903
- "type": "typography",
3904
- "content": "Notes",
3905
- "variant": "h2"
3906
- }
3907
- ]
3908
- },
3909
- {
3910
- "type": "stack",
3911
- "direction": "horizontal",
3912
- "gap": "sm",
3913
- "children": [
3914
- {
3915
- "type": "button",
3916
- "label": "Compose",
3917
- "event": "COMPOSE",
3918
- "variant": "primary",
3919
- "icon": "edit"
3920
- }
3921
- ]
3922
- }
3923
- ]
3924
- },
3925
- {
3926
- "type": "divider"
3927
- },
3928
- {
3929
- "type": "data-list",
3930
- "entity": "Note",
3931
- "emptyIcon": "inbox",
3932
- "emptyTitle": "No messages yet",
3933
- "emptyDescription": "Start a new conversation.",
3934
- "itemActions": [
3935
- {
3936
- "label": "View",
3937
- "event": "VIEW",
3938
- "variant": "ghost",
3939
- "size": "sm"
3940
- }
3941
- ],
3942
- "columns": [
3943
- {
3944
- "name": "subject",
3945
- "variant": "h4",
3946
- "icon": "file-text"
3947
- },
3948
- {
3949
- "name": "author",
3950
- "variant": "caption"
3951
- },
3952
- {
3953
- "name": "createdAt",
3954
- "variant": "caption",
3955
- "format": "date"
3956
- }
3957
- ],
3958
- "variant": "card",
3959
- "gap": "sm"
3960
- }
3961
- ]
3962
- }
3963
- ]
3964
- }
3965
- ]
3966
- ]
3967
- }
3968
- ]
3969
- }
3970
- },
3971
- {
3972
- "name": "NoteCompose",
3973
- "linkedEntity": "Note",
3974
- "category": "interaction",
3975
- "emits": [
3976
- {
3977
- "event": "SEND"
3978
- }
3979
- ],
3980
- "stateMachine": {
3981
- "states": [
3982
- {
3983
- "name": "closed",
3984
- "isInitial": true
3985
- },
3986
- {
3987
- "name": "open"
3988
- }
3989
- ],
3990
- "events": [
3991
- {
3992
- "key": "INIT",
3993
- "name": "Initialize"
3994
- },
3995
- {
3996
- "key": "COMPOSE",
3997
- "name": "Open"
3998
- },
3999
- {
4000
- "key": "CLOSE",
4001
- "name": "Close"
4002
- },
4003
- {
4004
- "key": "SEND",
4005
- "name": "Save",
4006
- "payload": [
4007
- {
4008
- "name": "data",
4009
- "type": "object",
4010
- "required": true
4011
- }
4012
- ]
4013
- }
4014
- ],
4015
- "transitions": [
4016
- {
4017
- "from": "closed",
4018
- "to": "closed",
4019
- "event": "INIT",
4020
- "effects": [
4021
- [
4022
- "ref",
4023
- "Note"
4024
- ]
4025
- ]
4026
- },
4027
- {
4028
- "from": "closed",
4029
- "to": "open",
4030
- "event": "COMPOSE",
4031
- "effects": [
4032
- [
4033
- "render-ui",
4034
- "modal",
4035
- {
4036
- "type": "stack",
4037
- "direction": "vertical",
4038
- "gap": "md",
4039
- "children": [
4040
- {
4041
- "type": "stack",
4042
- "direction": "horizontal",
4043
- "gap": "sm",
4044
- "children": [
4045
- {
4046
- "type": "icon",
4047
- "name": "edit",
4048
- "size": "md"
4049
- },
4050
- {
4051
- "type": "typography",
4052
- "content": "New Note",
4053
- "variant": "h3"
4054
- }
4055
- ]
4056
- },
4057
- {
4058
- "type": "divider"
4059
- },
4060
- {
4061
- "type": "form-section",
4062
- "entity": "Note",
4063
- "mode": "create",
4064
- "submitEvent": "SEND",
4065
- "cancelEvent": "CLOSE",
4066
- "fields": [
4067
- "subject",
4068
- "body",
4069
- "author"
4070
- ]
4071
- }
4072
- ]
4073
- }
4074
- ]
4075
- ]
4076
- },
4077
- {
4078
- "from": "open",
4079
- "to": "closed",
4080
- "event": "CLOSE",
4081
- "effects": [
4082
- [
4083
- "render-ui",
4084
- "modal",
4085
- null
4086
- ],
4087
- [
4088
- "notify",
4089
- "Cancelled",
4090
- "info"
4091
- ]
4092
- ]
4093
- },
4094
- {
4095
- "from": "open",
4096
- "to": "closed",
4097
- "event": "SEND",
4098
- "effects": [
4099
- [
4100
- "persist",
4101
- "create",
4102
- "Note",
4103
- "@payload.data"
4104
- ],
4105
- [
4106
- "render-ui",
4107
- "modal",
4108
- null
4109
- ],
4110
- [
4111
- "notify",
4112
- "Note created successfully"
4113
- ]
4114
- ]
4115
- }
4116
- ]
4117
- }
4118
- },
4119
- {
4120
- "name": "NoteView",
4121
- "linkedEntity": "Note",
4122
- "category": "interaction",
4123
- "emits": [
4124
- {
4125
- "event": "SAVE"
4126
- }
4127
- ],
4128
- "stateMachine": {
4129
- "states": [
4130
- {
4131
- "name": "closed",
4132
- "isInitial": true
4133
- },
4134
- {
4135
- "name": "open"
4136
- }
4137
- ],
4138
- "events": [
4139
- {
4140
- "key": "INIT",
4141
- "name": "Initialize"
4142
- },
4143
- {
4144
- "key": "VIEW",
4145
- "name": "Open",
4146
- "payload": [
4147
- {
4148
- "name": "id",
4149
- "type": "string",
4150
- "required": true
4151
- }
4152
- ]
4153
- },
4154
- {
4155
- "key": "CLOSE",
4156
- "name": "Close"
4157
- },
4158
- {
4159
- "key": "SAVE",
4160
- "name": "Save",
4161
- "payload": [
4162
- {
4163
- "name": "data",
4164
- "type": "object",
4165
- "required": true
4166
- }
4167
- ]
4168
- }
4169
- ],
4170
- "transitions": [
4171
- {
4172
- "from": "closed",
4173
- "to": "closed",
4174
- "event": "INIT",
4175
- "effects": [
4176
- [
4177
- "ref",
4178
- "Note"
4179
- ]
4180
- ]
4181
- },
4182
- {
4183
- "from": "closed",
4184
- "to": "open",
4185
- "event": "VIEW",
4186
- "effects": [
4187
- [
4188
- "fetch",
4189
- "Note",
4190
- {
4191
- "id": "@payload.id"
4192
- }
4193
- ],
4194
- [
4195
- "render-ui",
4196
- "modal",
4197
- {
4198
- "type": "stack",
4199
- "direction": "vertical",
4200
- "gap": "md",
4201
- "children": [
4202
- {
4203
- "type": "stack",
4204
- "direction": "horizontal",
4205
- "gap": "sm",
4206
- "align": "center",
4207
- "children": [
4208
- {
4209
- "type": "icon",
4210
- "name": "eye",
4211
- "size": "md"
4212
- },
4213
- {
4214
- "type": "typography",
4215
- "variant": "h3",
4216
- "content": "@entity.subject"
4217
- }
4218
- ]
4219
- },
4220
- {
4221
- "type": "divider"
4222
- },
4223
- {
4224
- "type": "stack",
4225
- "direction": "horizontal",
4226
- "gap": "md",
4227
- "children": [
4228
- {
4229
- "type": "typography",
4230
- "variant": "caption",
4231
- "content": "Subject"
4232
- },
4233
- {
4234
- "type": "typography",
4235
- "variant": "body",
4236
- "content": "@entity.subject"
4237
- }
4238
- ]
4239
- },
4240
- {
4241
- "type": "stack",
4242
- "direction": "horizontal",
4243
- "gap": "md",
4244
- "children": [
4245
- {
4246
- "type": "typography",
4247
- "variant": "caption",
4248
- "content": "Body"
4249
- },
4250
- {
4251
- "type": "typography",
4252
- "variant": "body",
4253
- "content": "@entity.body"
4254
- }
4255
- ]
4256
- },
4257
- {
4258
- "type": "stack",
4259
- "direction": "horizontal",
4260
- "gap": "md",
4261
- "children": [
4262
- {
4263
- "type": "typography",
4264
- "variant": "caption",
4265
- "content": "Author"
4266
- },
4267
- {
4268
- "type": "typography",
4269
- "variant": "body",
4270
- "content": "@entity.author"
4271
- }
4272
- ]
4273
- },
4274
- {
4275
- "type": "stack",
4276
- "direction": "horizontal",
4277
- "gap": "md",
4278
- "children": [
4279
- {
4280
- "type": "typography",
4281
- "variant": "caption",
4282
- "content": "Created At"
4283
- },
4284
- {
4285
- "type": "typography",
4286
- "variant": "body",
4287
- "content": "@entity.createdAt"
4288
- }
4289
- ]
4290
- },
4291
- {
4292
- "type": "divider"
4293
- },
4294
- {
4295
- "type": "stack",
4296
- "direction": "horizontal",
4297
- "gap": "sm",
4298
- "justify": "end",
4299
- "children": [
4300
- {
4301
- "type": "button",
4302
- "label": "Close",
4303
- "event": "CLOSE",
4304
- "variant": "ghost"
4305
- }
4306
- ]
4307
- }
4308
- ]
4309
- }
4310
- ]
4311
- ]
4312
- },
4313
- {
4314
- "from": "open",
4315
- "to": "closed",
4316
- "event": "CLOSE",
4317
- "effects": [
4318
- [
4319
- "render-ui",
4320
- "modal",
4321
- null
4322
- ],
4323
- [
4324
- "notify",
4325
- "Cancelled",
4326
- "info"
4327
- ]
4328
- ]
4329
- },
4330
- {
4331
- "from": "open",
4332
- "to": "closed",
4333
- "event": "SAVE",
4334
- "effects": [
4335
- [
4336
- "render-ui",
4337
- "modal",
4338
- null
4339
- ]
4340
- ]
4341
- }
4342
- ]
4343
- }
4344
- }
4345
- ],
4346
- "pages": [
4347
- {
4348
- "name": "NotesPage",
4349
- "path": "/notes",
4350
- "traits": [
4351
- {
4352
- "ref": "NoteBrowse"
4353
- },
4354
- {
4355
- "ref": "NoteCompose"
4356
- },
4357
- {
4358
- "ref": "NoteView"
4359
- }
4360
- ]
4361
- }
4362
- ]
4363
- }
4364
- ],
4365
- "description": "Customer relationship management organism. Composes molecules via compose: - stdList(Contact): CRUD list of contacts - stdList(Deal): CRUD list of deals - stdDisplay(Pipeline): read-only pipeline dashboard - stdMessaging(Note): notes/communication thread Pages: /contacts (initial), /deals, /pipeline, /notes Connections: CONVERT_LEAD (contacts->deals), CLOSE_DEAL (deals->pipeline) (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."
4366
- }