@almadar/std 8.5.1 → 9.0.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 (187) hide show
  1. package/behaviors/registry/agent/atoms/std-agent-activity-log.orb +97 -97
  2. package/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +129 -129
  3. package/behaviors/registry/agent/atoms/std-agent-classifier.orb +127 -127
  4. package/behaviors/registry/agent/atoms/std-agent-completion.orb +133 -133
  5. package/behaviors/registry/agent/atoms/std-agent-context-window.orb +419 -419
  6. package/behaviors/registry/agent/atoms/std-agent-conversation.orb +100 -100
  7. package/behaviors/registry/agent/atoms/std-agent-memory.orb +112 -112
  8. package/behaviors/registry/agent/atoms/std-agent-provider.orb +138 -138
  9. package/behaviors/registry/agent/atoms/std-agent-search.orb +78 -78
  10. package/behaviors/registry/agent/atoms/std-agent-session.orb +171 -171
  11. package/behaviors/registry/agent/atoms/std-agent-step-progress.orb +202 -202
  12. package/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +358 -358
  13. package/behaviors/registry/agent/atoms/std-agent-tool-call.orb +79 -79
  14. package/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +204 -204
  15. package/behaviors/registry/agent/molecules/std-agent-learner.orb +190 -190
  16. package/behaviors/registry/agent/molecules/std-agent-planner.orb +152 -152
  17. package/behaviors/registry/agent/molecules/std-agent-rag.orb +115 -115
  18. package/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +188 -188
  19. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +1219 -1219
  20. package/behaviors/registry/agent/organisms/std-agent-builder.orb +2995 -2995
  21. package/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2285 -2285
  22. package/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1063 -1063
  23. package/behaviors/registry/agent/organisms/std-agent-tutor.orb +876 -876
  24. package/behaviors/registry/app/organisms/std-api-gateway.orb +840 -840
  25. package/behaviors/registry/app/organisms/std-booking-system.orb +1248 -1248
  26. package/behaviors/registry/app/organisms/std-cicd-pipeline.orb +816 -816
  27. package/behaviors/registry/app/organisms/std-cms.orb +587 -587
  28. package/behaviors/registry/app/organisms/std-coding-academy.orb +416 -416
  29. package/behaviors/registry/app/organisms/std-crm.orb +966 -966
  30. package/behaviors/registry/app/organisms/std-devops-dashboard.orb +1375 -1375
  31. package/behaviors/registry/app/organisms/std-ecommerce.orb +1109 -1109
  32. package/behaviors/registry/app/organisms/std-finance-tracker.orb +716 -716
  33. package/behaviors/registry/app/organisms/std-healthcare.orb +1473 -1473
  34. package/behaviors/registry/app/organisms/std-helpdesk.orb +693 -693
  35. package/behaviors/registry/app/organisms/std-hr-portal.orb +1252 -1252
  36. package/behaviors/registry/app/organisms/std-iot-dashboard.orb +895 -895
  37. package/behaviors/registry/app/organisms/std-lms.orb +876 -876
  38. package/behaviors/registry/app/organisms/std-project-manager.orb +790 -790
  39. package/behaviors/registry/app/organisms/std-realtime-chat.orb +740 -740
  40. package/behaviors/registry/app/organisms/std-social-feed.orb +266 -266
  41. package/behaviors/registry/app/organisms/std-trading-dashboard.orb +699 -699
  42. package/behaviors/registry/core/atoms/std-browse.orb +67 -67
  43. package/behaviors/registry/core/atoms/std-cache-aside.orb +97 -97
  44. package/behaviors/registry/core/atoms/std-calendar.orb +62 -62
  45. package/behaviors/registry/core/atoms/std-circuit-breaker.orb +188 -188
  46. package/behaviors/registry/core/atoms/std-confirmation.orb +34 -34
  47. package/behaviors/registry/core/atoms/std-display.orb +370 -370
  48. package/behaviors/registry/core/atoms/std-drawer.orb +61 -61
  49. package/behaviors/registry/core/atoms/std-filter.orb +63 -63
  50. package/behaviors/registry/core/atoms/std-gallery.orb +55 -55
  51. package/behaviors/registry/core/atoms/std-modal.orb +19 -19
  52. package/behaviors/registry/core/atoms/std-pagination.orb +53 -53
  53. package/behaviors/registry/core/atoms/std-push.orb +49 -49
  54. package/behaviors/registry/core/atoms/std-rate-limiter.orb +185 -185
  55. package/behaviors/registry/core/atoms/std-related.orb +39 -39
  56. package/behaviors/registry/core/atoms/std-search.orb +73 -73
  57. package/behaviors/registry/core/atoms/std-selection.orb +110 -110
  58. package/behaviors/registry/core/atoms/std-tabs.orb +47 -47
  59. package/behaviors/registry/core/molecules/std-cart.orb +60 -60
  60. package/behaviors/registry/core/molecules/std-filtered-list.orb +11 -11
  61. package/behaviors/registry/core/molecules/std-form-advanced.orb +140 -140
  62. package/behaviors/registry/core/molecules/std-list.orb +68 -68
  63. package/behaviors/registry/core/molecules/std-wizard-form.orb +152 -152
  64. package/behaviors/registry/game/atoms/std-collision.orb +140 -140
  65. package/behaviors/registry/game/atoms/std-combat.orb +76 -76
  66. package/behaviors/registry/game/atoms/std-dialogue-box.orb +27 -27
  67. package/behaviors/registry/game/atoms/std-game-canvas2d.orb +47 -47
  68. package/behaviors/registry/game/atoms/std-gameflow.orb +49 -49
  69. package/behaviors/registry/game/atoms/std-movement.orb +276 -276
  70. package/behaviors/registry/game/atoms/std-overworld.orb +64 -64
  71. package/behaviors/registry/game/atoms/std-physics2d.orb +88 -88
  72. package/behaviors/registry/game/atoms/std-quest.orb +129 -129
  73. package/behaviors/registry/game/atoms/std-timer.orb +285 -285
  74. package/behaviors/registry/game/organisms/std-arcade-game.orb +172 -172
  75. package/behaviors/registry/game/organisms/std-logic-training.orb +89 -89
  76. package/behaviors/registry/game/organisms/std-platformer-app.orb +281 -281
  77. package/behaviors/registry/game/organisms/std-puzzle-app.orb +110 -110
  78. package/behaviors/registry/game/organisms/std-rpg-game.orb +446 -446
  79. package/behaviors/registry/game/organisms/std-stem-lab.orb +349 -349
  80. package/behaviors/registry/game/organisms/std-strategy-game.orb +550 -550
  81. package/behaviors/registry/probes/molecules/std-source-scope-probe.orb +35 -35
  82. package/behaviors/registry/service/atoms/std-service-custom-bearer.orb +93 -93
  83. package/behaviors/registry/service/atoms/std-service-email.orb +92 -92
  84. package/behaviors/registry/service/atoms/std-service-github.orb +111 -111
  85. package/behaviors/registry/service/atoms/std-service-llm.orb +132 -132
  86. package/behaviors/registry/service/atoms/std-service-oauth.orb +133 -133
  87. package/behaviors/registry/service/atoms/std-service-redis.orb +114 -114
  88. package/behaviors/registry/service/atoms/std-service-storage.orb +140 -140
  89. package/behaviors/registry/service/atoms/std-service-stripe.orb +115 -115
  90. package/behaviors/registry/service/atoms/std-service-twilio.orb +131 -131
  91. package/behaviors/registry/service/atoms/std-service-youtube.orb +128 -128
  92. package/behaviors/registry/service/organisms/std-service-marketplace.orb +1092 -1092
  93. package/behaviors/registry/service/organisms/std-service-research-assistant.orb +978 -978
  94. package/dist/behaviors/registry/agent/atoms/std-agent-activity-log.orb +97 -97
  95. package/dist/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +129 -129
  96. package/dist/behaviors/registry/agent/atoms/std-agent-classifier.orb +127 -127
  97. package/dist/behaviors/registry/agent/atoms/std-agent-completion.orb +133 -133
  98. package/dist/behaviors/registry/agent/atoms/std-agent-context-window.orb +419 -419
  99. package/dist/behaviors/registry/agent/atoms/std-agent-conversation.orb +100 -100
  100. package/dist/behaviors/registry/agent/atoms/std-agent-memory.orb +112 -112
  101. package/dist/behaviors/registry/agent/atoms/std-agent-provider.orb +138 -138
  102. package/dist/behaviors/registry/agent/atoms/std-agent-search.orb +78 -78
  103. package/dist/behaviors/registry/agent/atoms/std-agent-session.orb +171 -171
  104. package/dist/behaviors/registry/agent/atoms/std-agent-step-progress.orb +202 -202
  105. package/dist/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +358 -358
  106. package/dist/behaviors/registry/agent/atoms/std-agent-tool-call.orb +79 -79
  107. package/dist/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +204 -204
  108. package/dist/behaviors/registry/agent/molecules/std-agent-learner.orb +190 -190
  109. package/dist/behaviors/registry/agent/molecules/std-agent-planner.orb +152 -152
  110. package/dist/behaviors/registry/agent/molecules/std-agent-rag.orb +115 -115
  111. package/dist/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +188 -188
  112. package/dist/behaviors/registry/agent/organisms/std-agent-assistant.orb +1219 -1219
  113. package/dist/behaviors/registry/agent/organisms/std-agent-builder.orb +2995 -2995
  114. package/dist/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2285 -2285
  115. package/dist/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1063 -1063
  116. package/dist/behaviors/registry/agent/organisms/std-agent-tutor.orb +876 -876
  117. package/dist/behaviors/registry/app/organisms/std-api-gateway.orb +840 -840
  118. package/dist/behaviors/registry/app/organisms/std-booking-system.orb +1248 -1248
  119. package/dist/behaviors/registry/app/organisms/std-cicd-pipeline.orb +816 -816
  120. package/dist/behaviors/registry/app/organisms/std-cms.orb +587 -587
  121. package/dist/behaviors/registry/app/organisms/std-coding-academy.orb +416 -416
  122. package/dist/behaviors/registry/app/organisms/std-crm.orb +966 -966
  123. package/dist/behaviors/registry/app/organisms/std-devops-dashboard.orb +1375 -1375
  124. package/dist/behaviors/registry/app/organisms/std-ecommerce.orb +1109 -1109
  125. package/dist/behaviors/registry/app/organisms/std-finance-tracker.orb +716 -716
  126. package/dist/behaviors/registry/app/organisms/std-healthcare.orb +1473 -1473
  127. package/dist/behaviors/registry/app/organisms/std-helpdesk.orb +693 -693
  128. package/dist/behaviors/registry/app/organisms/std-hr-portal.orb +1252 -1252
  129. package/dist/behaviors/registry/app/organisms/std-iot-dashboard.orb +895 -895
  130. package/dist/behaviors/registry/app/organisms/std-lms.orb +876 -876
  131. package/dist/behaviors/registry/app/organisms/std-project-manager.orb +790 -790
  132. package/dist/behaviors/registry/app/organisms/std-realtime-chat.orb +740 -740
  133. package/dist/behaviors/registry/app/organisms/std-social-feed.orb +266 -266
  134. package/dist/behaviors/registry/app/organisms/std-trading-dashboard.orb +699 -699
  135. package/dist/behaviors/registry/core/atoms/std-browse.orb +67 -67
  136. package/dist/behaviors/registry/core/atoms/std-cache-aside.orb +97 -97
  137. package/dist/behaviors/registry/core/atoms/std-calendar.orb +62 -62
  138. package/dist/behaviors/registry/core/atoms/std-circuit-breaker.orb +188 -188
  139. package/dist/behaviors/registry/core/atoms/std-confirmation.orb +34 -34
  140. package/dist/behaviors/registry/core/atoms/std-display.orb +370 -370
  141. package/dist/behaviors/registry/core/atoms/std-drawer.orb +61 -61
  142. package/dist/behaviors/registry/core/atoms/std-filter.orb +63 -63
  143. package/dist/behaviors/registry/core/atoms/std-gallery.orb +55 -55
  144. package/dist/behaviors/registry/core/atoms/std-modal.orb +19 -19
  145. package/dist/behaviors/registry/core/atoms/std-pagination.orb +53 -53
  146. package/dist/behaviors/registry/core/atoms/std-push.orb +49 -49
  147. package/dist/behaviors/registry/core/atoms/std-rate-limiter.orb +185 -185
  148. package/dist/behaviors/registry/core/atoms/std-related.orb +39 -39
  149. package/dist/behaviors/registry/core/atoms/std-search.orb +73 -73
  150. package/dist/behaviors/registry/core/atoms/std-selection.orb +110 -110
  151. package/dist/behaviors/registry/core/atoms/std-tabs.orb +47 -47
  152. package/dist/behaviors/registry/core/molecules/std-cart.orb +60 -60
  153. package/dist/behaviors/registry/core/molecules/std-filtered-list.orb +11 -11
  154. package/dist/behaviors/registry/core/molecules/std-form-advanced.orb +140 -140
  155. package/dist/behaviors/registry/core/molecules/std-list.orb +68 -68
  156. package/dist/behaviors/registry/core/molecules/std-wizard-form.orb +152 -152
  157. package/dist/behaviors/registry/game/atoms/std-collision.orb +140 -140
  158. package/dist/behaviors/registry/game/atoms/std-combat.orb +76 -76
  159. package/dist/behaviors/registry/game/atoms/std-dialogue-box.orb +27 -27
  160. package/dist/behaviors/registry/game/atoms/std-game-canvas2d.orb +47 -47
  161. package/dist/behaviors/registry/game/atoms/std-gameflow.orb +49 -49
  162. package/dist/behaviors/registry/game/atoms/std-movement.orb +276 -276
  163. package/dist/behaviors/registry/game/atoms/std-overworld.orb +64 -64
  164. package/dist/behaviors/registry/game/atoms/std-physics2d.orb +88 -88
  165. package/dist/behaviors/registry/game/atoms/std-quest.orb +129 -129
  166. package/dist/behaviors/registry/game/atoms/std-timer.orb +285 -285
  167. package/dist/behaviors/registry/game/organisms/std-arcade-game.orb +172 -172
  168. package/dist/behaviors/registry/game/organisms/std-logic-training.orb +89 -89
  169. package/dist/behaviors/registry/game/organisms/std-platformer-app.orb +281 -281
  170. package/dist/behaviors/registry/game/organisms/std-puzzle-app.orb +110 -110
  171. package/dist/behaviors/registry/game/organisms/std-rpg-game.orb +446 -446
  172. package/dist/behaviors/registry/game/organisms/std-stem-lab.orb +349 -349
  173. package/dist/behaviors/registry/game/organisms/std-strategy-game.orb +550 -550
  174. package/dist/behaviors/registry/probes/molecules/std-source-scope-probe.orb +35 -35
  175. package/dist/behaviors/registry/service/atoms/std-service-custom-bearer.orb +93 -93
  176. package/dist/behaviors/registry/service/atoms/std-service-email.orb +92 -92
  177. package/dist/behaviors/registry/service/atoms/std-service-github.orb +111 -111
  178. package/dist/behaviors/registry/service/atoms/std-service-llm.orb +132 -132
  179. package/dist/behaviors/registry/service/atoms/std-service-oauth.orb +133 -133
  180. package/dist/behaviors/registry/service/atoms/std-service-redis.orb +114 -114
  181. package/dist/behaviors/registry/service/atoms/std-service-storage.orb +140 -140
  182. package/dist/behaviors/registry/service/atoms/std-service-stripe.orb +115 -115
  183. package/dist/behaviors/registry/service/atoms/std-service-twilio.orb +131 -131
  184. package/dist/behaviors/registry/service/atoms/std-service-youtube.orb +128 -128
  185. package/dist/behaviors/registry/service/organisms/std-service-marketplace.orb +1092 -1092
  186. package/dist/behaviors/registry/service/organisms/std-service-research-assistant.orb +978 -978
  187. package/package.json +1 -1
@@ -56,7 +56,7 @@
56
56
  "event": "PlatLevelLoaded",
57
57
  "description": "Fired when PlatLevel finishes loading",
58
58
  "scope": "internal",
59
- "payload": [
59
+ "payloadSchema": [
60
60
  {
61
61
  "name": "data",
62
62
  "type": "[PlatLevel]"
@@ -67,7 +67,7 @@
67
67
  "event": "PlatLevelLoadFailed",
68
68
  "description": "Fired when PlatLevel fails to load",
69
69
  "scope": "internal",
70
- "payload": [
70
+ "payloadSchema": [
71
71
  {
72
72
  "name": "error",
73
73
  "type": "string"
@@ -81,7 +81,7 @@
81
81
  {
82
82
  "event": "CollectibleSaved",
83
83
  "scope": "internal",
84
- "payload": [
84
+ "payloadSchema": [
85
85
  {
86
86
  "name": "id",
87
87
  "type": "string"
@@ -91,7 +91,7 @@
91
91
  {
92
92
  "event": "CollectibleSaveFailed",
93
93
  "scope": "internal",
94
- "payload": [
94
+ "payloadSchema": [
95
95
  {
96
96
  "name": "error",
97
97
  "type": "string"
@@ -105,7 +105,7 @@
105
105
  {
106
106
  "event": "CollectibleUpdated",
107
107
  "scope": "internal",
108
- "payload": [
108
+ "payloadSchema": [
109
109
  {
110
110
  "name": "id",
111
111
  "type": "string"
@@ -115,7 +115,7 @@
115
115
  {
116
116
  "event": "CollectibleUpdateFailed",
117
117
  "scope": "internal",
118
- "payload": [
118
+ "payloadSchema": [
119
119
  {
120
120
  "name": "error",
121
121
  "type": "string"
@@ -129,7 +129,7 @@
129
129
  {
130
130
  "event": "CollectibleDeleted",
131
131
  "scope": "internal",
132
- "payload": [
132
+ "payloadSchema": [
133
133
  {
134
134
  "name": "id",
135
135
  "type": "string"
@@ -139,7 +139,7 @@
139
139
  {
140
140
  "event": "CollectibleDeleteFailed",
141
141
  "scope": "internal",
142
- "payload": [
142
+ "payloadSchema": [
143
143
  {
144
144
  "name": "error",
145
145
  "type": "string"
@@ -219,7 +219,7 @@
219
219
  {
220
220
  "key": "PlatLevelLoaded",
221
221
  "name": "PlatLevel loaded",
222
- "payload": [
222
+ "payloadSchema": [
223
223
  {
224
224
  "name": "data",
225
225
  "type": "[PlatLevel]"
@@ -229,7 +229,7 @@
229
229
  {
230
230
  "key": "PlatLevelLoadFailed",
231
231
  "name": "PlatLevel load failed",
232
- "payload": [
232
+ "payloadSchema": [
233
233
  {
234
234
  "name": "error",
235
235
  "type": "string"
@@ -243,7 +243,7 @@
243
243
  {
244
244
  "key": "CollectibleSaved",
245
245
  "name": "Collectible saved",
246
- "payload": [
246
+ "payloadSchema": [
247
247
  {
248
248
  "name": "id",
249
249
  "type": "string"
@@ -253,7 +253,7 @@
253
253
  {
254
254
  "key": "CollectibleSaveFailed",
255
255
  "name": "Collectible save failed",
256
- "payload": [
256
+ "payloadSchema": [
257
257
  {
258
258
  "name": "error",
259
259
  "type": "string"
@@ -267,7 +267,7 @@
267
267
  {
268
268
  "key": "CollectibleUpdated",
269
269
  "name": "Collectible updated",
270
- "payload": [
270
+ "payloadSchema": [
271
271
  {
272
272
  "name": "id",
273
273
  "type": "string"
@@ -277,7 +277,7 @@
277
277
  {
278
278
  "key": "CollectibleUpdateFailed",
279
279
  "name": "Collectible update failed",
280
- "payload": [
280
+ "payloadSchema": [
281
281
  {
282
282
  "name": "error",
283
283
  "type": "string"
@@ -291,7 +291,7 @@
291
291
  {
292
292
  "key": "CollectibleDeleted",
293
293
  "name": "Collectible deleted",
294
- "payload": [
294
+ "payloadSchema": [
295
295
  {
296
296
  "name": "id",
297
297
  "type": "string"
@@ -301,7 +301,7 @@
301
301
  {
302
302
  "key": "CollectibleDeleteFailed",
303
303
  "name": "Collectible delete failed",
304
- "payload": [
304
+ "payloadSchema": [
305
305
  {
306
306
  "name": "error",
307
307
  "type": "string"
@@ -324,8 +324,8 @@
324
324
  "PlatLevel",
325
325
  {
326
326
  "emit": {
327
- "failure": "PlatLevelLoadFailed",
328
- "success": "PlatLevelLoaded"
327
+ "success": "PlatLevelLoaded",
328
+ "failure": "PlatLevelLoadFailed"
329
329
  }
330
330
  }
331
331
  ],
@@ -333,23 +333,23 @@
333
333
  "render-ui",
334
334
  "main",
335
335
  {
336
+ "showTopBar": true,
337
+ "appName": "Platformer App",
336
338
  "children": [
337
339
  {
340
+ "subtitle": "Side-Scrolling Adventure",
338
341
  "type": "game-menu",
342
+ "title": "Platformer",
339
343
  "menuItems": [
340
344
  {
341
- "label": "Start Game",
345
+ "variant": "primary",
342
346
  "event": "START",
343
- "variant": "primary"
347
+ "label": "Start Game"
344
348
  }
345
- ],
346
- "subtitle": "Side-Scrolling Adventure",
347
- "title": "Platformer"
349
+ ]
348
350
  }
349
351
  ],
350
- "appName": "Platformer App",
351
- "type": "game-shell",
352
- "showTopBar": true
352
+ "type": "game-shell"
353
353
  }
354
354
  ]
355
355
  ]
@@ -363,24 +363,24 @@
363
363
  "render-ui",
364
364
  "main",
365
365
  {
366
- "type": "game-shell",
367
- "showTopBar": true,
368
- "appName": "Platformer App",
369
366
  "children": [
370
367
  {
371
- "canvasHeight": 400.0,
372
368
  "leftEvent": "LEFT",
373
- "worldWidth": 2400.0,
374
- "rightEvent": "RIGHT",
375
- "jumpEvent": "JUMP",
376
369
  "worldHeight": 400.0,
377
- "stopEvent": "STOP",
378
- "followCamera": true,
379
370
  "canvasWidth": 800.0,
380
371
  "bgColor": "#1a1a2e",
381
- "type": "platformer-canvas"
372
+ "type": "platformer-canvas",
373
+ "canvasHeight": 400.0,
374
+ "worldWidth": 2400.0,
375
+ "rightEvent": "RIGHT",
376
+ "followCamera": true,
377
+ "stopEvent": "STOP",
378
+ "jumpEvent": "JUMP"
382
379
  }
383
- ]
380
+ ],
381
+ "type": "game-shell",
382
+ "showTopBar": true,
383
+ "appName": "Platformer App"
384
384
  }
385
385
  ]
386
386
  ]
@@ -419,19 +419,19 @@
419
419
  "render-ui",
420
420
  "modal",
421
421
  {
422
- "type": "game-menu",
423
422
  "menuItems": [
424
423
  {
425
- "event": "RESUME",
424
+ "variant": "primary",
426
425
  "label": "Resume",
427
- "variant": "primary"
426
+ "event": "RESUME"
428
427
  },
429
428
  {
430
- "event": "RESTART",
431
429
  "variant": "ghost",
430
+ "event": "RESTART",
432
431
  "label": "Quit"
433
432
  }
434
433
  ],
434
+ "type": "game-menu",
435
435
  "title": "Paused"
436
436
  }
437
437
  ]
@@ -446,35 +446,35 @@
446
446
  "render-ui",
447
447
  "main",
448
448
  {
449
- "type": "game-shell",
450
449
  "children": [
451
450
  {
452
- "type": "game-over-screen",
453
451
  "title": "Game Over",
454
452
  "menuItems": [
455
453
  {
456
- "event": "RESTART",
457
454
  "label": "Play Again",
455
+ "event": "RESTART",
458
456
  "variant": "primary"
459
457
  },
460
458
  {
461
459
  "event": "RESTART",
462
- "label": "Main Menu",
463
- "variant": "secondary"
460
+ "variant": "secondary",
461
+ "label": "Main Menu"
464
462
  }
465
463
  ],
466
464
  "stats": [
467
465
  {
468
- "label": "Score",
469
- "value": "@entity.score"
466
+ "value": "@entity.score",
467
+ "label": "Score"
470
468
  },
471
469
  {
472
470
  "label": "Lives",
473
471
  "value": "@entity.lives"
474
472
  }
475
- ]
473
+ ],
474
+ "type": "game-over-screen"
476
475
  }
477
476
  ],
477
+ "type": "game-shell",
478
478
  "appName": "Platformer App",
479
479
  "showTopBar": true
480
480
  }
@@ -500,24 +500,24 @@
500
500
  "render-ui",
501
501
  "main",
502
502
  {
503
- "appName": "Platformer App",
504
503
  "type": "game-shell",
505
504
  "showTopBar": true,
506
505
  "children": [
507
506
  {
508
507
  "worldHeight": 400.0,
509
- "worldWidth": 2400.0,
508
+ "jumpEvent": "JUMP",
509
+ "stopEvent": "STOP",
510
+ "followCamera": true,
510
511
  "canvasHeight": 400.0,
511
- "canvasWidth": 800.0,
512
- "rightEvent": "RIGHT",
512
+ "worldWidth": 2400.0,
513
513
  "type": "platformer-canvas",
514
- "followCamera": true,
515
514
  "leftEvent": "LEFT",
516
- "jumpEvent": "JUMP",
517
- "stopEvent": "STOP",
518
- "bgColor": "#1a1a2e"
515
+ "rightEvent": "RIGHT",
516
+ "bgColor": "#1a1a2e",
517
+ "canvasWidth": 800.0
519
518
  }
520
- ]
519
+ ],
520
+ "appName": "Platformer App"
521
521
  }
522
522
  ]
523
523
  ]
@@ -537,23 +537,23 @@
537
537
  "main",
538
538
  {
539
539
  "showTopBar": true,
540
- "type": "game-shell",
541
540
  "children": [
542
541
  {
543
- "type": "platformer-canvas",
544
542
  "canvasHeight": 400.0,
545
- "worldWidth": 2400.0,
546
- "followCamera": true,
547
543
  "worldHeight": 400.0,
548
- "leftEvent": "LEFT",
544
+ "followCamera": true,
549
545
  "bgColor": "#1a1a2e",
546
+ "worldWidth": 2400.0,
547
+ "leftEvent": "LEFT",
548
+ "rightEvent": "RIGHT",
549
+ "type": "platformer-canvas",
550
550
  "stopEvent": "STOP",
551
551
  "canvasWidth": 800.0,
552
- "jumpEvent": "JUMP",
553
- "rightEvent": "RIGHT"
552
+ "jumpEvent": "JUMP"
554
553
  }
555
554
  ],
556
- "appName": "Platformer App"
555
+ "appName": "Platformer App",
556
+ "type": "game-shell"
557
557
  }
558
558
  ]
559
559
  ]
@@ -574,6 +574,8 @@
574
574
  {
575
575
  "children": [
576
576
  {
577
+ "type": "game-menu",
578
+ "subtitle": "Side-Scrolling Adventure",
577
579
  "menuItems": [
578
580
  {
579
581
  "event": "START",
@@ -581,8 +583,6 @@
581
583
  "label": "Start Game"
582
584
  }
583
585
  ],
584
- "subtitle": "Side-Scrolling Adventure",
585
- "type": "game-menu",
586
586
  "title": "Platformer"
587
587
  }
588
588
  ],
@@ -602,23 +602,23 @@
602
602
  "render-ui",
603
603
  "main",
604
604
  {
605
- "appName": "Platformer App",
606
605
  "type": "game-shell",
607
- "showTopBar": true,
608
606
  "children": [
609
607
  {
608
+ "title": "Platformer",
610
609
  "type": "game-menu",
611
610
  "subtitle": "Side-Scrolling Adventure",
612
- "title": "Platformer",
613
611
  "menuItems": [
614
612
  {
613
+ "variant": "primary",
615
614
  "label": "Start Game",
616
- "event": "START",
617
- "variant": "primary"
615
+ "event": "START"
618
616
  }
619
617
  ]
620
618
  }
621
- ]
619
+ ],
620
+ "appName": "Platformer App",
621
+ "showTopBar": true
622
622
  }
623
623
  ]
624
624
  ]
@@ -636,7 +636,7 @@
636
636
  "event": "PlatLevelLoaded",
637
637
  "description": "Fired when PlatLevel finishes loading",
638
638
  "scope": "internal",
639
- "payload": [
639
+ "payloadSchema": [
640
640
  {
641
641
  "name": "data",
642
642
  "type": "[PlatLevel]"
@@ -647,7 +647,7 @@
647
647
  "event": "PlatLevelLoadFailed",
648
648
  "description": "Fired when PlatLevel fails to load",
649
649
  "scope": "internal",
650
- "payload": [
650
+ "payloadSchema": [
651
651
  {
652
652
  "name": "error",
653
653
  "type": "string"
@@ -697,7 +697,7 @@
697
697
  {
698
698
  "key": "PlatLevelLoaded",
699
699
  "name": "PlatLevel loaded",
700
- "payload": [
700
+ "payloadSchema": [
701
701
  {
702
702
  "name": "data",
703
703
  "type": "[PlatLevel]"
@@ -707,7 +707,7 @@
707
707
  {
708
708
  "key": "PlatLevelLoadFailed",
709
709
  "name": "PlatLevel load failed",
710
- "payload": [
710
+ "payloadSchema": [
711
711
  {
712
712
  "name": "error",
713
713
  "type": "string"
@@ -730,8 +730,8 @@
730
730
  "PlatLevel",
731
731
  {
732
732
  "emit": {
733
- "failure": "PlatLevelLoadFailed",
734
- "success": "PlatLevelLoaded"
733
+ "success": "PlatLevelLoaded",
734
+ "failure": "PlatLevelLoadFailed"
735
735
  }
736
736
  }
737
737
  ]
@@ -746,25 +746,25 @@
746
746
  "render-ui",
747
747
  "main",
748
748
  {
749
+ "type": "game-shell",
750
+ "showTopBar": true,
749
751
  "children": [
750
752
  {
751
- "followCamera": true,
753
+ "canvasWidth": 800.0,
752
754
  "player": "@entity.player",
753
755
  "canvasHeight": 400.0,
754
- "platforms": "@entity.platforms",
755
- "type": "platformer-canvas",
756
+ "followCamera": true,
757
+ "jumpEvent": "JUMP",
756
758
  "worldHeight": 400.0,
757
- "bgColor": "#1a1a2e",
759
+ "worldWidth": 2400.0,
760
+ "type": "platformer-canvas",
758
761
  "stopEvent": "STOP",
759
- "rightEvent": "RIGHT",
760
- "jumpEvent": "JUMP",
761
762
  "leftEvent": "LEFT",
762
- "canvasWidth": 800.0,
763
- "worldWidth": 2400.0
763
+ "rightEvent": "RIGHT",
764
+ "bgColor": "#1a1a2e",
765
+ "platforms": "@entity.platforms"
764
766
  }
765
767
  ],
766
- "type": "game-shell",
767
- "showTopBar": true,
768
768
  "appName": "Platformer App"
769
769
  }
770
770
  ]
@@ -795,25 +795,25 @@
795
795
  "main",
796
796
  {
797
797
  "appName": "Platformer App",
798
+ "showTopBar": true,
798
799
  "children": [
799
800
  {
800
- "bgColor": "#1a1a2e",
801
- "canvasHeight": 400.0,
802
- "worldHeight": 400.0,
803
801
  "leftEvent": "LEFT",
804
- "platforms": "@entity.platforms",
805
- "player": "@entity.player",
806
802
  "type": "platformer-canvas",
803
+ "worldHeight": 400.0,
804
+ "bgColor": "#1a1a2e",
805
+ "jumpEvent": "JUMP",
806
+ "worldWidth": 2400.0,
807
807
  "canvasWidth": 800.0,
808
+ "player": "@entity.player",
809
+ "canvasHeight": 400.0,
808
810
  "followCamera": true,
809
- "worldWidth": 2400.0,
810
- "jumpEvent": "JUMP",
811
811
  "stopEvent": "STOP",
812
- "rightEvent": "RIGHT"
812
+ "rightEvent": "RIGHT",
813
+ "platforms": "@entity.platforms"
813
814
  }
814
815
  ],
815
- "type": "game-shell",
816
- "showTopBar": true
816
+ "type": "game-shell"
817
817
  }
818
818
  ]
819
819
  ]
@@ -893,7 +893,7 @@
893
893
  "event": "PlatScoreLoaded",
894
894
  "description": "Fired when PlatScore finishes loading",
895
895
  "scope": "internal",
896
- "payload": [
896
+ "payloadSchema": [
897
897
  {
898
898
  "name": "data",
899
899
  "type": "[PlatScore]"
@@ -904,7 +904,7 @@
904
904
  "event": "PlatScoreLoadFailed",
905
905
  "description": "Fired when PlatScore fails to load",
906
906
  "scope": "internal",
907
- "payload": [
907
+ "payloadSchema": [
908
908
  {
909
909
  "name": "error",
910
910
  "type": "string"
@@ -931,7 +931,7 @@
931
931
  {
932
932
  "key": "ADD_SCORE",
933
933
  "name": "Add Score",
934
- "payload": [
934
+ "payloadSchema": [
935
935
  {
936
936
  "name": "points",
937
937
  "type": "string"
@@ -941,7 +941,7 @@
941
941
  {
942
942
  "key": "COMBO",
943
943
  "name": "Combo",
944
- "payload": [
944
+ "payloadSchema": [
945
945
  {
946
946
  "name": "multiplier",
947
947
  "type": "string"
@@ -955,7 +955,7 @@
955
955
  {
956
956
  "key": "PlatScoreLoaded",
957
957
  "name": "PlatScore loaded",
958
- "payload": [
958
+ "payloadSchema": [
959
959
  {
960
960
  "name": "data",
961
961
  "type": "[PlatScore]"
@@ -965,7 +965,7 @@
965
965
  {
966
966
  "key": "PlatScoreLoadFailed",
967
967
  "name": "PlatScore load failed",
968
- "payload": [
968
+ "payloadSchema": [
969
969
  {
970
970
  "name": "error",
971
971
  "type": "string"
@@ -998,18 +998,18 @@
998
998
  "main",
999
999
  {
1000
1000
  "type": "game-shell",
1001
- "appName": "Platformer App",
1002
1001
  "showTopBar": true,
1003
1002
  "children": [
1004
1003
  {
1005
- "highScore": "@entity.highScore",
1006
1004
  "type": "score-board",
1007
- "combo": "@entity.combo",
1005
+ "highScore": "@entity.highScore",
1008
1006
  "multiplier": "@entity.multiplier",
1009
1007
  "score": "@entity.score",
1008
+ "combo": "@entity.combo",
1010
1009
  "level": "@entity.level"
1011
1010
  }
1012
- ]
1011
+ ],
1012
+ "appName": "Platformer App"
1013
1013
  }
1014
1014
  ]
1015
1015
  ]
@@ -1041,19 +1041,19 @@
1041
1041
  "render-ui",
1042
1042
  "main",
1043
1043
  {
1044
- "appName": "Platformer App",
1045
1044
  "showTopBar": true,
1046
1045
  "children": [
1047
1046
  {
1048
- "type": "score-board",
1049
- "highScore": "@entity.highScore",
1050
1047
  "score": "@entity.score",
1048
+ "type": "score-board",
1051
1049
  "combo": "@entity.combo",
1050
+ "multiplier": "@entity.multiplier",
1052
1051
  "level": "@entity.level",
1053
- "multiplier": "@entity.multiplier"
1052
+ "highScore": "@entity.highScore"
1054
1053
  }
1055
1054
  ],
1056
- "type": "game-shell"
1055
+ "type": "game-shell",
1056
+ "appName": "Platformer App"
1057
1057
  }
1058
1058
  ]
1059
1059
  ]
@@ -1074,17 +1074,17 @@
1074
1074
  {
1075
1075
  "appName": "Platformer App",
1076
1076
  "showTopBar": true,
1077
+ "type": "game-shell",
1077
1078
  "children": [
1078
1079
  {
1079
- "type": "score-board",
1080
- "highScore": "@entity.highScore",
1081
- "combo": "@entity.combo",
1080
+ "multiplier": "@entity.multiplier",
1082
1081
  "level": "@entity.level",
1082
+ "type": "score-board",
1083
1083
  "score": "@entity.score",
1084
- "multiplier": "@entity.multiplier"
1084
+ "highScore": "@entity.highScore",
1085
+ "combo": "@entity.combo"
1085
1086
  }
1086
- ],
1087
- "type": "game-shell"
1087
+ ]
1088
1088
  }
1089
1089
  ]
1090
1090
  ]
@@ -1115,17 +1115,17 @@
1115
1115
  {
1116
1116
  "children": [
1117
1117
  {
1118
- "combo": "@entity.combo",
1119
- "multiplier": "@entity.multiplier",
1120
1118
  "highScore": "@entity.highScore",
1119
+ "combo": "@entity.combo",
1121
1120
  "type": "score-board",
1122
1121
  "score": "@entity.score",
1122
+ "multiplier": "@entity.multiplier",
1123
1123
  "level": "@entity.level"
1124
1124
  }
1125
1125
  ],
1126
1126
  "type": "game-shell",
1127
- "showTopBar": true,
1128
- "appName": "Platformer App"
1127
+ "appName": "Platformer App",
1128
+ "showTopBar": true
1129
1129
  }
1130
1130
  ]
1131
1131
  ]
@@ -1193,7 +1193,7 @@
1193
1193
  "event": "CollectibleLoaded",
1194
1194
  "description": "Fired when Collectible finishes loading",
1195
1195
  "scope": "internal",
1196
- "payload": [
1196
+ "payloadSchema": [
1197
1197
  {
1198
1198
  "name": "data",
1199
1199
  "type": "[Collectible]"
@@ -1204,7 +1204,7 @@
1204
1204
  "event": "CollectibleLoadFailed",
1205
1205
  "description": "Fired when Collectible fails to load",
1206
1206
  "scope": "internal",
1207
- "payload": [
1207
+ "payloadSchema": [
1208
1208
  {
1209
1209
  "name": "error",
1210
1210
  "type": "string"
@@ -1257,7 +1257,7 @@
1257
1257
  {
1258
1258
  "key": "CollectibleLoaded",
1259
1259
  "name": "Collectible loaded",
1260
- "payload": [
1260
+ "payloadSchema": [
1261
1261
  {
1262
1262
  "name": "data",
1263
1263
  "type": "[Collectible]"
@@ -1267,7 +1267,7 @@
1267
1267
  {
1268
1268
  "key": "CollectibleLoadFailed",
1269
1269
  "name": "Collectible load failed",
1270
- "payload": [
1270
+ "payloadSchema": [
1271
1271
  {
1272
1272
  "name": "error",
1273
1273
  "type": "string"
@@ -1290,8 +1290,8 @@
1290
1290
  "Collectible",
1291
1291
  {
1292
1292
  "emit": {
1293
- "failure": "CollectibleLoadFailed",
1294
- "success": "CollectibleLoaded"
1293
+ "success": "CollectibleLoaded",
1294
+ "failure": "CollectibleLoadFailed"
1295
1295
  }
1296
1296
  }
1297
1297
  ],
@@ -1299,22 +1299,22 @@
1299
1299
  "render-ui",
1300
1300
  "main",
1301
1301
  {
1302
- "direction": "vertical",
1303
- "gap": "md",
1304
- "className": "py-12",
1305
- "type": "stack",
1306
- "align": "center",
1307
1302
  "children": [
1308
1303
  {
1309
1304
  "type": "spinner"
1310
1305
  },
1311
1306
  {
1312
- "type": "typography",
1313
1307
  "color": "muted",
1314
1308
  "content": "Loading…",
1315
- "variant": "caption"
1309
+ "variant": "caption",
1310
+ "type": "typography"
1316
1311
  }
1317
- ]
1312
+ ],
1313
+ "direction": "vertical",
1314
+ "type": "stack",
1315
+ "align": "center",
1316
+ "gap": "md",
1317
+ "className": "py-12"
1318
1318
  }
1319
1319
  ]
1320
1320
  ]
@@ -1328,51 +1328,55 @@
1328
1328
  "render-ui",
1329
1329
  "main",
1330
1330
  {
1331
+ "type": "game-shell",
1332
+ "appName": "Platformer App",
1333
+ "showTopBar": true,
1331
1334
  "children": [
1332
1335
  {
1336
+ "type": "stack",
1333
1337
  "direction": "vertical",
1334
- "className": "max-w-5xl mx-auto w-full",
1335
1338
  "gap": "lg",
1339
+ "className": "max-w-5xl mx-auto w-full",
1336
1340
  "children": [
1337
1341
  {
1342
+ "direction": "horizontal",
1343
+ "justify": "between",
1344
+ "gap": "md",
1345
+ "align": "center",
1346
+ "type": "stack",
1338
1347
  "children": [
1339
1348
  {
1340
- "align": "center",
1349
+ "gap": "sm",
1341
1350
  "children": [
1342
1351
  {
1343
- "type": "icon",
1344
- "name": "package"
1352
+ "name": "package",
1353
+ "type": "icon"
1345
1354
  },
1346
1355
  {
1347
- "type": "typography",
1348
1356
  "content": "Collectibles",
1357
+ "type": "typography",
1349
1358
  "variant": "h2"
1350
1359
  }
1351
1360
  ],
1352
- "gap": "sm",
1361
+ "direction": "horizontal",
1353
1362
  "type": "stack",
1354
- "direction": "horizontal"
1363
+ "align": "center"
1355
1364
  },
1356
1365
  {
1357
- "gap": "sm",
1358
1366
  "children": [
1359
1367
  {
1368
+ "type": "button",
1369
+ "variant": "primary",
1360
1370
  "label": "Add Collectible",
1361
1371
  "icon": "plus",
1362
- "type": "button",
1363
- "action": "ADD_ITEM",
1364
- "variant": "primary"
1372
+ "action": "ADD_ITEM"
1365
1373
  }
1366
1374
  ],
1367
- "direction": "horizontal",
1368
- "type": "stack"
1375
+ "gap": "sm",
1376
+ "type": "stack",
1377
+ "direction": "horizontal"
1369
1378
  }
1370
- ],
1371
- "type": "stack",
1372
- "justify": "between",
1373
- "gap": "md",
1374
- "align": "center",
1375
- "direction": "horizontal"
1379
+ ]
1376
1380
  },
1377
1381
  {
1378
1382
  "type": "divider"
@@ -1381,8 +1385,8 @@
1381
1385
  "itemActions": [
1382
1386
  {
1383
1387
  "event": "USE_ITEM",
1384
- "variant": "ghost",
1385
- "label": "Use"
1388
+ "label": "Use",
1389
+ "variant": "ghost"
1386
1390
  },
1387
1391
  {
1388
1392
  "event": "DROP",
@@ -1392,47 +1396,43 @@
1392
1396
  ],
1393
1397
  "columns": [
1394
1398
  {
1399
+ "label": "Name",
1395
1400
  "variant": "h4",
1396
1401
  "icon": "package",
1397
- "name": "name",
1398
- "label": "Name"
1402
+ "name": "name"
1399
1403
  },
1400
1404
  {
1401
- "variant": "badge",
1402
1405
  "name": "type",
1406
+ "variant": "badge",
1407
+ "label": "Type",
1403
1408
  "colorMap": {
1404
- "error": "destructive",
1405
1409
  "scheduled": "warning",
1406
- "pending": "warning",
1407
- "cancelled": "destructive",
1408
- "failed": "destructive",
1409
- "active": "success",
1410
1410
  "completed": "success",
1411
- "done": "success",
1412
- "inactive": "neutral",
1413
1411
  "archived": "neutral",
1414
1412
  "disabled": "neutral",
1415
- "draft": "warning"
1416
- },
1417
- "label": "Type"
1413
+ "error": "destructive",
1414
+ "cancelled": "destructive",
1415
+ "active": "success",
1416
+ "failed": "destructive",
1417
+ "done": "success",
1418
+ "draft": "warning",
1419
+ "pending": "warning",
1420
+ "inactive": "neutral"
1421
+ }
1418
1422
  },
1419
1423
  {
1420
1424
  "variant": "caption",
1421
- "label": "Quantity",
1422
- "name": "quantity"
1425
+ "name": "quantity",
1426
+ "label": "Quantity"
1423
1427
  }
1424
1428
  ],
1425
1429
  "type": "data-grid",
1426
1430
  "fields": [],
1427
1431
  "entity": "@payload.data"
1428
1432
  }
1429
- ],
1430
- "type": "stack"
1433
+ ]
1431
1434
  }
1432
- ],
1433
- "appName": "Platformer App",
1434
- "type": "game-shell",
1435
- "showTopBar": true
1435
+ ]
1436
1436
  }
1437
1437
  ]
1438
1438
  ]
@@ -1446,36 +1446,36 @@
1446
1446
  "render-ui",
1447
1447
  "main",
1448
1448
  {
1449
- "direction": "vertical",
1450
- "className": "py-12",
1451
1449
  "gap": "md",
1452
1450
  "align": "center",
1453
1451
  "children": [
1454
1452
  {
1455
- "color": "destructive",
1453
+ "type": "icon",
1456
1454
  "name": "alert-triangle",
1457
- "type": "icon"
1455
+ "color": "destructive"
1458
1456
  },
1459
1457
  {
1460
- "content": "Failed to load collectible",
1461
1458
  "type": "typography",
1462
- "variant": "h3"
1459
+ "variant": "h3",
1460
+ "content": "Failed to load collectible"
1463
1461
  },
1464
1462
  {
1465
- "content": "@payload.error",
1466
- "type": "typography",
1467
1463
  "variant": "body",
1468
- "color": "muted"
1464
+ "color": "muted",
1465
+ "type": "typography",
1466
+ "content": "@payload.error"
1469
1467
  },
1470
1468
  {
1471
- "type": "button",
1472
1469
  "label": "Retry",
1473
1470
  "variant": "primary",
1474
- "action": "INIT",
1475
- "icon": "rotate-ccw"
1471
+ "icon": "rotate-ccw",
1472
+ "type": "button",
1473
+ "action": "INIT"
1476
1474
  }
1477
1475
  ],
1478
- "type": "stack"
1476
+ "type": "stack",
1477
+ "className": "py-12",
1478
+ "direction": "vertical"
1479
1479
  }
1480
1480
  ]
1481
1481
  ]
@@ -1496,7 +1496,7 @@
1496
1496
  "event": "CollectibleLoadFailed",
1497
1497
  "description": "Fired when Collectible fails to load",
1498
1498
  "scope": "internal",
1499
- "payload": [
1499
+ "payloadSchema": [
1500
1500
  {
1501
1501
  "name": "error",
1502
1502
  "type": "string"
@@ -1511,7 +1511,7 @@
1511
1511
  "event": "CollectibleLoaded",
1512
1512
  "description": "Fired when Collectible finishes loading",
1513
1513
  "scope": "internal",
1514
- "payload": [
1514
+ "payloadSchema": [
1515
1515
  {
1516
1516
  "name": "data",
1517
1517
  "type": "[Collectible]"
@@ -1521,7 +1521,7 @@
1521
1521
  {
1522
1522
  "event": "CollectibleSaveFailed",
1523
1523
  "scope": "internal",
1524
- "payload": [
1524
+ "payloadSchema": [
1525
1525
  {
1526
1526
  "name": "error",
1527
1527
  "type": "string"
@@ -1535,7 +1535,7 @@
1535
1535
  {
1536
1536
  "event": "CollectibleSaved",
1537
1537
  "scope": "internal",
1538
- "payload": [
1538
+ "payloadSchema": [
1539
1539
  {
1540
1540
  "name": "id",
1541
1541
  "type": "string"
@@ -1569,7 +1569,7 @@
1569
1569
  {
1570
1570
  "key": "SAVE",
1571
1571
  "name": "Save",
1572
- "payload": [
1572
+ "payloadSchema": [
1573
1573
  {
1574
1574
  "name": "data",
1575
1575
  "type": "string"
@@ -1583,7 +1583,7 @@
1583
1583
  {
1584
1584
  "key": "CollectibleLoadFailed",
1585
1585
  "name": "Collectible load failed",
1586
- "payload": [
1586
+ "payloadSchema": [
1587
1587
  {
1588
1588
  "name": "error",
1589
1589
  "type": "string"
@@ -1597,7 +1597,7 @@
1597
1597
  {
1598
1598
  "key": "CollectibleLoaded",
1599
1599
  "name": "Collectible loaded",
1600
- "payload": [
1600
+ "payloadSchema": [
1601
1601
  {
1602
1602
  "name": "data",
1603
1603
  "type": "[Collectible]"
@@ -1607,7 +1607,7 @@
1607
1607
  {
1608
1608
  "key": "CollectibleSaveFailed",
1609
1609
  "name": "Collectible save failed",
1610
- "payload": [
1610
+ "payloadSchema": [
1611
1611
  {
1612
1612
  "name": "error",
1613
1613
  "type": "string"
@@ -1621,7 +1621,7 @@
1621
1621
  {
1622
1622
  "key": "CollectibleSaved",
1623
1623
  "name": "Collectible saved",
1624
- "payload": [
1624
+ "payloadSchema": [
1625
1625
  {
1626
1626
  "name": "id",
1627
1627
  "type": "string"
@@ -1660,40 +1660,40 @@
1660
1660
  "render-ui",
1661
1661
  "modal",
1662
1662
  {
1663
+ "direction": "vertical",
1663
1664
  "gap": "md",
1664
1665
  "type": "stack",
1665
- "direction": "vertical",
1666
1666
  "children": [
1667
1667
  {
1668
- "type": "stack",
1669
1668
  "direction": "horizontal",
1669
+ "type": "stack",
1670
+ "gap": "sm",
1670
1671
  "children": [
1671
1672
  {
1672
- "name": "plus-circle",
1673
- "type": "icon"
1673
+ "type": "icon",
1674
+ "name": "plus-circle"
1674
1675
  },
1675
1676
  {
1676
1677
  "variant": "h3",
1677
- "type": "typography",
1678
- "content": "Add Collectible"
1678
+ "content": "Add Collectible",
1679
+ "type": "typography"
1679
1680
  }
1680
- ],
1681
- "gap": "sm"
1681
+ ]
1682
1682
  },
1683
1683
  {
1684
1684
  "type": "divider"
1685
1685
  },
1686
1686
  {
1687
- "submitEvent": "SAVE",
1688
- "type": "form-section",
1689
- "mode": "create",
1690
- "cancelEvent": "CLOSE",
1691
1687
  "fields": [
1692
1688
  "name",
1693
1689
  "type",
1694
1690
  "quantity",
1695
1691
  "rarity"
1696
- ]
1692
+ ],
1693
+ "mode": "create",
1694
+ "submitEvent": "SAVE",
1695
+ "type": "form-section",
1696
+ "cancelEvent": "CLOSE"
1697
1697
  }
1698
1698
  ]
1699
1699
  }
@@ -1736,8 +1736,8 @@
1736
1736
  "@payload.data",
1737
1737
  {
1738
1738
  "emit": {
1739
- "success": "CollectibleSaved",
1740
- "failure": "CollectibleSaveFailed"
1739
+ "failure": "CollectibleSaveFailed",
1740
+ "success": "CollectibleSaved"
1741
1741
  }
1742
1742
  }
1743
1743
  ],
@@ -1775,7 +1775,7 @@
1775
1775
  "event": "CollectibleLoadFailed",
1776
1776
  "description": "Fired when Collectible fails to load",
1777
1777
  "scope": "internal",
1778
- "payload": [
1778
+ "payloadSchema": [
1779
1779
  {
1780
1780
  "name": "error",
1781
1781
  "type": "string"
@@ -1790,7 +1790,7 @@
1790
1790
  "event": "CollectibleLoaded",
1791
1791
  "description": "Fired when Collectible finishes loading",
1792
1792
  "scope": "internal",
1793
- "payload": [
1793
+ "payloadSchema": [
1794
1794
  {
1795
1795
  "name": "data",
1796
1796
  "type": "[Collectible]"
@@ -1800,7 +1800,7 @@
1800
1800
  {
1801
1801
  "event": "CollectibleUpdateFailed",
1802
1802
  "scope": "internal",
1803
- "payload": [
1803
+ "payloadSchema": [
1804
1804
  {
1805
1805
  "name": "error",
1806
1806
  "type": "string"
@@ -1814,7 +1814,7 @@
1814
1814
  {
1815
1815
  "event": "CollectibleUpdated",
1816
1816
  "scope": "internal",
1817
- "payload": [
1817
+ "payloadSchema": [
1818
1818
  {
1819
1819
  "name": "id",
1820
1820
  "type": "string"
@@ -1840,7 +1840,7 @@
1840
1840
  {
1841
1841
  "key": "USE_ITEM",
1842
1842
  "name": "Use Item",
1843
- "payload": [
1843
+ "payloadSchema": [
1844
1844
  {
1845
1845
  "name": "id",
1846
1846
  "type": "string"
@@ -1854,7 +1854,7 @@
1854
1854
  {
1855
1855
  "key": "SAVE",
1856
1856
  "name": "Save",
1857
- "payload": [
1857
+ "payloadSchema": [
1858
1858
  {
1859
1859
  "name": "data",
1860
1860
  "type": "string"
@@ -1868,7 +1868,7 @@
1868
1868
  {
1869
1869
  "key": "CollectibleLoadFailed",
1870
1870
  "name": "Collectible load failed",
1871
- "payload": [
1871
+ "payloadSchema": [
1872
1872
  {
1873
1873
  "name": "error",
1874
1874
  "type": "string"
@@ -1882,7 +1882,7 @@
1882
1882
  {
1883
1883
  "key": "CollectibleLoaded",
1884
1884
  "name": "Collectible loaded",
1885
- "payload": [
1885
+ "payloadSchema": [
1886
1886
  {
1887
1887
  "name": "data",
1888
1888
  "type": "[Collectible]"
@@ -1892,7 +1892,7 @@
1892
1892
  {
1893
1893
  "key": "CollectibleUpdateFailed",
1894
1894
  "name": "Collectible update failed",
1895
- "payload": [
1895
+ "payloadSchema": [
1896
1896
  {
1897
1897
  "name": "error",
1898
1898
  "type": "string"
@@ -1906,7 +1906,7 @@
1906
1906
  {
1907
1907
  "key": "CollectibleUpdated",
1908
1908
  "name": "Collectible updated",
1909
- "payload": [
1909
+ "payloadSchema": [
1910
1910
  {
1911
1911
  "name": "id",
1912
1912
  "type": "string"
@@ -1935,11 +1935,11 @@
1935
1935
  "fetch",
1936
1936
  "Collectible",
1937
1937
  {
1938
+ "id": "@payload.id",
1938
1939
  "emit": {
1939
- "success": "CollectibleLoaded",
1940
- "failure": "CollectibleLoadFailed"
1941
- },
1942
- "id": "@payload.id"
1940
+ "failure": "CollectibleLoadFailed",
1941
+ "success": "CollectibleLoaded"
1942
+ }
1943
1943
  }
1944
1944
  ],
1945
1945
  [
@@ -1947,57 +1947,57 @@
1947
1947
  "modal",
1948
1948
  {
1949
1949
  "type": "stack",
1950
+ "direction": "vertical",
1950
1951
  "gap": "md",
1951
- "align": "center",
1952
1952
  "children": [
1953
1953
  {
1954
+ "type": "stack",
1954
1955
  "children": [
1955
1956
  {
1956
- "type": "icon",
1957
- "name": "zap"
1957
+ "name": "zap",
1958
+ "type": "icon"
1958
1959
  },
1959
1960
  {
1960
- "variant": "h3",
1961
1961
  "content": "Use Collectible",
1962
- "type": "typography"
1962
+ "type": "typography",
1963
+ "variant": "h3"
1963
1964
  }
1964
1965
  ],
1965
- "align": "center",
1966
1966
  "direction": "horizontal",
1967
- "gap": "sm",
1968
- "type": "stack"
1967
+ "align": "center",
1968
+ "gap": "sm"
1969
1969
  },
1970
1970
  {
1971
1971
  "type": "divider"
1972
1972
  },
1973
1973
  {
1974
+ "content": "@entity.name",
1974
1975
  "variant": "body",
1975
- "type": "typography",
1976
- "content": "@entity.name"
1976
+ "type": "typography"
1977
1977
  },
1978
1978
  {
1979
- "gap": "sm",
1980
- "type": "stack",
1981
- "direction": "horizontal",
1982
- "justify": "center",
1983
1979
  "children": [
1984
1980
  {
1985
- "label": "Cancel",
1986
1981
  "type": "button",
1982
+ "label": "Cancel",
1987
1983
  "action": "CLOSE",
1988
1984
  "variant": "ghost"
1989
1985
  },
1990
1986
  {
1987
+ "icon": "check",
1991
1988
  "label": "Confirm Use",
1992
- "action": "SAVE",
1993
- "type": "button",
1994
1989
  "variant": "primary",
1995
- "icon": "check"
1990
+ "action": "SAVE",
1991
+ "type": "button"
1996
1992
  }
1997
- ]
1993
+ ],
1994
+ "type": "stack",
1995
+ "gap": "sm",
1996
+ "justify": "center",
1997
+ "direction": "horizontal"
1998
1998
  }
1999
1999
  ],
2000
- "direction": "vertical"
2000
+ "align": "center"
2001
2001
  }
2002
2002
  ]
2003
2003
  ]
@@ -2076,7 +2076,7 @@
2076
2076
  {
2077
2077
  "event": "CollectibleDeleteFailed",
2078
2078
  "scope": "internal",
2079
- "payload": [
2079
+ "payloadSchema": [
2080
2080
  {
2081
2081
  "name": "error",
2082
2082
  "type": "string"
@@ -2090,7 +2090,7 @@
2090
2090
  {
2091
2091
  "event": "CollectibleDeleted",
2092
2092
  "scope": "internal",
2093
- "payload": [
2093
+ "payloadSchema": [
2094
2094
  {
2095
2095
  "name": "id",
2096
2096
  "type": "string"
@@ -2101,7 +2101,7 @@
2101
2101
  "event": "CollectibleLoadFailed",
2102
2102
  "description": "Fired when Collectible fails to load",
2103
2103
  "scope": "internal",
2104
- "payload": [
2104
+ "payloadSchema": [
2105
2105
  {
2106
2106
  "name": "error",
2107
2107
  "type": "string"
@@ -2116,7 +2116,7 @@
2116
2116
  "event": "CollectibleLoaded",
2117
2117
  "description": "Fired when Collectible finishes loading",
2118
2118
  "scope": "internal",
2119
- "payload": [
2119
+ "payloadSchema": [
2120
2120
  {
2121
2121
  "name": "data",
2122
2122
  "type": "[Collectible]"
@@ -2142,7 +2142,7 @@
2142
2142
  {
2143
2143
  "key": "DROP",
2144
2144
  "name": "Drop",
2145
- "payload": [
2145
+ "payloadSchema": [
2146
2146
  {
2147
2147
  "name": "id",
2148
2148
  "type": "string"
@@ -2164,7 +2164,7 @@
2164
2164
  {
2165
2165
  "key": "CollectibleDeleteFailed",
2166
2166
  "name": "Collectible delete failed",
2167
- "payload": [
2167
+ "payloadSchema": [
2168
2168
  {
2169
2169
  "name": "error",
2170
2170
  "type": "string"
@@ -2178,7 +2178,7 @@
2178
2178
  {
2179
2179
  "key": "CollectibleDeleted",
2180
2180
  "name": "Collectible deleted",
2181
- "payload": [
2181
+ "payloadSchema": [
2182
2182
  {
2183
2183
  "name": "id",
2184
2184
  "type": "string"
@@ -2188,7 +2188,7 @@
2188
2188
  {
2189
2189
  "key": "CollectibleLoadFailed",
2190
2190
  "name": "Collectible load failed",
2191
- "payload": [
2191
+ "payloadSchema": [
2192
2192
  {
2193
2193
  "name": "error",
2194
2194
  "type": "string"
@@ -2202,7 +2202,7 @@
2202
2202
  {
2203
2203
  "key": "CollectibleLoaded",
2204
2204
  "name": "Collectible loaded",
2205
- "payload": [
2205
+ "payloadSchema": [
2206
2206
  {
2207
2207
  "name": "data",
2208
2208
  "type": "[Collectible]"
@@ -2236,24 +2236,22 @@
2236
2236
  "fetch",
2237
2237
  "Collectible",
2238
2238
  {
2239
+ "id": "@payload.id",
2239
2240
  "emit": {
2240
2241
  "failure": "CollectibleLoadFailed",
2241
2242
  "success": "CollectibleLoaded"
2242
- },
2243
- "id": "@payload.id"
2243
+ }
2244
2244
  }
2245
2245
  ],
2246
2246
  [
2247
2247
  "render-ui",
2248
2248
  "modal",
2249
2249
  {
2250
- "direction": "vertical",
2251
2250
  "gap": "md",
2251
+ "direction": "vertical",
2252
2252
  "children": [
2253
2253
  {
2254
2254
  "type": "stack",
2255
- "direction": "horizontal",
2256
- "align": "center",
2257
2255
  "gap": "sm",
2258
2256
  "children": [
2259
2257
  {
@@ -2265,35 +2263,37 @@
2265
2263
  "variant": "h3",
2266
2264
  "type": "typography"
2267
2265
  }
2268
- ]
2266
+ ],
2267
+ "direction": "horizontal",
2268
+ "align": "center"
2269
2269
  },
2270
2270
  {
2271
2271
  "type": "divider"
2272
2272
  },
2273
2273
  {
2274
- "variant": "error",
2274
+ "message": "Are you sure you want to drop this collectible?",
2275
2275
  "type": "alert",
2276
- "message": "Are you sure you want to drop this collectible?"
2276
+ "variant": "error"
2277
2277
  },
2278
2278
  {
2279
+ "justify": "end",
2279
2280
  "children": [
2280
2281
  {
2281
- "action": "CANCEL",
2282
- "label": "Cancel",
2282
+ "variant": "ghost",
2283
2283
  "type": "button",
2284
- "variant": "ghost"
2284
+ "action": "CANCEL",
2285
+ "label": "Cancel"
2285
2286
  },
2286
2287
  {
2287
- "action": "CONFIRM_DROP",
2288
- "icon": "check",
2289
- "label": "Drop",
2290
2288
  "type": "button",
2291
- "variant": "danger"
2289
+ "variant": "danger",
2290
+ "icon": "check",
2291
+ "action": "CONFIRM_DROP",
2292
+ "label": "Drop"
2292
2293
  }
2293
2294
  ],
2294
- "direction": "horizontal",
2295
2295
  "gap": "sm",
2296
- "justify": "end",
2296
+ "direction": "horizontal",
2297
2297
  "type": "stack"
2298
2298
  }
2299
2299
  ],
@@ -2314,8 +2314,8 @@
2314
2314
  "@entity.pendingId",
2315
2315
  {
2316
2316
  "emit": {
2317
- "success": "CollectibleDeleted",
2318
- "failure": "CollectibleDeleteFailed"
2317
+ "failure": "CollectibleDeleteFailed",
2318
+ "success": "CollectibleDeleted"
2319
2319
  }
2320
2320
  }
2321
2321
  ],
@@ -2410,4 +2410,4 @@
2410
2410
  ]
2411
2411
  }
2412
2412
  ]
2413
- }
2413
+ }