@almadar/std 16.198.0 → 16.200.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 (218) hide show
  1. package/behaviors/lolo/ui/avl/atoms/ui-behavior-view.lolo +2 -2
  2. package/behaviors/lolo/ui/avl/atoms/ui-module-card.lolo +2 -2
  3. package/behaviors/lolo/ui/core/atoms/std-app-layout.lolo +1 -1
  4. package/behaviors/lolo/ui/core/atoms/std-file-store.lolo +1 -1
  5. package/behaviors/lolo/ui/core/atoms/ui-conditional-wrapper.lolo +11 -4
  6. package/behaviors/lolo/ui/core/atoms/ui-icon.lolo +1 -1
  7. package/behaviors/lolo/ui/core/atoms/ui-input.lolo +10 -4
  8. package/behaviors/lolo/ui/core/atoms/ui-select.lolo +6 -4
  9. package/behaviors/lolo/ui/core/molecules/ui-branching-logic-builder.lolo +5 -5
  10. package/behaviors/lolo/ui/core/molecules/ui-doc-sidebar.lolo +1 -1
  11. package/behaviors/lolo/ui/core/molecules/ui-document-details.lolo +8 -1
  12. package/behaviors/lolo/ui/core/molecules/ui-drawer.lolo +1 -1
  13. package/behaviors/lolo/ui/core/molecules/ui-edge-decoration.lolo +1 -1
  14. package/behaviors/lolo/ui/core/molecules/ui-file-tree.lolo +1 -1
  15. package/behaviors/lolo/ui/core/molecules/ui-floating-action-button.lolo +1 -1
  16. package/behaviors/lolo/ui/core/molecules/ui-gradient-divider.lolo +1 -1
  17. package/behaviors/lolo/ui/core/molecules/ui-import-preview-tree.lolo +8 -1
  18. package/behaviors/lolo/ui/core/molecules/ui-input-group.lolo +10 -4
  19. package/behaviors/lolo/ui/core/molecules/ui-menu.lolo +1 -1
  20. package/behaviors/lolo/ui/core/molecules/ui-navigation.lolo +1 -1
  21. package/behaviors/lolo/ui/core/molecules/ui-orbital-visualization.lolo +3 -3
  22. package/behaviors/lolo/ui/core/molecules/ui-reply-tree.lolo +1 -1
  23. package/behaviors/lolo/ui/core/molecules/ui-sidebar.lolo +1 -1
  24. package/behaviors/lolo/ui/core/molecules/ui-swipeable-row.lolo +3 -3
  25. package/behaviors/lolo/ui/core/molecules/ui-wizard-container.lolo +24 -17
  26. package/behaviors/lolo/ui/core/organisms/ui-entity-cards.lolo +2 -2
  27. package/behaviors/lolo/ui/core/organisms/ui-entity-list.lolo +1 -1
  28. package/behaviors/lolo/ui/core/organisms/ui-entity-table.lolo +2 -2
  29. package/behaviors/lolo/ui/core/organisms/ui-form-section.lolo +15 -8
  30. package/behaviors/lolo/ui/core/organisms/ui-form.lolo +15 -8
  31. package/behaviors/lolo/ui/core/organisms/ui-stat-card.lolo +1 -1
  32. package/behaviors/lolo/ui/core/organisms/ui-subagent-trace-panel.lolo +3 -3
  33. package/behaviors/lolo/ui/core/templates/ui-dashboard-layout.lolo +1 -1
  34. package/behaviors/lolo/ui/game/atoms/std-fx-narrative.lolo +126 -0
  35. package/behaviors/lolo/ui/game/atoms/std-pickup.lolo +104 -0
  36. package/behaviors/lolo/ui/game/atoms/std-platformer-body.lolo +39 -19
  37. package/behaviors/lolo/ui/game/atoms/ui-control-button.lolo +3 -3
  38. package/behaviors/lolo/ui/game/atoms/ui-control-grid.lolo +1 -1
  39. package/behaviors/lolo/ui/game/atoms/ui-game-hud.lolo +1 -1
  40. package/behaviors/lolo/ui/game/atoms/ui-game-menu.lolo +3 -3
  41. package/behaviors/lolo/ui/game/atoms/ui-stat-badge.lolo +3 -3
  42. package/behaviors/registry/ui/avl/atoms/ui-behavior-view.orb +389 -3
  43. package/behaviors/registry/ui/avl/atoms/ui-module-card.orb +389 -3
  44. package/behaviors/registry/ui/core/atoms/std-app-layout.orb +93 -2
  45. package/behaviors/registry/ui/core/atoms/std-file-store.orb +101 -2
  46. package/behaviors/registry/ui/core/atoms/ui-atlas-image.orb +13 -1
  47. package/behaviors/registry/ui/core/atoms/ui-atlas-panel.orb +13 -1
  48. package/behaviors/registry/ui/core/atoms/ui-badge.orb +56 -1
  49. package/behaviors/registry/ui/core/atoms/ui-button.orb +56 -1
  50. package/behaviors/registry/ui/core/atoms/ui-conditional-wrapper.orb +277 -5
  51. package/behaviors/registry/ui/core/atoms/ui-game-icon.orb +56 -1
  52. package/behaviors/registry/ui/core/atoms/ui-icon.orb +1 -10
  53. package/behaviors/registry/ui/core/atoms/ui-input.orb +42 -7
  54. package/behaviors/registry/ui/core/atoms/ui-law-reference-tooltip.orb +27 -1
  55. package/behaviors/registry/ui/core/atoms/ui-select.orb +69 -9
  56. package/behaviors/registry/ui/core/molecules/ui-accordion.orb +30 -1
  57. package/behaviors/registry/ui/core/molecules/ui-branching-logic-builder.orb +76 -13
  58. package/behaviors/registry/ui/core/molecules/ui-breadcrumb.orb +30 -1
  59. package/behaviors/registry/ui/core/molecules/ui-chart-legend.orb +15 -1
  60. package/behaviors/registry/ui/core/molecules/ui-chart.orb +133 -1
  61. package/behaviors/registry/ui/core/molecules/ui-code-block.orb +77 -1
  62. package/behaviors/registry/ui/core/molecules/ui-confirm-dialog.orb +22 -1
  63. package/behaviors/registry/ui/core/molecules/ui-content-renderer.orb +34 -1
  64. package/behaviors/registry/ui/core/molecules/ui-data-grid.orb +99 -1
  65. package/behaviors/registry/ui/core/molecules/ui-data-list.orb +118 -1
  66. package/behaviors/registry/ui/core/molecules/ui-date-range-picker.orb +27 -1
  67. package/behaviors/registry/ui/core/molecules/ui-date-range-selector.orb +15 -1
  68. package/behaviors/registry/ui/core/molecules/ui-doc-breadcrumb.orb +14 -1
  69. package/behaviors/registry/ui/core/molecules/ui-doc-pagination.orb +35 -1
  70. package/behaviors/registry/ui/core/molecules/ui-doc-sidebar.orb +46 -2
  71. package/behaviors/registry/ui/core/molecules/ui-doc-toc.orb +20 -1
  72. package/behaviors/registry/ui/core/molecules/ui-document-details.orb +65 -3
  73. package/behaviors/registry/ui/core/molecules/ui-document-panel.orb +22 -1
  74. package/behaviors/registry/ui/core/molecules/ui-document-viewer.orb +60 -1
  75. package/behaviors/registry/ui/core/molecules/ui-drawer.orb +1 -8
  76. package/behaviors/registry/ui/core/molecules/ui-edge-decoration.orb +1 -9
  77. package/behaviors/registry/ui/core/molecules/ui-feature-grid.orb +39 -1
  78. package/behaviors/registry/ui/core/molecules/ui-file-tree.orb +86 -2
  79. package/behaviors/registry/ui/core/molecules/ui-filter-group.orb +39 -1
  80. package/behaviors/registry/ui/core/molecules/ui-floating-action-button.orb +29 -10
  81. package/behaviors/registry/ui/core/molecules/ui-form-actions.orb +85 -1
  82. package/behaviors/registry/ui/core/molecules/ui-form-layout.orb +22 -1
  83. package/behaviors/registry/ui/core/molecules/ui-fx-overlay.orb +76 -1
  84. package/behaviors/registry/ui/core/molecules/ui-gradient-divider.orb +1 -10
  85. package/behaviors/registry/ui/core/molecules/ui-graph-canvas.orb +421 -1
  86. package/behaviors/registry/ui/core/molecules/ui-graph-view.orb +92 -1
  87. package/behaviors/registry/ui/core/molecules/ui-header.orb +59 -1
  88. package/behaviors/registry/ui/core/molecules/ui-import-preview-tree.orb +125 -2
  89. package/behaviors/registry/ui/core/molecules/ui-import-progress.orb +17 -1
  90. package/behaviors/registry/ui/core/molecules/ui-import-source-picker.orb +39 -1
  91. package/behaviors/registry/ui/core/molecules/ui-input-group.orb +42 -7
  92. package/behaviors/registry/ui/core/molecules/ui-jazari-state-machine.orb +22 -1
  93. package/behaviors/registry/ui/core/molecules/ui-lightbox.orb +17 -1
  94. package/behaviors/registry/ui/core/molecules/ui-likert-scale.orb +15 -1
  95. package/behaviors/registry/ui/core/molecules/ui-line-chart.orb +18 -1
  96. package/behaviors/registry/ui/core/molecules/ui-map-view.orb +109 -1
  97. package/behaviors/registry/ui/core/molecules/ui-matrix-question.orb +27 -1
  98. package/behaviors/registry/ui/core/molecules/ui-menu.orb +86 -2
  99. package/behaviors/registry/ui/core/molecules/ui-meter.orb +57 -1
  100. package/behaviors/registry/ui/core/molecules/ui-navigation.orb +99 -2
  101. package/behaviors/registry/ui/core/molecules/ui-option-constraint-group.orb +27 -1
  102. package/behaviors/registry/ui/core/molecules/ui-orbital-visualization.orb +78 -4
  103. package/behaviors/registry/ui/core/molecules/ui-page-header.orb +91 -1
  104. package/behaviors/registry/ui/core/molecules/ui-qr-scanner.orb +20 -1
  105. package/behaviors/registry/ui/core/molecules/ui-relation-select.orb +23 -1
  106. package/behaviors/registry/ui/core/molecules/ui-repeatable-form-section.orb +18 -1
  107. package/behaviors/registry/ui/core/molecules/ui-reply-tree.orb +5 -2
  108. package/behaviors/registry/ui/core/molecules/ui-section.orb +22 -1
  109. package/behaviors/registry/ui/core/molecules/ui-sidebar.orb +99 -2
  110. package/behaviors/registry/ui/core/molecules/ui-signature-pad.orb +22 -1
  111. package/behaviors/registry/ui/core/molecules/ui-social-proof.orb +18 -1
  112. package/behaviors/registry/ui/core/molecules/ui-split.orb +22 -1
  113. package/behaviors/registry/ui/core/molecules/ui-stat-display.orb +22 -1
  114. package/behaviors/registry/ui/core/molecules/ui-swipeable-row.orb +64 -4
  115. package/behaviors/registry/ui/core/molecules/ui-table-view.orb +136 -1
  116. package/behaviors/registry/ui/core/molecules/ui-tabs.orb +301 -1
  117. package/behaviors/registry/ui/core/molecules/ui-upload-drop-zone.orb +25 -1
  118. package/behaviors/registry/ui/core/molecules/ui-version-diff.orb +28 -1
  119. package/behaviors/registry/ui/core/molecules/ui-violation-alert.orb +46 -1
  120. package/behaviors/registry/ui/core/molecules/ui-wizard-container.orb +1607 -50
  121. package/behaviors/registry/ui/core/molecules/ui-wizard-progress.orb +19 -1
  122. package/behaviors/registry/ui/core/organisms/ui-chat-bar.orb +22 -1
  123. package/behaviors/registry/ui/core/organisms/ui-dashboard-grid.orb +40 -1
  124. package/behaviors/registry/ui/core/organisms/ui-detail-panel.orb +196 -1
  125. package/behaviors/registry/ui/core/organisms/ui-drawer-slot.orb +22 -1
  126. package/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +83 -14
  127. package/behaviors/registry/ui/core/organisms/ui-entity-list.orb +64 -8
  128. package/behaviors/registry/ui/core/organisms/ui-entity-table.orb +152 -14
  129. package/behaviors/registry/ui/core/organisms/ui-form-section.orb +1140 -15
  130. package/behaviors/registry/ui/core/organisms/ui-form.orb +1140 -15
  131. package/behaviors/registry/ui/core/organisms/ui-master-detail.orb +22 -1
  132. package/behaviors/registry/ui/core/organisms/ui-media-gallery.orb +71 -1
  133. package/behaviors/registry/ui/core/organisms/ui-modal-slot.orb +22 -1
  134. package/behaviors/registry/ui/core/organisms/ui-segment-renderer.orb +29 -1
  135. package/behaviors/registry/ui/core/organisms/ui-stat-card.orb +61 -7
  136. package/behaviors/registry/ui/core/organisms/ui-state-machine-view.orb +22 -1
  137. package/behaviors/registry/ui/core/organisms/ui-subagent-trace-panel.orb +37 -7
  138. package/behaviors/registry/ui/core/organisms/ui-tabbed-container.orb +31 -1
  139. package/behaviors/registry/ui/core/organisms/ui-timeline.orb +73 -1
  140. package/behaviors/registry/ui/core/organisms/ui-toast-slot.orb +22 -1
  141. package/behaviors/registry/ui/core/templates/ui-dashboard-layout.orb +122 -2
  142. package/behaviors/registry/ui/game/atoms/std-fx-narrative.orb +695 -0
  143. package/behaviors/registry/ui/game/atoms/std-pickup.orb +835 -0
  144. package/behaviors/registry/ui/game/atoms/std-platformer-body.orb +1515 -1041
  145. package/behaviors/registry/ui/game/atoms/ui-action-palette.orb +269 -1
  146. package/behaviors/registry/ui/game/atoms/ui-action-tile.orb +288 -1
  147. package/behaviors/registry/ui/game/atoms/ui-canvas-2d.orb +54 -1
  148. package/behaviors/registry/ui/game/atoms/ui-canvas.orb +311 -1
  149. package/behaviors/registry/ui/game/atoms/ui-choice-button.orb +56 -1
  150. package/behaviors/registry/ui/game/atoms/ui-control-button.orb +59 -20
  151. package/behaviors/registry/ui/game/atoms/ui-control-grid.orb +186 -7
  152. package/behaviors/registry/ui/game/atoms/ui-dialogue-bubble.orb +56 -1
  153. package/behaviors/registry/ui/game/atoms/ui-draw-fx-layer.orb +233 -1
  154. package/behaviors/registry/ui/game/atoms/ui-draw-group.orb +137 -1
  155. package/behaviors/registry/ui/game/atoms/ui-draw-mesh.orb +219 -1
  156. package/behaviors/registry/ui/game/atoms/ui-draw-shape-layer.orb +951 -1
  157. package/behaviors/registry/ui/game/atoms/ui-draw-shape.orb +512 -1
  158. package/behaviors/registry/ui/game/atoms/ui-draw-sprite-layer.orb +270 -1
  159. package/behaviors/registry/ui/game/atoms/ui-draw-sprite.orb +106 -1
  160. package/behaviors/registry/ui/game/atoms/ui-draw-text-layer.orb +85 -1
  161. package/behaviors/registry/ui/game/atoms/ui-draw-text.orb +19 -1
  162. package/behaviors/registry/ui/game/atoms/ui-game-audio-toggle.orb +128 -1
  163. package/behaviors/registry/ui/game/atoms/ui-game-hud.orb +168 -8
  164. package/behaviors/registry/ui/game/atoms/ui-game-menu.orb +151 -13
  165. package/behaviors/registry/ui/game/atoms/ui-health-bar.orb +109 -1
  166. package/behaviors/registry/ui/game/atoms/ui-score-display.orb +56 -1
  167. package/behaviors/registry/ui/game/atoms/ui-sequence-bar.orb +523 -1
  168. package/behaviors/registry/ui/game/atoms/ui-stat-badge.orb +112 -22
  169. package/behaviors/registry/ui/game/atoms/ui-state-graph.orb +24 -1
  170. package/behaviors/registry/ui/game/atoms/ui-state-json-view.orb +20 -1
  171. package/behaviors/registry/ui/game/atoms/ui-trait-slot.orb +849 -1
  172. package/behaviors/registry/ui/learning/atoms/ui-algo-graph-canvas.orb +289 -1
  173. package/behaviors/registry/ui/learning/atoms/ui-algorithm-canvas.orb +424 -1
  174. package/behaviors/registry/ui/learning/atoms/ui-biology-canvas.orb +925 -1
  175. package/behaviors/registry/ui/learning/atoms/ui-chemistry-canvas.orb +970 -1
  176. package/behaviors/registry/ui/learning/atoms/ui-learning-canvas.orb +351 -1
  177. package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +592 -1
  178. package/behaviors/registry/ui/learning/atoms/ui-physics-canvas.orb +1049 -1
  179. package/behaviors/registry/ui/marketing/atoms/ui-community-links.orb +36 -1
  180. package/behaviors/registry/ui/marketing/atoms/ui-cta-banner.orb +27 -1
  181. package/behaviors/registry/ui/marketing/atoms/ui-hero-section.orb +39 -1
  182. package/behaviors/registry/ui/marketing/atoms/ui-marketing-footer.orb +55 -1
  183. package/behaviors/registry/ui/marketing/atoms/ui-pricing-card.orb +15 -1
  184. package/behaviors/registry/ui/marketing/atoms/ui-pricing-grid.orb +65 -1
  185. package/behaviors/registry/ui/marketing/atoms/ui-service-catalog.orb +19 -1
  186. package/behaviors/registry/ui/marketing/atoms/ui-showcase-card.orb +15 -1
  187. package/behaviors/registry/ui/marketing/atoms/ui-split-section.orb +15 -1
  188. package/behaviors/registry/ui/marketing/atoms/ui-stats-grid.orb +15 -1
  189. package/behaviors/registry/ui/marketing/atoms/ui-step-flow.orb +23 -1
  190. package/behaviors/registry/ui/marketing/atoms/ui-tag-cloud.orb +18 -1
  191. package/behaviors/registry/ui/marketing/organisms/ui-book-viewer.orb +84 -1
  192. package/behaviors/registry/ui/marketing/organisms/ui-case-study-organism.orb +22 -1
  193. package/behaviors/registry/ui/marketing/organisms/ui-feature-grid-organism.orb +22 -1
  194. package/behaviors/registry/ui/marketing/organisms/ui-hero-organism.orb +52 -1
  195. package/behaviors/registry/ui/marketing/organisms/ui-pricing-organism.orb +22 -1
  196. package/behaviors/registry/ui/marketing/organisms/ui-showcase-organism.orb +32 -1
  197. package/behaviors/registry/ui/marketing/organisms/ui-stats-organism.orb +22 -1
  198. package/behaviors/registry/ui/marketing/organisms/ui-step-flow-organism.orb +22 -1
  199. package/behaviors/registry/ui/marketing/organisms/ui-team-organism.orb +22 -1
  200. package/behaviors/registry/ui/marketing/templates/ui-about-page-template.orb +176 -1
  201. package/behaviors/registry/ui/marketing/templates/ui-feature-detail-page-template.orb +147 -1
  202. package/behaviors/registry/ui/marketing/templates/ui-landing-page-template.orb +260 -1
  203. package/behaviors/registry/ui/marketing/templates/ui-pricing-page-template.orb +98 -1
  204. package/dist/behaviors/exports-reader.js +3302 -2594
  205. package/dist/behaviors/functions/index.d.ts +203 -29
  206. package/dist/behaviors/functions/index.js +3297 -2595
  207. package/dist/behaviors/index.d.ts +1 -1
  208. package/dist/behaviors/index.js +3303 -2595
  209. package/dist/behaviors/query.js +3302 -2594
  210. package/dist/behaviors-embeddings.hash.json +3 -3
  211. package/dist/behaviors-embeddings.json +9 -1
  212. package/dist/behaviors-registry.json +531 -8
  213. package/dist/index.d.ts +1 -1
  214. package/dist/index.js +3303 -2595
  215. package/dist/knob-embeddings.hash.json +3 -3
  216. package/dist/knob-embeddings.json +1 -1
  217. package/dist/registry/factory-signatures.json +1 -1
  218. package/package.json +2 -2
@@ -0,0 +1,835 @@
1
+ {
2
+ "description": "Headless side-view collectible authority — the platformer twin of grid std-gather. Listens BODY_MOVED and, when the player touches an uncollected feature (|dx| <= reachX, |dy| <= reachY of the feature center — the coef-pad touch idiom minus the grounded requirement, so airborne pickups work), stamps it collected on the shared entity and emits PICKED once per item (id, kind, position, glyph, message) plus COLLECT{total} with the running count (the event std-gate-lock already consumes). When every feature is collected it emits PICKUP_SET_COMPLETED once. RESTART re-arms every feature and zeroes the count. kind is board-defined vocabulary (star, boost, …) — this atom reports, boards judge. Renders nothing; boards draw the features and read collected from the shared entity.",
3
+ "ledger": {
4
+ "entries": {
5
+ "ent_01M1GJ1RVVTJT76K1YZHQJGRG1": {
6
+ "bakedName": "PickupData",
7
+ "curName": "PickupData",
8
+ "id": "ent_01M1GJ1RVVTJT76K1YZHQJGRG1",
9
+ "kind": "entity",
10
+ "owner": "workspace",
11
+ "renames": []
12
+ },
13
+ "evt_01M1GJ1RVV15S8HWFJEVX2B3EE": {
14
+ "bakedName": "RESTART",
15
+ "curName": "RESTART",
16
+ "id": "evt_01M1GJ1RVV15S8HWFJEVX2B3EE",
17
+ "kind": "event",
18
+ "owner": "workspace",
19
+ "parent": "trt_01M1GJ1RVVYNAYXGWNA3EB2RFF",
20
+ "renames": []
21
+ },
22
+ "evt_01M1GJ1RVV6P5K79BVV55VS8N1": {
23
+ "bakedName": "COLLECT",
24
+ "curName": "COLLECT",
25
+ "id": "evt_01M1GJ1RVV6P5K79BVV55VS8N1",
26
+ "kind": "event",
27
+ "owner": "workspace",
28
+ "parent": "trt_01M1GJ1RVVYNAYXGWNA3EB2RFF",
29
+ "renames": []
30
+ },
31
+ "evt_01M1GJ1RVVM5H5ZY0QRFXV9CKE": {
32
+ "bakedName": "BODY_MOVED",
33
+ "curName": "BODY_MOVED",
34
+ "id": "evt_01M1GJ1RVVM5H5ZY0QRFXV9CKE",
35
+ "kind": "event",
36
+ "owner": "workspace",
37
+ "parent": "trt_01M1GJ1RVVYNAYXGWNA3EB2RFF",
38
+ "renames": []
39
+ },
40
+ "evt_01M1GJ1RVVN8VVR734HESK50D3": {
41
+ "bakedName": "PICKUP_SET_COMPLETED",
42
+ "curName": "PICKUP_SET_COMPLETED",
43
+ "id": "evt_01M1GJ1RVVN8VVR734HESK50D3",
44
+ "kind": "event",
45
+ "owner": "workspace",
46
+ "parent": "trt_01M1GJ1RVVYNAYXGWNA3EB2RFF",
47
+ "renames": []
48
+ },
49
+ "evt_01M1GJ1RVVSK6CJ213JM62VAQD": {
50
+ "bakedName": "PICKED",
51
+ "curName": "PICKED",
52
+ "id": "evt_01M1GJ1RVVSK6CJ213JM62VAQD",
53
+ "kind": "event",
54
+ "owner": "workspace",
55
+ "parent": "trt_01M1GJ1RVVYNAYXGWNA3EB2RFF",
56
+ "renames": []
57
+ },
58
+ "evt_01M1GJ1RVVV01RP71K50TKTX9B": {
59
+ "bakedName": "INIT",
60
+ "curName": "INIT",
61
+ "id": "evt_01M1GJ1RVVV01RP71K50TKTX9B",
62
+ "kind": "event",
63
+ "owner": "workspace",
64
+ "parent": "trt_01M1GJ1RVVYNAYXGWNA3EB2RFF",
65
+ "renames": []
66
+ },
67
+ "orb_01M1GJ1RVV19SNFS3EG7ABGGVT": {
68
+ "bakedName": "PickupOrbital",
69
+ "curName": "PickupOrbital",
70
+ "id": "orb_01M1GJ1RVV19SNFS3EG7ABGGVT",
71
+ "kind": "orbital",
72
+ "owner": "workspace",
73
+ "renames": []
74
+ },
75
+ "pag_01M1GJ1RVVMCZ7HREZ4S52JVK5": {
76
+ "bakedName": "PickupPage",
77
+ "curName": "PickupPage",
78
+ "id": "pag_01M1GJ1RVVMCZ7HREZ4S52JVK5",
79
+ "kind": "page",
80
+ "owner": "workspace",
81
+ "renames": []
82
+ },
83
+ "trt_01M1GJ1RVVYNAYXGWNA3EB2RFF": {
84
+ "bakedName": "Pickup",
85
+ "curName": "Pickup",
86
+ "id": "trt_01M1GJ1RVVYNAYXGWNA3EB2RFF",
87
+ "kind": "trait",
88
+ "owner": "workspace",
89
+ "renames": []
90
+ }
91
+ },
92
+ "schemaVersion": 1
93
+ },
94
+ "name": "std-pickup",
95
+ "orbitals": [
96
+ {
97
+ "entity": {
98
+ "fields": [
99
+ {
100
+ "name": "id",
101
+ "required": true,
102
+ "type": "string"
103
+ },
104
+ {
105
+ "default": [],
106
+ "items": {
107
+ "properties": {
108
+ "collected": {
109
+ "name": "collected",
110
+ "required": false,
111
+ "type": "boolean"
112
+ },
113
+ "glyph": {
114
+ "name": "glyph",
115
+ "required": false,
116
+ "type": "string"
117
+ },
118
+ "id": {
119
+ "name": "id",
120
+ "required": true,
121
+ "type": "string"
122
+ },
123
+ "kind": {
124
+ "name": "kind",
125
+ "required": true,
126
+ "type": "string"
127
+ },
128
+ "message": {
129
+ "name": "message",
130
+ "required": false,
131
+ "type": "string"
132
+ },
133
+ "x": {
134
+ "name": "x",
135
+ "required": true,
136
+ "type": "number"
137
+ },
138
+ "y": {
139
+ "name": "y",
140
+ "required": true,
141
+ "type": "number"
142
+ }
143
+ },
144
+ "type": "object"
145
+ },
146
+ "name": "pickups",
147
+ "type": "array"
148
+ },
149
+ {
150
+ "default": false,
151
+ "name": "pickupCompleted",
152
+ "type": "boolean"
153
+ },
154
+ {
155
+ "default": 0.0,
156
+ "name": "total",
157
+ "type": "number"
158
+ }
159
+ ],
160
+ "id": "ent_01M1GJ1RVVTJT76K1YZHQJGRG1",
161
+ "name": "PickupData",
162
+ "persistence": "runtime",
163
+ "shared": true
164
+ },
165
+ "id": "orb_01M1GJ1RVV19SNFS3EG7ABGGVT",
166
+ "name": "PickupOrbital",
167
+ "pages": [
168
+ {
169
+ "id": "pag_01M1GJ1RVVMCZ7HREZ4S52JVK5",
170
+ "name": "PickupPage",
171
+ "path": "/pickup",
172
+ "traits": [
173
+ {
174
+ "ref": "Pickup",
175
+ "refId": "trt_01M1GJ1RVVYNAYXGWNA3EB2RFF"
176
+ }
177
+ ]
178
+ }
179
+ ],
180
+ "traits": [
181
+ {
182
+ "category": "lifecycle",
183
+ "config": {
184
+ "features": {
185
+ "default": [],
186
+ "description": "One row per collectible: id, center (x, y in world units), board-defined kind (star, boost, …), display glyph and message floated on pickup. collected is stamped at runtime.",
187
+ "items": {
188
+ "properties": {
189
+ "collected": {
190
+ "name": "collected",
191
+ "required": false,
192
+ "type": "boolean"
193
+ },
194
+ "glyph": {
195
+ "name": "glyph",
196
+ "required": false,
197
+ "type": "string"
198
+ },
199
+ "id": {
200
+ "name": "id",
201
+ "required": true,
202
+ "type": "string"
203
+ },
204
+ "kind": {
205
+ "name": "kind",
206
+ "required": true,
207
+ "type": "string"
208
+ },
209
+ "message": {
210
+ "name": "message",
211
+ "required": false,
212
+ "type": "string"
213
+ },
214
+ "x": {
215
+ "name": "x",
216
+ "required": true,
217
+ "type": "number"
218
+ },
219
+ "y": {
220
+ "name": "y",
221
+ "required": true,
222
+ "type": "number"
223
+ }
224
+ },
225
+ "type": "object"
226
+ },
227
+ "label": "Features",
228
+ "tier": "domain",
229
+ "type": "[PickupFeature]"
230
+ },
231
+ "reachX": {
232
+ "default": 0.7,
233
+ "description": "Horizontal tolerance (world units) around a feature's center when testing player contact.",
234
+ "label": "Reach X",
235
+ "tier": "domain",
236
+ "type": "number"
237
+ },
238
+ "reachY": {
239
+ "default": 1.2,
240
+ "description": "Vertical tolerance (world units) around a feature's center when testing player contact; generous values catch fly-through pickups.",
241
+ "label": "Reach Y",
242
+ "tier": "domain",
243
+ "type": "number"
244
+ },
245
+ "running": {
246
+ "default": true,
247
+ "description": "When true, BODY_MOVED collects touched features; toggle to freeze the set as-is.",
248
+ "label": "Running",
249
+ "tier": "domain",
250
+ "type": "boolean"
251
+ }
252
+ },
253
+ "emits": [
254
+ {
255
+ "description": "The player touched an uncollected feature; carries the feature identity, board-defined kind (star, boost, …), position and display glyph/message. Fires once per feature per run.",
256
+ "event": "PICKED",
257
+ "eventId": "evt_01M1GJ1RVVSK6CJ213JM62VAQD",
258
+ "payloadSchema": [
259
+ {
260
+ "name": "id",
261
+ "required": true,
262
+ "type": "string"
263
+ },
264
+ {
265
+ "name": "kind",
266
+ "required": true,
267
+ "type": "string"
268
+ },
269
+ {
270
+ "name": "x",
271
+ "required": true,
272
+ "type": "number"
273
+ },
274
+ {
275
+ "name": "y",
276
+ "required": true,
277
+ "type": "number"
278
+ },
279
+ {
280
+ "name": "glyph",
281
+ "type": "string"
282
+ },
283
+ {
284
+ "name": "message",
285
+ "type": "string"
286
+ }
287
+ ],
288
+ "scope": "external",
289
+ "tier": "domain"
290
+ },
291
+ {
292
+ "description": "Running count of collected features after this pickup — the event std-gate-lock consumes to count openings.",
293
+ "event": "COLLECT",
294
+ "eventId": "evt_01M1GJ1RVV6P5K79BVV55VS8N1",
295
+ "payloadSchema": [
296
+ {
297
+ "name": "total",
298
+ "required": true,
299
+ "type": "number"
300
+ }
301
+ ],
302
+ "scope": "external",
303
+ "tier": "domain"
304
+ },
305
+ {
306
+ "description": "Every feature in the set is collected; fires once per run.",
307
+ "event": "PICKUP_SET_COMPLETED",
308
+ "eventId": "evt_01M1GJ1RVVN8VVR734HESK50D3",
309
+ "scope": "external",
310
+ "tier": "domain"
311
+ }
312
+ ],
313
+ "entityContract": {
314
+ "provides": [
315
+ "pickupCompleted",
316
+ "pickups",
317
+ "total"
318
+ ],
319
+ "requires": []
320
+ },
321
+ "entityRebindable": true,
322
+ "entityRefIds": {
323
+ "PickupData": "ent_01M1GJ1RVVTJT76K1YZHQJGRG1"
324
+ },
325
+ "id": "trt_01M1GJ1RVVYNAYXGWNA3EB2RFF",
326
+ "linkedEntity": "PickupData",
327
+ "linkedEntityId": "ent_01M1GJ1RVVTJT76K1YZHQJGRG1",
328
+ "name": "Pickup",
329
+ "scope": "instance",
330
+ "stateMachine": {
331
+ "events": [
332
+ {
333
+ "id": "evt_01M1GJ1RVVV01RP71K50TKTX9B",
334
+ "key": "INIT",
335
+ "name": "Initialize"
336
+ },
337
+ {
338
+ "id": "evt_01M1GJ1RVVM5H5ZY0QRFXV9CKE",
339
+ "key": "BODY_MOVED",
340
+ "name": "Body Moved",
341
+ "payloadSchema": [
342
+ {
343
+ "name": "x",
344
+ "required": true,
345
+ "type": "number"
346
+ },
347
+ {
348
+ "name": "y",
349
+ "required": true,
350
+ "type": "number"
351
+ },
352
+ {
353
+ "name": "vx",
354
+ "required": true,
355
+ "type": "number"
356
+ },
357
+ {
358
+ "name": "vy",
359
+ "required": true,
360
+ "type": "number"
361
+ },
362
+ {
363
+ "name": "grounded",
364
+ "required": true,
365
+ "type": "boolean"
366
+ },
367
+ {
368
+ "name": "skating",
369
+ "required": true,
370
+ "type": "boolean"
371
+ },
372
+ {
373
+ "name": "speed",
374
+ "required": true,
375
+ "type": "number"
376
+ }
377
+ ]
378
+ },
379
+ {
380
+ "id": "evt_01M1GJ1RVV15S8HWFJEVX2B3EE",
381
+ "key": "RESTART",
382
+ "name": "Restart",
383
+ "payloadSchema": [
384
+ {
385
+ "name": "id",
386
+ "type": "string"
387
+ }
388
+ ]
389
+ },
390
+ {
391
+ "description": "The player touched an uncollected feature; carries the feature identity, board-defined kind (star, boost, …), position and display glyph/message. Fires once per feature per run.",
392
+ "id": "evt_01M1GJ1RVVSK6CJ213JM62VAQD",
393
+ "key": "PICKED",
394
+ "name": "Picked",
395
+ "payloadSchema": [
396
+ {
397
+ "name": "id",
398
+ "required": true,
399
+ "type": "string"
400
+ },
401
+ {
402
+ "name": "kind",
403
+ "required": true,
404
+ "type": "string"
405
+ },
406
+ {
407
+ "name": "x",
408
+ "required": true,
409
+ "type": "number"
410
+ },
411
+ {
412
+ "name": "y",
413
+ "required": true,
414
+ "type": "number"
415
+ },
416
+ {
417
+ "name": "glyph",
418
+ "type": "string"
419
+ },
420
+ {
421
+ "name": "message",
422
+ "type": "string"
423
+ }
424
+ ],
425
+ "tier": "domain"
426
+ },
427
+ {
428
+ "description": "Running count of collected features after this pickup — the event std-gate-lock consumes to count openings.",
429
+ "id": "evt_01M1GJ1RVV6P5K79BVV55VS8N1",
430
+ "key": "COLLECT",
431
+ "name": "Collect",
432
+ "payloadSchema": [
433
+ {
434
+ "name": "total",
435
+ "required": true,
436
+ "type": "number"
437
+ }
438
+ ],
439
+ "tier": "domain"
440
+ },
441
+ {
442
+ "description": "Every feature in the set is collected; fires once per run.",
443
+ "id": "evt_01M1GJ1RVVN8VVR734HESK50D3",
444
+ "key": "PICKUP_SET_COMPLETED",
445
+ "name": "Pickup Set Completed",
446
+ "tier": "domain"
447
+ }
448
+ ],
449
+ "states": [
450
+ {
451
+ "isInitial": true,
452
+ "name": "active"
453
+ }
454
+ ],
455
+ "transitions": [
456
+ {
457
+ "effects": [
458
+ [
459
+ "set",
460
+ "@entity.pickups",
461
+ [
462
+ "array/map",
463
+ "@config.features",
464
+ [
465
+ "fn",
466
+ "f",
467
+ [
468
+ "object/merge",
469
+ "@f",
470
+ {
471
+ "collected": false
472
+ }
473
+ ]
474
+ ]
475
+ ]
476
+ ],
477
+ [
478
+ "set",
479
+ "@entity.pickupCompleted",
480
+ false
481
+ ],
482
+ [
483
+ "set",
484
+ "@entity.total",
485
+ 0.0
486
+ ]
487
+ ],
488
+ "event": "INIT",
489
+ "eventId": "evt_01M1GJ1RVVV01RP71K50TKTX9B",
490
+ "from": "active",
491
+ "to": "active"
492
+ },
493
+ {
494
+ "effects": [
495
+ [
496
+ "let",
497
+ [
498
+ [
499
+ "touch",
500
+ [
501
+ "array/filter",
502
+ "@entity.pickups",
503
+ [
504
+ "fn",
505
+ "f",
506
+ [
507
+ "and",
508
+ [
509
+ "==",
510
+ [
511
+ "object/get",
512
+ "@f",
513
+ "collected"
514
+ ],
515
+ false
516
+ ],
517
+ [
518
+ "and",
519
+ [
520
+ "<=",
521
+ [
522
+ "math/abs",
523
+ [
524
+ "-",
525
+ "@payload.x",
526
+ [
527
+ "object/get",
528
+ "@f",
529
+ "x"
530
+ ]
531
+ ]
532
+ ],
533
+ "@config.reachX"
534
+ ],
535
+ [
536
+ "<=",
537
+ [
538
+ "math/abs",
539
+ [
540
+ "-",
541
+ "@payload.y",
542
+ [
543
+ "object/get",
544
+ "@f",
545
+ "y"
546
+ ]
547
+ ]
548
+ ],
549
+ "@config.reachY"
550
+ ]
551
+ ]
552
+ ]
553
+ ]
554
+ ]
555
+ ]
556
+ ],
557
+ [
558
+ "if",
559
+ [
560
+ ">",
561
+ [
562
+ "array/len",
563
+ "@touch"
564
+ ],
565
+ 0.0
566
+ ],
567
+ [
568
+ "let",
569
+ [
570
+ [
571
+ "f",
572
+ [
573
+ "array/first",
574
+ "@touch"
575
+ ]
576
+ ]
577
+ ],
578
+ [
579
+ "let",
580
+ [
581
+ [
582
+ "remaining",
583
+ [
584
+ "array/len",
585
+ [
586
+ "array/filter",
587
+ "@entity.pickups",
588
+ [
589
+ "fn",
590
+ "c",
591
+ [
592
+ "and",
593
+ [
594
+ "==",
595
+ [
596
+ "object/get",
597
+ "@c",
598
+ "collected"
599
+ ],
600
+ false
601
+ ],
602
+ [
603
+ "!=",
604
+ [
605
+ "object/get",
606
+ "@c",
607
+ "id"
608
+ ],
609
+ [
610
+ "object/get",
611
+ "@f",
612
+ "id"
613
+ ]
614
+ ]
615
+ ]
616
+ ]
617
+ ]
618
+ ]
619
+ ]
620
+ ],
621
+ [
622
+ "do",
623
+ [
624
+ "set",
625
+ "@entity.pickups",
626
+ [
627
+ "array/map",
628
+ "@entity.pickups",
629
+ [
630
+ "fn",
631
+ "c",
632
+ [
633
+ "if",
634
+ [
635
+ "==",
636
+ [
637
+ "object/get",
638
+ "@c",
639
+ "id"
640
+ ],
641
+ [
642
+ "object/get",
643
+ "@f",
644
+ "id"
645
+ ]
646
+ ],
647
+ [
648
+ "object/merge",
649
+ "@c",
650
+ {
651
+ "collected": true
652
+ }
653
+ ],
654
+ "@c"
655
+ ]
656
+ ]
657
+ ]
658
+ ],
659
+ [
660
+ "set",
661
+ "@entity.total",
662
+ [
663
+ "+",
664
+ "@entity.total",
665
+ 1.0
666
+ ]
667
+ ],
668
+ [
669
+ "emit",
670
+ "PICKED",
671
+ {
672
+ "glyph": [
673
+ "object/get",
674
+ "@f",
675
+ "glyph"
676
+ ],
677
+ "id": [
678
+ "object/get",
679
+ "@f",
680
+ "id"
681
+ ],
682
+ "kind": [
683
+ "object/get",
684
+ "@f",
685
+ "kind"
686
+ ],
687
+ "message": [
688
+ "object/get",
689
+ "@f",
690
+ "message"
691
+ ],
692
+ "x": [
693
+ "object/get",
694
+ "@f",
695
+ "x"
696
+ ],
697
+ "y": [
698
+ "object/get",
699
+ "@f",
700
+ "y"
701
+ ]
702
+ }
703
+ ],
704
+ [
705
+ "emit",
706
+ "COLLECT",
707
+ {
708
+ "total": "@entity.total"
709
+ }
710
+ ],
711
+ [
712
+ "if",
713
+ [
714
+ "and",
715
+ [
716
+ "==",
717
+ "@entity.pickupCompleted",
718
+ false
719
+ ],
720
+ [
721
+ "==",
722
+ "@remaining",
723
+ 0.0
724
+ ]
725
+ ],
726
+ [
727
+ "do",
728
+ [
729
+ "set",
730
+ "@entity.pickupCompleted",
731
+ true
732
+ ],
733
+ [
734
+ "emit",
735
+ "PICKUP_SET_COMPLETED",
736
+ {}
737
+ ]
738
+ ],
739
+ null
740
+ ]
741
+ ]
742
+ ]
743
+ ],
744
+ null
745
+ ]
746
+ ]
747
+ ],
748
+ "event": "BODY_MOVED",
749
+ "eventId": "evt_01M1GJ1RVVM5H5ZY0QRFXV9CKE",
750
+ "from": "active",
751
+ "guard": "@config.running",
752
+ "to": "active"
753
+ },
754
+ {
755
+ "effects": [
756
+ [
757
+ "set",
758
+ "@entity.pickups",
759
+ [
760
+ "array/map",
761
+ "@config.features",
762
+ [
763
+ "fn",
764
+ "f",
765
+ [
766
+ "object/merge",
767
+ "@f",
768
+ {
769
+ "collected": false
770
+ }
771
+ ]
772
+ ]
773
+ ]
774
+ ],
775
+ [
776
+ "set",
777
+ "@entity.pickupCompleted",
778
+ false
779
+ ],
780
+ [
781
+ "set",
782
+ "@entity.total",
783
+ 0.0
784
+ ]
785
+ ],
786
+ "event": "RESTART",
787
+ "eventId": "evt_01M1GJ1RVV15S8HWFJEVX2B3EE",
788
+ "from": "active",
789
+ "to": "active"
790
+ }
791
+ ]
792
+ }
793
+ }
794
+ ],
795
+ "types": {
796
+ "PickupFeature": [
797
+ {
798
+ "name": "id",
799
+ "required": true,
800
+ "type": "string"
801
+ },
802
+ {
803
+ "name": "x",
804
+ "required": true,
805
+ "type": "number"
806
+ },
807
+ {
808
+ "name": "y",
809
+ "required": true,
810
+ "type": "number"
811
+ },
812
+ {
813
+ "name": "kind",
814
+ "required": true,
815
+ "type": "string"
816
+ },
817
+ {
818
+ "name": "glyph",
819
+ "type": "string"
820
+ },
821
+ {
822
+ "name": "message",
823
+ "type": "string"
824
+ },
825
+ {
826
+ "name": "collected",
827
+ "type": "boolean"
828
+ }
829
+ ]
830
+ }
831
+ }
832
+ ],
833
+ "schemaVersion": 1,
834
+ "version": "1.0.0"
835
+ }