@almadar/std 6.5.2 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (307) hide show
  1. package/behaviors/registry/atoms/std-agent-activity-log.orb +240 -227
  2. package/behaviors/registry/atoms/std-agent-chat-thread.orb +296 -199
  3. package/behaviors/registry/atoms/std-agent-classifier.orb +384 -133
  4. package/behaviors/registry/atoms/std-agent-completion.orb +404 -141
  5. package/behaviors/registry/atoms/std-agent-context-window.orb +904 -607
  6. package/behaviors/registry/atoms/std-agent-conversation.orb +443 -234
  7. package/behaviors/registry/atoms/std-agent-memory.orb +584 -150
  8. package/behaviors/registry/atoms/std-agent-provider.orb +431 -174
  9. package/behaviors/registry/atoms/std-agent-search.orb +217 -61
  10. package/behaviors/registry/atoms/std-agent-session.orb +406 -159
  11. package/behaviors/registry/atoms/std-agent-step-progress.orb +314 -294
  12. package/behaviors/registry/atoms/std-agent-token-gauge.orb +577 -500
  13. package/behaviors/registry/atoms/std-agent-tool-call.orb +328 -138
  14. package/behaviors/registry/atoms/std-async.orb +147 -86
  15. package/behaviors/registry/atoms/std-autoregressive.orb +64 -73
  16. package/behaviors/registry/atoms/std-browse.orb +260 -126
  17. package/behaviors/registry/atoms/std-cache-aside.orb +358 -259
  18. package/behaviors/registry/atoms/std-calendar.orb +280 -215
  19. package/behaviors/registry/atoms/std-circuit-breaker.orb +295 -234
  20. package/behaviors/registry/atoms/std-collision.orb +136 -135
  21. package/behaviors/registry/atoms/std-combat-log.orb +108 -90
  22. package/behaviors/registry/atoms/std-combat.orb +171 -98
  23. package/behaviors/registry/atoms/std-confirmation.orb +28 -300
  24. package/behaviors/registry/atoms/std-dialogue-box.orb +111 -30
  25. package/behaviors/registry/atoms/std-display.orb +491 -587
  26. package/behaviors/registry/atoms/std-drawer.orb +194 -121
  27. package/behaviors/registry/atoms/std-filter.orb +311 -326
  28. package/behaviors/registry/atoms/std-flip-card.orb +223 -177
  29. package/behaviors/registry/atoms/std-gallery.orb +130 -151
  30. package/behaviors/registry/atoms/std-game-audio.orb +133 -72
  31. package/behaviors/registry/atoms/std-game-canvas2d.orb +112 -52
  32. package/behaviors/registry/atoms/std-game-canvas3d.orb +150 -107
  33. package/behaviors/registry/atoms/std-game-hud.orb +87 -20
  34. package/behaviors/registry/atoms/std-game-menu.orb +32 -32
  35. package/behaviors/registry/atoms/std-game-over-screen.orb +100 -33
  36. package/behaviors/registry/atoms/std-gameflow.orb +147 -80
  37. package/behaviors/registry/atoms/std-input.orb +128 -393
  38. package/behaviors/registry/atoms/std-inventory-panel.orb +108 -71
  39. package/behaviors/registry/atoms/std-isometric-canvas.orb +156 -407
  40. package/behaviors/registry/atoms/std-loading.orb +127 -126
  41. package/behaviors/registry/atoms/std-modal.orb +30 -267
  42. package/behaviors/registry/atoms/std-movement.orb +391 -292
  43. package/behaviors/registry/atoms/std-notification.orb +133 -75
  44. package/behaviors/registry/atoms/std-overworld.orb +194 -121
  45. package/behaviors/registry/atoms/std-pagination.orb +120 -53
  46. package/behaviors/registry/atoms/std-physics2d.orb +94 -93
  47. package/behaviors/registry/atoms/std-platformer-canvas.orb +110 -98
  48. package/behaviors/registry/atoms/std-push.orb +172 -36
  49. package/behaviors/registry/atoms/std-quest.orb +552 -449
  50. package/behaviors/registry/atoms/std-rate-limiter.orb +242 -241
  51. package/behaviors/registry/atoms/std-rating.orb +123 -65
  52. package/behaviors/registry/atoms/std-related.orb +202 -26
  53. package/behaviors/registry/atoms/std-score-board.orb +109 -28
  54. package/behaviors/registry/atoms/std-score.orb +210 -146
  55. package/behaviors/registry/atoms/std-search.orb +265 -138
  56. package/behaviors/registry/atoms/std-selection.orb +311 -220
  57. package/behaviors/registry/atoms/std-service-custom-bearer.orb +199 -110
  58. package/behaviors/registry/atoms/std-service-custom-header.orb +206 -117
  59. package/behaviors/registry/atoms/std-service-custom-noauth.orb +197 -108
  60. package/behaviors/registry/atoms/std-service-custom-query.orb +193 -104
  61. package/behaviors/registry/atoms/std-service-email.orb +195 -107
  62. package/behaviors/registry/atoms/std-service-github.orb +216 -122
  63. package/behaviors/registry/atoms/std-service-llm.orb +204 -122
  64. package/behaviors/registry/atoms/std-service-oauth.orb +290 -204
  65. package/behaviors/registry/atoms/std-service-redis.orb +177 -92
  66. package/behaviors/registry/atoms/std-service-storage.orb +211 -122
  67. package/behaviors/registry/atoms/std-service-stripe.orb +236 -154
  68. package/behaviors/registry/atoms/std-service-twilio.orb +221 -137
  69. package/behaviors/registry/atoms/std-service-youtube.orb +327 -241
  70. package/behaviors/registry/atoms/std-simulation-canvas.orb +97 -36
  71. package/behaviors/registry/atoms/std-sort.orb +284 -207
  72. package/behaviors/registry/atoms/std-sprite.orb +150 -74
  73. package/behaviors/registry/atoms/std-tabs.orb +129 -62
  74. package/behaviors/registry/atoms/std-text-effects.orb +251 -190
  75. package/behaviors/registry/atoms/std-theme.orb +193 -135
  76. package/behaviors/registry/atoms/std-timer.orb +320 -344
  77. package/behaviors/registry/atoms/std-undo.orb +278 -199
  78. package/behaviors/registry/atoms/std-upload.orb +112 -111
  79. package/behaviors/registry/atoms/std-validate-on-save.orb +159 -151
  80. package/behaviors/registry/atoms/std-wizard.orb +445 -336
  81. package/behaviors/registry/molecules/std-agent-fix-loop.orb +876 -857
  82. package/behaviors/registry/molecules/std-agent-learner.orb +635 -654
  83. package/behaviors/registry/molecules/std-agent-planner.orb +581 -548
  84. package/behaviors/registry/molecules/std-agent-rag.orb +414 -410
  85. package/behaviors/registry/molecules/std-agent-tool-loop.orb +716 -711
  86. package/behaviors/registry/molecules/std-batch-selected-list.orb +28 -12
  87. package/behaviors/registry/molecules/std-builder-game.orb +86 -28
  88. package/behaviors/registry/molecules/std-calendar-booking.orb +32 -8
  89. package/behaviors/registry/molecules/std-cart.orb +347 -406
  90. package/behaviors/registry/molecules/std-classifier-game.orb +95 -37
  91. package/behaviors/registry/molecules/std-dashboard-tabbed.orb +16 -10
  92. package/behaviors/registry/molecules/std-debugger-game.orb +95 -37
  93. package/behaviors/registry/molecules/std-detail.orb +133 -138
  94. package/behaviors/registry/molecules/std-drawer-master-list.orb +12 -6
  95. package/behaviors/registry/molecules/std-event-handler-game.orb +91 -33
  96. package/behaviors/registry/molecules/std-filtered-list.orb +14 -8
  97. package/behaviors/registry/molecules/std-form-advanced.orb +242 -153
  98. package/behaviors/registry/molecules/std-gallery-filtered.orb +16 -10
  99. package/behaviors/registry/molecules/std-geospatial.orb +175 -122
  100. package/behaviors/registry/molecules/std-inventory.orb +216 -170
  101. package/behaviors/registry/molecules/std-list.orb +280 -205
  102. package/behaviors/registry/molecules/std-messaging.orb +146 -99
  103. package/behaviors/registry/molecules/std-negotiator-game.orb +95 -37
  104. package/behaviors/registry/molecules/std-platformer-game.orb +300 -171
  105. package/behaviors/registry/molecules/std-push-activity-log.orb +32 -8
  106. package/behaviors/registry/molecules/std-puzzle-game.orb +287 -146
  107. package/behaviors/registry/molecules/std-quiz.orb +322 -263
  108. package/behaviors/registry/molecules/std-related-master-detail.orb +21 -15
  109. package/behaviors/registry/molecules/std-sequencer-game.orb +92 -34
  110. package/behaviors/registry/molecules/std-service-content-pipeline.orb +268 -267
  111. package/behaviors/registry/molecules/std-service-custom-api-tester.orb +245 -152
  112. package/behaviors/registry/molecules/std-service-devops-toolkit.orb +633 -294
  113. package/behaviors/registry/molecules/std-service-notification-hub.orb +237 -152
  114. package/behaviors/registry/molecules/std-service-payment-flow.orb +310 -180
  115. package/behaviors/registry/molecules/std-simulator-game.orb +96 -38
  116. package/behaviors/registry/molecules/std-turn-based-battle.orb +247 -137
  117. package/behaviors/registry/molecules/std-wizard-form.orb +60 -9
  118. package/behaviors/registry/organisms/std-agent-assistant.orb +2810 -1833
  119. package/behaviors/registry/organisms/std-agent-builder.orb +6401 -4539
  120. package/behaviors/registry/organisms/std-agent-pipeline.orb +5028 -3497
  121. package/behaviors/registry/organisms/std-agent-reviewer.orb +2219 -1406
  122. package/behaviors/registry/organisms/std-agent-tutor.orb +2069 -1384
  123. package/behaviors/registry/organisms/std-api-gateway.orb +1419 -870
  124. package/behaviors/registry/organisms/std-arcade-game.orb +488 -231
  125. package/behaviors/registry/organisms/std-booking-system.orb +2457 -1467
  126. package/behaviors/registry/organisms/std-cicd-pipeline.orb +1367 -825
  127. package/behaviors/registry/organisms/std-cms.orb +1549 -566
  128. package/behaviors/registry/organisms/std-coding-academy.orb +744 -495
  129. package/behaviors/registry/organisms/std-crm.orb +1997 -1014
  130. package/behaviors/registry/organisms/std-devops-dashboard.orb +2160 -1606
  131. package/behaviors/registry/organisms/std-ecommerce.orb +2279 -1153
  132. package/behaviors/registry/organisms/std-finance-tracker.orb +1375 -727
  133. package/behaviors/registry/organisms/std-healthcare.orb +2940 -1703
  134. package/behaviors/registry/organisms/std-helpdesk.orb +1443 -781
  135. package/behaviors/registry/organisms/std-hr-portal.orb +2361 -1440
  136. package/behaviors/registry/organisms/std-iot-dashboard.orb +1491 -1026
  137. package/behaviors/registry/organisms/std-lms.orb +1629 -1046
  138. package/behaviors/registry/organisms/std-logic-training.orb +321 -134
  139. package/behaviors/registry/organisms/std-platformer-app.orb +855 -417
  140. package/behaviors/registry/organisms/std-project-manager.orb +1795 -877
  141. package/behaviors/registry/organisms/std-puzzle-app.orb +407 -206
  142. package/behaviors/registry/organisms/std-realtime-chat.orb +1436 -844
  143. package/behaviors/registry/organisms/std-rpg-game.orb +1522 -1007
  144. package/behaviors/registry/organisms/std-service-marketplace.orb +2110 -1204
  145. package/behaviors/registry/organisms/std-service-research-assistant.orb +1285 -1078
  146. package/behaviors/registry/organisms/std-social-feed.orb +612 -252
  147. package/behaviors/registry/organisms/std-stem-lab.orb +642 -450
  148. package/behaviors/registry/organisms/std-strategy-game.orb +893 -650
  149. package/behaviors/registry/organisms/std-trading-dashboard.orb +1271 -805
  150. package/dist/behaviors/registry/atoms/std-agent-activity-log.orb +240 -227
  151. package/dist/behaviors/registry/atoms/std-agent-chat-thread.orb +296 -199
  152. package/dist/behaviors/registry/atoms/std-agent-classifier.orb +384 -133
  153. package/dist/behaviors/registry/atoms/std-agent-completion.orb +404 -141
  154. package/dist/behaviors/registry/atoms/std-agent-context-window.orb +904 -607
  155. package/dist/behaviors/registry/atoms/std-agent-conversation.orb +443 -234
  156. package/dist/behaviors/registry/atoms/std-agent-memory.orb +584 -150
  157. package/dist/behaviors/registry/atoms/std-agent-provider.orb +431 -174
  158. package/dist/behaviors/registry/atoms/std-agent-search.orb +217 -61
  159. package/dist/behaviors/registry/atoms/std-agent-session.orb +406 -159
  160. package/dist/behaviors/registry/atoms/std-agent-step-progress.orb +314 -294
  161. package/dist/behaviors/registry/atoms/std-agent-token-gauge.orb +577 -500
  162. package/dist/behaviors/registry/atoms/std-agent-tool-call.orb +328 -138
  163. package/dist/behaviors/registry/atoms/std-async.orb +147 -86
  164. package/dist/behaviors/registry/atoms/std-autoregressive.orb +64 -73
  165. package/dist/behaviors/registry/atoms/std-browse.orb +260 -126
  166. package/dist/behaviors/registry/atoms/std-cache-aside.orb +358 -259
  167. package/dist/behaviors/registry/atoms/std-calendar.orb +280 -215
  168. package/dist/behaviors/registry/atoms/std-circuit-breaker.orb +295 -234
  169. package/dist/behaviors/registry/atoms/std-collision.orb +136 -135
  170. package/dist/behaviors/registry/atoms/std-combat-log.orb +108 -90
  171. package/dist/behaviors/registry/atoms/std-combat.orb +171 -98
  172. package/dist/behaviors/registry/atoms/std-confirmation.orb +28 -300
  173. package/dist/behaviors/registry/atoms/std-dialogue-box.orb +111 -30
  174. package/dist/behaviors/registry/atoms/std-display.orb +491 -587
  175. package/dist/behaviors/registry/atoms/std-drawer.orb +194 -121
  176. package/dist/behaviors/registry/atoms/std-filter.orb +311 -326
  177. package/dist/behaviors/registry/atoms/std-flip-card.orb +223 -177
  178. package/dist/behaviors/registry/atoms/std-gallery.orb +130 -151
  179. package/dist/behaviors/registry/atoms/std-game-audio.orb +133 -72
  180. package/dist/behaviors/registry/atoms/std-game-canvas2d.orb +112 -52
  181. package/dist/behaviors/registry/atoms/std-game-canvas3d.orb +150 -107
  182. package/dist/behaviors/registry/atoms/std-game-hud.orb +87 -20
  183. package/dist/behaviors/registry/atoms/std-game-menu.orb +32 -32
  184. package/dist/behaviors/registry/atoms/std-game-over-screen.orb +100 -33
  185. package/dist/behaviors/registry/atoms/std-gameflow.orb +147 -80
  186. package/dist/behaviors/registry/atoms/std-input.orb +128 -393
  187. package/dist/behaviors/registry/atoms/std-inventory-panel.orb +108 -71
  188. package/dist/behaviors/registry/atoms/std-isometric-canvas.orb +156 -407
  189. package/dist/behaviors/registry/atoms/std-loading.orb +127 -126
  190. package/dist/behaviors/registry/atoms/std-modal.orb +30 -267
  191. package/dist/behaviors/registry/atoms/std-movement.orb +391 -292
  192. package/dist/behaviors/registry/atoms/std-notification.orb +133 -75
  193. package/dist/behaviors/registry/atoms/std-overworld.orb +194 -121
  194. package/dist/behaviors/registry/atoms/std-pagination.orb +120 -53
  195. package/dist/behaviors/registry/atoms/std-physics2d.orb +94 -93
  196. package/dist/behaviors/registry/atoms/std-platformer-canvas.orb +110 -98
  197. package/dist/behaviors/registry/atoms/std-push.orb +172 -36
  198. package/dist/behaviors/registry/atoms/std-quest.orb +552 -449
  199. package/dist/behaviors/registry/atoms/std-rate-limiter.orb +242 -241
  200. package/dist/behaviors/registry/atoms/std-rating.orb +123 -65
  201. package/dist/behaviors/registry/atoms/std-related.orb +202 -26
  202. package/dist/behaviors/registry/atoms/std-score-board.orb +109 -28
  203. package/dist/behaviors/registry/atoms/std-score.orb +210 -146
  204. package/dist/behaviors/registry/atoms/std-search.orb +265 -138
  205. package/dist/behaviors/registry/atoms/std-selection.orb +311 -220
  206. package/dist/behaviors/registry/atoms/std-service-custom-bearer.orb +199 -110
  207. package/dist/behaviors/registry/atoms/std-service-custom-header.orb +206 -117
  208. package/dist/behaviors/registry/atoms/std-service-custom-noauth.orb +197 -108
  209. package/dist/behaviors/registry/atoms/std-service-custom-query.orb +193 -104
  210. package/dist/behaviors/registry/atoms/std-service-email.orb +195 -107
  211. package/dist/behaviors/registry/atoms/std-service-github.orb +216 -122
  212. package/dist/behaviors/registry/atoms/std-service-llm.orb +204 -122
  213. package/dist/behaviors/registry/atoms/std-service-oauth.orb +290 -204
  214. package/dist/behaviors/registry/atoms/std-service-redis.orb +177 -92
  215. package/dist/behaviors/registry/atoms/std-service-storage.orb +211 -122
  216. package/dist/behaviors/registry/atoms/std-service-stripe.orb +236 -154
  217. package/dist/behaviors/registry/atoms/std-service-twilio.orb +221 -137
  218. package/dist/behaviors/registry/atoms/std-service-youtube.orb +327 -241
  219. package/dist/behaviors/registry/atoms/std-simulation-canvas.orb +97 -36
  220. package/dist/behaviors/registry/atoms/std-sort.orb +284 -207
  221. package/dist/behaviors/registry/atoms/std-sprite.orb +150 -74
  222. package/dist/behaviors/registry/atoms/std-tabs.orb +129 -62
  223. package/dist/behaviors/registry/atoms/std-text-effects.orb +251 -190
  224. package/dist/behaviors/registry/atoms/std-theme.orb +193 -135
  225. package/dist/behaviors/registry/atoms/std-timer.orb +320 -344
  226. package/dist/behaviors/registry/atoms/std-undo.orb +278 -199
  227. package/dist/behaviors/registry/atoms/std-upload.orb +112 -111
  228. package/dist/behaviors/registry/atoms/std-validate-on-save.orb +159 -151
  229. package/dist/behaviors/registry/atoms/std-wizard.orb +445 -336
  230. package/dist/behaviors/registry/molecules/std-agent-fix-loop.orb +876 -857
  231. package/dist/behaviors/registry/molecules/std-agent-learner.orb +635 -654
  232. package/dist/behaviors/registry/molecules/std-agent-planner.orb +581 -548
  233. package/dist/behaviors/registry/molecules/std-agent-rag.orb +414 -410
  234. package/dist/behaviors/registry/molecules/std-agent-tool-loop.orb +716 -711
  235. package/dist/behaviors/registry/molecules/std-batch-selected-list.orb +28 -12
  236. package/dist/behaviors/registry/molecules/std-builder-game.orb +86 -28
  237. package/dist/behaviors/registry/molecules/std-calendar-booking.orb +32 -8
  238. package/dist/behaviors/registry/molecules/std-cart.orb +347 -406
  239. package/dist/behaviors/registry/molecules/std-classifier-game.orb +95 -37
  240. package/dist/behaviors/registry/molecules/std-dashboard-tabbed.orb +16 -10
  241. package/dist/behaviors/registry/molecules/std-debugger-game.orb +95 -37
  242. package/dist/behaviors/registry/molecules/std-detail.orb +133 -138
  243. package/dist/behaviors/registry/molecules/std-drawer-master-list.orb +12 -6
  244. package/dist/behaviors/registry/molecules/std-event-handler-game.orb +91 -33
  245. package/dist/behaviors/registry/molecules/std-filtered-list.orb +14 -8
  246. package/dist/behaviors/registry/molecules/std-form-advanced.orb +242 -153
  247. package/dist/behaviors/registry/molecules/std-gallery-filtered.orb +16 -10
  248. package/dist/behaviors/registry/molecules/std-geospatial.orb +175 -122
  249. package/dist/behaviors/registry/molecules/std-inventory.orb +216 -170
  250. package/dist/behaviors/registry/molecules/std-list.orb +280 -205
  251. package/dist/behaviors/registry/molecules/std-messaging.orb +146 -99
  252. package/dist/behaviors/registry/molecules/std-negotiator-game.orb +95 -37
  253. package/dist/behaviors/registry/molecules/std-platformer-game.orb +300 -171
  254. package/dist/behaviors/registry/molecules/std-push-activity-log.orb +32 -8
  255. package/dist/behaviors/registry/molecules/std-puzzle-game.orb +287 -146
  256. package/dist/behaviors/registry/molecules/std-quiz.orb +322 -263
  257. package/dist/behaviors/registry/molecules/std-related-master-detail.orb +21 -15
  258. package/dist/behaviors/registry/molecules/std-sequencer-game.orb +92 -34
  259. package/dist/behaviors/registry/molecules/std-service-content-pipeline.orb +268 -267
  260. package/dist/behaviors/registry/molecules/std-service-custom-api-tester.orb +245 -152
  261. package/dist/behaviors/registry/molecules/std-service-devops-toolkit.orb +633 -294
  262. package/dist/behaviors/registry/molecules/std-service-notification-hub.orb +237 -152
  263. package/dist/behaviors/registry/molecules/std-service-payment-flow.orb +310 -180
  264. package/dist/behaviors/registry/molecules/std-simulator-game.orb +96 -38
  265. package/dist/behaviors/registry/molecules/std-turn-based-battle.orb +247 -137
  266. package/dist/behaviors/registry/molecules/std-wizard-form.orb +60 -9
  267. package/dist/behaviors/registry/organisms/std-agent-assistant.orb +2810 -1833
  268. package/dist/behaviors/registry/organisms/std-agent-builder.orb +6401 -4539
  269. package/dist/behaviors/registry/organisms/std-agent-pipeline.orb +5028 -3497
  270. package/dist/behaviors/registry/organisms/std-agent-reviewer.orb +2219 -1406
  271. package/dist/behaviors/registry/organisms/std-agent-tutor.orb +2069 -1384
  272. package/dist/behaviors/registry/organisms/std-api-gateway.orb +1419 -870
  273. package/dist/behaviors/registry/organisms/std-arcade-game.orb +488 -231
  274. package/dist/behaviors/registry/organisms/std-booking-system.orb +2457 -1467
  275. package/dist/behaviors/registry/organisms/std-cicd-pipeline.orb +1367 -825
  276. package/dist/behaviors/registry/organisms/std-cms.orb +1549 -566
  277. package/dist/behaviors/registry/organisms/std-coding-academy.orb +744 -495
  278. package/dist/behaviors/registry/organisms/std-crm.orb +1997 -1014
  279. package/dist/behaviors/registry/organisms/std-devops-dashboard.orb +2160 -1606
  280. package/dist/behaviors/registry/organisms/std-ecommerce.orb +2279 -1153
  281. package/dist/behaviors/registry/organisms/std-finance-tracker.orb +1375 -727
  282. package/dist/behaviors/registry/organisms/std-healthcare.orb +2940 -1703
  283. package/dist/behaviors/registry/organisms/std-helpdesk.orb +1443 -781
  284. package/dist/behaviors/registry/organisms/std-hr-portal.orb +2361 -1440
  285. package/dist/behaviors/registry/organisms/std-iot-dashboard.orb +1491 -1026
  286. package/dist/behaviors/registry/organisms/std-lms.orb +1629 -1046
  287. package/dist/behaviors/registry/organisms/std-logic-training.orb +321 -134
  288. package/dist/behaviors/registry/organisms/std-platformer-app.orb +855 -417
  289. package/dist/behaviors/registry/organisms/std-project-manager.orb +1795 -877
  290. package/dist/behaviors/registry/organisms/std-puzzle-app.orb +407 -206
  291. package/dist/behaviors/registry/organisms/std-realtime-chat.orb +1436 -844
  292. package/dist/behaviors/registry/organisms/std-rpg-game.orb +1522 -1007
  293. package/dist/behaviors/registry/organisms/std-service-marketplace.orb +2110 -1204
  294. package/dist/behaviors/registry/organisms/std-service-research-assistant.orb +1285 -1078
  295. package/dist/behaviors/registry/organisms/std-social-feed.orb +612 -252
  296. package/dist/behaviors/registry/organisms/std-stem-lab.orb +642 -450
  297. package/dist/behaviors/registry/organisms/std-strategy-game.orb +893 -650
  298. package/dist/behaviors/registry/organisms/std-trading-dashboard.orb +1271 -805
  299. package/dist/index.js +16 -4
  300. package/dist/index.js.map +1 -1
  301. package/dist/modules/core.js +16 -4
  302. package/dist/modules/core.js.map +1 -1
  303. package/dist/modules/index.js +16 -4
  304. package/dist/modules/index.js.map +1 -1
  305. package/dist/registry.js +16 -4
  306. package/dist/registry.js.map +1 -1
  307. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "std-puzzle-app",
3
3
  "version": "1.0.0",
4
- "description": "Puzzle game organism. Composes: stdPuzzleGame(PuzzleLevel) + stdScoreBoard(PuzzleScore)",
4
+ "description": "std-puzzle-app as a Function",
5
5
  "orbitals": [
6
6
  {
7
7
  "name": "PuzzleLevelOrbital",
@@ -17,17 +17,17 @@
17
17
  {
18
18
  "name": "level",
19
19
  "type": "number",
20
- "default": 1
20
+ "default": 1.0
21
21
  },
22
22
  {
23
23
  "name": "score",
24
24
  "type": "number",
25
- "default": 0
25
+ "default": 0.0
26
26
  },
27
27
  {
28
28
  "name": "moves",
29
29
  "type": "number",
30
- "default": 0
30
+ "default": 0.0
31
31
  },
32
32
  {
33
33
  "name": "completed",
@@ -37,45 +37,78 @@
37
37
  {
38
38
  "name": "highScore",
39
39
  "type": "number",
40
- "default": 0,
41
- "min": 0,
42
- "max": 9999
40
+ "default": 0.0
43
41
  },
44
42
  {
45
43
  "name": "combo",
46
44
  "type": "number",
47
- "default": 0,
48
- "min": 0,
49
- "max": 99
45
+ "default": 0.0
50
46
  },
51
47
  {
52
48
  "name": "multiplier",
53
49
  "type": "number",
54
- "default": 1,
55
- "min": 1,
56
- "max": 10
57
- }
58
- ],
59
- "instances": [
60
- {
61
- "id": "puzzle-1",
62
- "name": "Puzzle Board",
63
- "description": "Active puzzle",
64
- "status": "active",
65
- "score": 0,
66
- "highScore": 0,
67
- "combo": 0,
68
- "multiplier": 1,
69
- "level": 1,
70
- "moves": 0
50
+ "default": 1.0
71
51
  }
72
52
  ]
73
53
  },
74
54
  "traits": [
75
55
  {
76
56
  "name": "PuzzleLevelPuzzleFlow",
77
- "linkedEntity": "PuzzleLevel",
78
57
  "category": "interaction",
58
+ "linkedEntity": "PuzzleLevel",
59
+ "emits": [
60
+ {
61
+ "event": "PuzzleLevelLoaded",
62
+ "description": "Fired when PuzzleLevel finishes loading",
63
+ "scope": "internal",
64
+ "payload": [
65
+ {
66
+ "name": "id",
67
+ "type": "string",
68
+ "required": true
69
+ },
70
+ {
71
+ "name": "level",
72
+ "type": "number"
73
+ },
74
+ {
75
+ "name": "score",
76
+ "type": "number"
77
+ },
78
+ {
79
+ "name": "moves",
80
+ "type": "number"
81
+ },
82
+ {
83
+ "name": "completed",
84
+ "type": "boolean"
85
+ },
86
+ {
87
+ "name": "highScore",
88
+ "type": "number"
89
+ },
90
+ {
91
+ "name": "combo",
92
+ "type": "number"
93
+ },
94
+ {
95
+ "name": "multiplier",
96
+ "type": "number"
97
+ }
98
+ ]
99
+ },
100
+ {
101
+ "event": "PuzzleLevelLoadFailed",
102
+ "description": "Fired when PuzzleLevel fails to load",
103
+ "scope": "internal",
104
+ "payload": [
105
+ {
106
+ "name": "message",
107
+ "type": "string"
108
+ }
109
+ ]
110
+ }
111
+ ],
79
112
  "stateMachine": {
80
113
  "states": [
81
114
  {
@@ -99,39 +132,53 @@
99
132
  },
100
133
  {
101
134
  "key": "START",
102
- "name": "Start Puzzle"
135
+ "name": "Start"
136
+ },
137
+ {
138
+ "key": "NAVIGATE",
139
+ "name": "Navigate"
103
140
  },
104
141
  {
105
142
  "key": "MOVE",
106
- "name": "Make Move"
143
+ "name": "Move"
107
144
  },
108
145
  {
109
146
  "key": "HINT",
110
- "name": "Show Hint"
147
+ "name": "Hint"
111
148
  },
112
149
  {
113
150
  "key": "PAUSE",
114
151
  "name": "Pause"
115
152
  },
153
+ {
154
+ "key": "GAME_OVER",
155
+ "name": "Game Over"
156
+ },
116
157
  {
117
158
  "key": "RESUME",
118
159
  "name": "Resume"
119
160
  },
120
161
  {
121
- "key": "GAME_OVER",
122
- "name": "Puzzle Complete"
162
+ "key": "CLOSE",
163
+ "name": "Close"
123
164
  },
124
165
  {
125
166
  "key": "RESTART",
126
167
  "name": "Restart"
127
168
  },
128
169
  {
129
- "key": "CLOSE",
130
- "name": "Close"
170
+ "key": "PuzzleLevelLoaded",
171
+ "name": "PuzzleLevel loaded"
131
172
  },
132
173
  {
133
- "key": "NAVIGATE",
134
- "name": "Navigate"
174
+ "key": "PuzzleLevelLoadFailed",
175
+ "name": "PuzzleLevel load failed",
176
+ "payload": [
177
+ {
178
+ "name": "message",
179
+ "type": "string"
180
+ }
181
+ ]
135
182
  }
136
183
  ],
137
184
  "transitions": [
@@ -142,29 +189,35 @@
142
189
  "effects": [
143
190
  [
144
191
  "fetch",
145
- "PuzzleLevel"
192
+ "PuzzleLevel",
193
+ {
194
+ "emit": {
195
+ "success": "PuzzleLevelLoaded",
196
+ "failure": "PuzzleLevelLoadFailed"
197
+ }
198
+ }
146
199
  ],
147
200
  [
148
201
  "render-ui",
149
202
  "main",
150
203
  {
151
- "type": "game-shell",
152
- "appName": "Puzzle App",
153
- "showTopBar": true,
154
204
  "children": [
155
205
  {
156
206
  "type": "game-menu",
157
207
  "title": "Puzzle Challenge",
158
- "subtitle": "Puzzle Challenge",
159
208
  "menuItems": [
160
209
  {
161
- "label": "Start Puzzle",
210
+ "variant": "primary",
162
211
  "event": "START",
163
- "variant": "primary"
212
+ "label": "Start Puzzle"
164
213
  }
165
- ]
214
+ ],
215
+ "subtitle": "Puzzle Challenge"
166
216
  }
167
- ]
217
+ ],
218
+ "appName": "Puzzle App",
219
+ "type": "game-shell",
220
+ "showTopBar": true
168
221
  }
169
222
  ]
170
223
  ]
@@ -178,21 +231,26 @@
178
231
  "render-ui",
179
232
  "main",
180
233
  {
181
- "type": "game-shell",
182
234
  "appName": "Puzzle App",
183
- "showTopBar": true,
235
+ "type": "game-shell",
184
236
  "children": [
185
237
  {
238
+ "width": 800.0,
186
239
  "type": "game-canvas-2d",
187
- "width": 800,
188
- "height": 600,
189
- "fps": 60
240
+ "height": 600.0,
241
+ "fps": 60.0
190
242
  }
191
- ]
243
+ ],
244
+ "showTopBar": true
192
245
  }
193
246
  ]
194
247
  ]
195
248
  },
249
+ {
250
+ "from": "menu",
251
+ "to": "menu",
252
+ "event": "NAVIGATE"
253
+ },
196
254
  {
197
255
  "from": "playing",
198
256
  "to": "playing",
@@ -204,7 +262,7 @@
204
262
  [
205
263
  "+",
206
264
  "@entity.moves",
207
- 1
265
+ 1.0
208
266
  ]
209
267
  ],
210
268
  [
@@ -213,15 +271,15 @@
213
271
  {
214
272
  "type": "game-shell",
215
273
  "appName": "Puzzle App",
216
- "showTopBar": true,
217
274
  "children": [
218
275
  {
276
+ "width": 800.0,
219
277
  "type": "game-canvas-2d",
220
- "width": 800,
221
- "height": 600,
222
- "fps": 60
278
+ "height": 600.0,
279
+ "fps": 60.0
223
280
  }
224
- ]
281
+ ],
282
+ "showTopBar": true
225
283
  }
226
284
  ]
227
285
  ]
@@ -229,20 +287,7 @@
229
287
  {
230
288
  "from": "playing",
231
289
  "to": "playing",
232
- "event": "HINT",
233
- "effects": []
234
- },
235
- {
236
- "from": "menu",
237
- "to": "menu",
238
- "event": "NAVIGATE",
239
- "effects": []
240
- },
241
- {
242
- "from": "paused",
243
- "to": "paused",
244
- "event": "NAVIGATE",
245
- "effects": []
290
+ "event": "HINT"
246
291
  },
247
292
  {
248
293
  "from": "playing",
@@ -257,14 +302,14 @@
257
302
  "title": "Paused",
258
303
  "menuItems": [
259
304
  {
260
- "label": "Resume",
261
305
  "event": "RESUME",
306
+ "label": "Resume",
262
307
  "variant": "primary"
263
308
  },
264
309
  {
310
+ "variant": "ghost",
265
311
  "label": "Quit",
266
- "event": "RESTART",
267
- "variant": "ghost"
312
+ "event": "RESTART"
268
313
  }
269
314
  ]
270
315
  }
@@ -272,38 +317,58 @@
272
317
  ]
273
318
  },
274
319
  {
275
- "from": "paused",
276
- "to": "playing",
277
- "event": "RESUME",
320
+ "from": "playing",
321
+ "to": "gameover",
322
+ "event": "GAME_OVER",
278
323
  "effects": [
279
- [
280
- "render-ui",
281
- "modal",
282
- null
283
- ],
284
324
  [
285
325
  "render-ui",
286
326
  "main",
287
327
  {
288
- "type": "game-shell",
289
328
  "appName": "Puzzle App",
290
329
  "showTopBar": true,
291
330
  "children": [
292
331
  {
293
- "type": "game-canvas-2d",
294
- "width": 800,
295
- "height": 600,
296
- "fps": 60
332
+ "title": "Puzzle Complete",
333
+ "stats": [
334
+ {
335
+ "label": "Score",
336
+ "value": "@entity.score"
337
+ },
338
+ {
339
+ "label": "Moves",
340
+ "value": "@entity.moves"
341
+ }
342
+ ],
343
+ "type": "game-over-screen",
344
+ "menuItems": [
345
+ {
346
+ "label": "Play Again",
347
+ "variant": "primary",
348
+ "event": "RESTART"
349
+ },
350
+ {
351
+ "label": "Main Menu",
352
+ "event": "RESTART",
353
+ "variant": "secondary"
354
+ }
355
+ ]
297
356
  }
298
- ]
357
+ ],
358
+ "type": "game-shell"
299
359
  }
300
360
  ]
301
361
  ]
302
362
  },
363
+ {
364
+ "from": "paused",
365
+ "to": "paused",
366
+ "event": "NAVIGATE"
367
+ },
303
368
  {
304
369
  "from": "paused",
305
370
  "to": "playing",
306
- "event": "CLOSE",
371
+ "event": "RESUME",
307
372
  "effects": [
308
373
  [
309
374
  "render-ui",
@@ -314,59 +379,44 @@
314
379
  "render-ui",
315
380
  "main",
316
381
  {
317
- "type": "game-shell",
318
- "appName": "Puzzle App",
319
382
  "showTopBar": true,
383
+ "type": "game-shell",
320
384
  "children": [
321
385
  {
322
- "type": "game-canvas-2d",
323
- "width": 800,
324
- "height": 600,
325
- "fps": 60
386
+ "width": 800.0,
387
+ "fps": 60.0,
388
+ "height": 600.0,
389
+ "type": "game-canvas-2d"
326
390
  }
327
- ]
391
+ ],
392
+ "appName": "Puzzle App"
328
393
  }
329
394
  ]
330
395
  ]
331
396
  },
332
397
  {
333
- "from": "playing",
334
- "to": "gameover",
335
- "event": "GAME_OVER",
398
+ "from": "paused",
399
+ "to": "playing",
400
+ "event": "CLOSE",
336
401
  "effects": [
402
+ [
403
+ "render-ui",
404
+ "modal",
405
+ null
406
+ ],
337
407
  [
338
408
  "render-ui",
339
409
  "main",
340
410
  {
341
411
  "type": "game-shell",
342
- "appName": "Puzzle App",
343
412
  "showTopBar": true,
413
+ "appName": "Puzzle App",
344
414
  "children": [
345
415
  {
346
- "type": "game-over-screen",
347
- "title": "Puzzle Complete",
348
- "stats": [
349
- {
350
- "label": "Score",
351
- "value": "@entity.score"
352
- },
353
- {
354
- "label": "Moves",
355
- "value": "@entity.moves"
356
- }
357
- ],
358
- "menuItems": [
359
- {
360
- "label": "Play Again",
361
- "event": "RESTART",
362
- "variant": "primary"
363
- },
364
- {
365
- "label": "Main Menu",
366
- "event": "RESTART",
367
- "variant": "secondary"
368
- }
369
- ]
416
+ "type": "game-canvas-2d",
417
+ "width": 800.0,
418
+ "fps": 60.0,
419
+ "height": 600.0
370
420
  }
371
421
  ]
372
422
  }
@@ -374,51 +424,50 @@
374
424
  ]
375
425
  },
376
426
  {
377
- "from": "gameover",
427
+ "from": "paused",
378
428
  "to": "menu",
379
429
  "event": "RESTART",
380
430
  "effects": [
431
+ [
432
+ "render-ui",
433
+ "modal",
434
+ null
435
+ ],
381
436
  [
382
437
  "render-ui",
383
438
  "main",
384
439
  {
385
440
  "type": "game-shell",
386
- "appName": "Puzzle App",
387
- "showTopBar": true,
388
441
  "children": [
389
442
  {
390
- "type": "game-menu",
391
443
  "title": "Puzzle Challenge",
444
+ "type": "game-menu",
392
445
  "subtitle": "Puzzle Challenge",
393
446
  "menuItems": [
394
447
  {
448
+ "variant": "primary",
395
449
  "label": "Start Puzzle",
396
- "event": "START",
397
- "variant": "primary"
450
+ "event": "START"
398
451
  }
399
452
  ]
400
453
  }
401
- ]
454
+ ],
455
+ "showTopBar": true,
456
+ "appName": "Puzzle App"
402
457
  }
403
458
  ]
404
459
  ]
405
460
  },
406
461
  {
407
- "from": "paused",
462
+ "from": "gameover",
408
463
  "to": "menu",
409
464
  "event": "RESTART",
410
465
  "effects": [
411
- [
412
- "render-ui",
413
- "modal",
414
- null
415
- ],
416
466
  [
417
467
  "render-ui",
418
468
  "main",
419
469
  {
420
470
  "type": "game-shell",
421
- "appName": "Puzzle App",
422
471
  "showTopBar": true,
423
472
  "children": [
424
473
  {
@@ -427,24 +476,79 @@
427
476
  "subtitle": "Puzzle Challenge",
428
477
  "menuItems": [
429
478
  {
479
+ "variant": "primary",
430
480
  "label": "Start Puzzle",
431
- "event": "START",
432
- "variant": "primary"
481
+ "event": "START"
433
482
  }
434
483
  ]
435
484
  }
436
- ]
485
+ ],
486
+ "appName": "Puzzle App"
437
487
  }
438
488
  ]
439
489
  ]
440
490
  }
441
491
  ]
442
- }
492
+ },
493
+ "scope": "instance"
443
494
  },
444
495
  {
445
496
  "name": "PuzzleLevelPuzzleScore",
446
- "linkedEntity": "PuzzleLevel",
447
497
  "category": "interaction",
498
+ "linkedEntity": "PuzzleLevel",
499
+ "emits": [
500
+ {
501
+ "event": "PuzzleLevelLoaded",
502
+ "description": "Fired when PuzzleLevel finishes loading",
503
+ "scope": "internal",
504
+ "payload": [
505
+ {
506
+ "name": "id",
507
+ "type": "string",
508
+ "required": true
509
+ },
510
+ {
511
+ "name": "level",
512
+ "type": "number"
513
+ },
514
+ {
515
+ "name": "score",
516
+ "type": "number"
517
+ },
518
+ {
519
+ "name": "moves",
520
+ "type": "number"
521
+ },
522
+ {
523
+ "name": "completed",
524
+ "type": "boolean"
525
+ },
526
+ {
527
+ "name": "highScore",
528
+ "type": "number"
529
+ },
530
+ {
531
+ "name": "combo",
532
+ "type": "number"
533
+ },
534
+ {
535
+ "name": "multiplier",
536
+ "type": "number"
537
+ }
538
+ ]
539
+ },
540
+ {
541
+ "event": "PuzzleLevelLoadFailed",
542
+ "description": "Fired when PuzzleLevel fails to load",
543
+ "scope": "internal",
544
+ "payload": [
545
+ {
546
+ "name": "message",
547
+ "type": "string"
548
+ }
549
+ ]
550
+ }
551
+ ],
448
552
  "stateMachine": {
449
553
  "states": [
450
554
  {
@@ -482,6 +586,20 @@
482
586
  {
483
587
  "key": "RESET",
484
588
  "name": "Reset"
589
+ },
590
+ {
591
+ "key": "PuzzleLevelLoaded",
592
+ "name": "PuzzleLevel loaded"
593
+ },
594
+ {
595
+ "key": "PuzzleLevelLoadFailed",
596
+ "name": "PuzzleLevel load failed",
597
+ "payload": [
598
+ {
599
+ "name": "message",
600
+ "type": "string"
601
+ }
602
+ ]
485
603
  }
486
604
  ],
487
605
  "transitions": [
@@ -492,7 +610,13 @@
492
610
  "effects": [
493
611
  [
494
612
  "fetch",
495
- "PuzzleLevel"
613
+ "PuzzleLevel",
614
+ {
615
+ "emit": {
616
+ "success": "PuzzleLevelLoaded",
617
+ "failure": "PuzzleLevelLoadFailed"
618
+ }
619
+ }
496
620
  ]
497
621
  ]
498
622
  },
@@ -516,7 +640,7 @@
516
640
  [
517
641
  "+",
518
642
  "@entity.combo",
519
- 1
643
+ 1.0
520
644
  ]
521
645
  ],
522
646
  [
@@ -524,18 +648,18 @@
524
648
  "main",
525
649
  {
526
650
  "type": "game-shell",
527
- "appName": "Puzzle App",
528
- "showTopBar": true,
529
651
  "children": [
530
652
  {
531
- "type": "score-board",
653
+ "multiplier": "@entity.multiplier",
654
+ "level": "@entity.level",
532
655
  "score": "@entity.score",
533
656
  "highScore": "@entity.highScore",
534
657
  "combo": "@entity.combo",
535
- "multiplier": "@entity.multiplier",
536
- "level": "@entity.level"
658
+ "type": "score-board"
537
659
  }
538
- ]
660
+ ],
661
+ "showTopBar": true,
662
+ "appName": "Puzzle App"
539
663
  }
540
664
  ]
541
665
  ]
@@ -554,17 +678,17 @@
554
678
  "render-ui",
555
679
  "main",
556
680
  {
557
- "type": "game-shell",
558
681
  "appName": "Puzzle App",
559
682
  "showTopBar": true,
683
+ "type": "game-shell",
560
684
  "children": [
561
685
  {
562
- "type": "score-board",
563
686
  "score": "@entity.score",
687
+ "type": "score-board",
564
688
  "highScore": "@entity.highScore",
565
- "combo": "@entity.combo",
689
+ "level": "@entity.level",
566
690
  "multiplier": "@entity.multiplier",
567
- "level": "@entity.level"
691
+ "combo": "@entity.combo"
568
692
  }
569
693
  ]
570
694
  }
@@ -579,48 +703,48 @@
579
703
  [
580
704
  "set",
581
705
  "@entity.score",
582
- 0
706
+ 0.0
583
707
  ],
584
708
  [
585
709
  "set",
586
710
  "@entity.combo",
587
- 0
711
+ 0.0
588
712
  ],
589
713
  [
590
714
  "set",
591
715
  "@entity.multiplier",
592
- 1
716
+ 1.0
593
717
  ],
594
718
  [
595
719
  "render-ui",
596
720
  "main",
597
721
  {
598
- "type": "game-shell",
599
- "appName": "Puzzle App",
600
- "showTopBar": true,
601
722
  "children": [
602
723
  {
603
- "type": "score-board",
604
- "score": "@entity.score",
605
- "highScore": "@entity.highScore",
606
724
  "combo": "@entity.combo",
725
+ "type": "score-board",
607
726
  "multiplier": "@entity.multiplier",
608
- "level": "@entity.level"
727
+ "level": "@entity.level",
728
+ "highScore": "@entity.highScore",
729
+ "score": "@entity.score"
609
730
  }
610
- ]
731
+ ],
732
+ "showTopBar": true,
733
+ "type": "game-shell",
734
+ "appName": "Puzzle App"
611
735
  }
612
736
  ]
613
737
  ]
614
738
  }
615
739
  ]
616
- }
740
+ },
741
+ "scope": "instance"
617
742
  }
618
743
  ],
619
744
  "pages": [
620
745
  {
621
746
  "name": "PuzzlePage",
622
747
  "path": "/puzzle",
623
- "isInitial": true,
624
748
  "traits": [
625
749
  {
626
750
  "ref": "PuzzleLevelPuzzleFlow"
@@ -651,38 +775,96 @@
651
775
  {
652
776
  "name": "score",
653
777
  "type": "number",
654
- "required": true
778
+ "required": true,
779
+ "default": 0.0
655
780
  },
656
781
  {
657
782
  "name": "level",
658
- "type": "number"
783
+ "type": "number",
784
+ "default": 1.0
659
785
  },
660
786
  {
661
787
  "name": "moves",
662
- "type": "number"
788
+ "type": "number",
789
+ "default": 0.0
663
790
  },
664
791
  {
665
792
  "name": "highScore",
666
793
  "type": "number",
667
- "default": 0
794
+ "default": 0.0
668
795
  },
669
796
  {
670
797
  "name": "combo",
671
798
  "type": "number",
672
- "default": 0
799
+ "default": 0.0
673
800
  },
674
801
  {
675
802
  "name": "multiplier",
676
803
  "type": "number",
677
- "default": 1
804
+ "default": 1.0
678
805
  }
679
806
  ]
680
807
  },
681
808
  "traits": [
682
809
  {
683
810
  "name": "PuzzleScoreScoreBoard",
684
- "linkedEntity": "PuzzleScore",
685
811
  "category": "interaction",
812
+ "linkedEntity": "PuzzleScore",
813
+ "emits": [
814
+ {
815
+ "event": "PuzzleScoreLoaded",
816
+ "description": "Fired when PuzzleScore finishes loading",
817
+ "scope": "internal",
818
+ "payload": [
819
+ {
820
+ "name": "id",
821
+ "type": "string",
822
+ "required": true
823
+ },
824
+ {
825
+ "name": "playerName",
826
+ "type": "string",
827
+ "required": true
828
+ },
829
+ {
830
+ "name": "score",
831
+ "type": "number",
832
+ "required": true
833
+ },
834
+ {
835
+ "name": "level",
836
+ "type": "number"
837
+ },
838
+ {
839
+ "name": "moves",
840
+ "type": "number"
841
+ },
842
+ {
843
+ "name": "highScore",
844
+ "type": "number"
845
+ },
846
+ {
847
+ "name": "combo",
848
+ "type": "number"
849
+ },
850
+ {
851
+ "name": "multiplier",
852
+ "type": "number"
853
+ }
854
+ ]
855
+ },
856
+ {
857
+ "event": "PuzzleScoreLoadFailed",
858
+ "description": "Fired when PuzzleScore fails to load",
859
+ "scope": "internal",
860
+ "payload": [
861
+ {
862
+ "name": "message",
863
+ "type": "string"
864
+ }
865
+ ]
866
+ }
867
+ ],
686
868
  "stateMachine": {
687
869
  "states": [
688
870
  {
@@ -701,8 +883,7 @@
701
883
  "payload": [
702
884
  {
703
885
  "name": "points",
704
- "type": "number",
705
- "required": true
886
+ "type": "string"
706
887
  }
707
888
  ]
708
889
  },
@@ -712,14 +893,27 @@
712
893
  "payload": [
713
894
  {
714
895
  "name": "multiplier",
715
- "type": "number",
716
- "required": true
896
+ "type": "string"
717
897
  }
718
898
  ]
719
899
  },
720
900
  {
721
901
  "key": "RESET",
722
902
  "name": "Reset"
903
+ },
904
+ {
905
+ "key": "PuzzleScoreLoaded",
906
+ "name": "PuzzleScore loaded"
907
+ },
908
+ {
909
+ "key": "PuzzleScoreLoadFailed",
910
+ "name": "PuzzleScore load failed",
911
+ "payload": [
912
+ {
913
+ "name": "message",
914
+ "type": "string"
915
+ }
916
+ ]
723
917
  }
724
918
  ],
725
919
  "transitions": [
@@ -730,25 +924,31 @@
730
924
  "effects": [
731
925
  [
732
926
  "fetch",
733
- "PuzzleScore"
927
+ "PuzzleScore",
928
+ {
929
+ "emit": {
930
+ "success": "PuzzleScoreLoaded",
931
+ "failure": "PuzzleScoreLoadFailed"
932
+ }
933
+ }
734
934
  ],
735
935
  [
736
936
  "render-ui",
737
937
  "main",
738
938
  {
739
939
  "type": "game-shell",
740
- "appName": "Puzzle App",
741
- "showTopBar": true,
742
940
  "children": [
743
941
  {
744
- "type": "score-board",
745
942
  "score": "@entity.score",
746
- "highScore": "@entity.highScore",
747
943
  "combo": "@entity.combo",
944
+ "level": "@entity.level",
748
945
  "multiplier": "@entity.multiplier",
749
- "level": "@entity.level"
946
+ "type": "score-board",
947
+ "highScore": "@entity.highScore"
750
948
  }
751
- ]
949
+ ],
950
+ "showTopBar": true,
951
+ "appName": "Puzzle App"
752
952
  }
753
953
  ]
754
954
  ]
@@ -773,7 +973,7 @@
773
973
  [
774
974
  "+",
775
975
  "@entity.combo",
776
- 1
976
+ 1.0
777
977
  ]
778
978
  ],
779
979
  [
@@ -782,17 +982,17 @@
782
982
  {
783
983
  "type": "game-shell",
784
984
  "appName": "Puzzle App",
785
- "showTopBar": true,
786
985
  "children": [
787
986
  {
788
- "type": "score-board",
789
987
  "score": "@entity.score",
988
+ "level": "@entity.level",
989
+ "multiplier": "@entity.multiplier",
790
990
  "highScore": "@entity.highScore",
791
991
  "combo": "@entity.combo",
792
- "multiplier": "@entity.multiplier",
793
- "level": "@entity.level"
992
+ "type": "score-board"
794
993
  }
795
- ]
994
+ ],
995
+ "showTopBar": true
796
996
  }
797
997
  ]
798
998
  ]
@@ -812,15 +1012,15 @@
812
1012
  "main",
813
1013
  {
814
1014
  "type": "game-shell",
815
- "appName": "Puzzle App",
816
1015
  "showTopBar": true,
1016
+ "appName": "Puzzle App",
817
1017
  "children": [
818
1018
  {
819
- "type": "score-board",
820
- "score": "@entity.score",
821
- "highScore": "@entity.highScore",
822
1019
  "combo": "@entity.combo",
1020
+ "score": "@entity.score",
823
1021
  "multiplier": "@entity.multiplier",
1022
+ "type": "score-board",
1023
+ "highScore": "@entity.highScore",
824
1024
  "level": "@entity.level"
825
1025
  }
826
1026
  ]
@@ -836,32 +1036,32 @@
836
1036
  [
837
1037
  "set",
838
1038
  "@entity.score",
839
- 0
1039
+ 0.0
840
1040
  ],
841
1041
  [
842
1042
  "set",
843
1043
  "@entity.combo",
844
- 0
1044
+ 0.0
845
1045
  ],
846
1046
  [
847
1047
  "set",
848
1048
  "@entity.multiplier",
849
- 1
1049
+ 1.0
850
1050
  ],
851
1051
  [
852
1052
  "render-ui",
853
1053
  "main",
854
1054
  {
855
- "type": "game-shell",
856
1055
  "appName": "Puzzle App",
857
1056
  "showTopBar": true,
1057
+ "type": "game-shell",
858
1058
  "children": [
859
1059
  {
860
- "type": "score-board",
861
- "score": "@entity.score",
862
1060
  "highScore": "@entity.highScore",
863
1061
  "combo": "@entity.combo",
1062
+ "score": "@entity.score",
864
1063
  "multiplier": "@entity.multiplier",
1064
+ "type": "score-board",
865
1065
  "level": "@entity.level"
866
1066
  }
867
1067
  ]
@@ -870,12 +1070,13 @@
870
1070
  ]
871
1071
  }
872
1072
  ]
873
- }
1073
+ },
1074
+ "scope": "instance"
874
1075
  }
875
1076
  ],
876
1077
  "pages": [
877
1078
  {
878
- "name": "ScoresPage",
1079
+ "name": "Scores",
879
1080
  "path": "/scores",
880
1081
  "traits": [
881
1082
  {
@@ -886,4 +1087,4 @@
886
1087
  ]
887
1088
  }
888
1089
  ]
889
- }
1090
+ }