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