@almadar/std 16.239.0 → 16.242.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 (167) hide show
  1. package/behaviors/behaviors-registry.json +4814 -553
  2. package/behaviors/lolo/agent/atoms/std-agent-memory.lolo +38 -1
  3. package/behaviors/lolo/agent/atoms/std-agent-session.lolo +1074 -47
  4. package/behaviors/lolo/agent/atoms/std-agent-tool-loop.lolo +8 -7
  5. package/behaviors/lolo/agent/organisms/std-agent-assistant.lolo +56 -37
  6. package/behaviors/lolo/infra/atoms/std-page-open.lolo +59 -0
  7. package/behaviors/lolo/infra/atoms/std-page-search.lolo +134 -0
  8. package/behaviors/lolo/infra/atoms/std-page-treat.lolo +59 -0
  9. package/behaviors/lolo/infra/atoms/std-page-watch.lolo +86 -0
  10. package/behaviors/lolo/ui/core/atoms/std-board.lolo +53 -6
  11. package/behaviors/lolo/ui/core/atoms/std-book-reader.lolo +25 -1
  12. package/behaviors/lolo/ui/core/atoms/std-card-grid.lolo +9 -0
  13. package/behaviors/lolo/ui/core/atoms/std-doc-page.lolo +153 -0
  14. package/behaviors/lolo/ui/core/atoms/std-site-header.lolo +15 -3
  15. package/behaviors/lolo/ui/core/atoms/std-tag-strip.lolo +2 -2
  16. package/behaviors/lolo/ui/core/atoms/std-tag-taxonomy.lolo +7 -7
  17. package/behaviors/lolo/ui/core/atoms/std-version-history.lolo +1 -1
  18. package/behaviors/lolo/ui/core/molecules/ui-header.lolo +5 -0
  19. package/behaviors/lolo/ui/learning/atoms/std-learn-arrangement.lolo +124 -92
  20. package/behaviors/lolo/ui/learning/atoms/std-learn-classify.lolo +114 -55
  21. package/behaviors/lolo/ui/learning/atoms/std-learn-compare.lolo +40 -14
  22. package/behaviors/lolo/ui/learning/atoms/std-learn-coupled-sim.lolo +363 -123
  23. package/behaviors/lolo/ui/learning/atoms/std-learn-derivation.lolo +93 -48
  24. package/behaviors/lolo/ui/learning/atoms/std-learn-diagram.lolo +60 -28
  25. package/behaviors/lolo/ui/learning/atoms/std-learn-doser.lolo +193 -96
  26. package/behaviors/lolo/ui/learning/atoms/std-learn-estimate.lolo +75 -32
  27. package/behaviors/lolo/ui/learning/atoms/std-learn-goal-seek.lolo +142 -86
  28. package/behaviors/lolo/ui/learning/atoms/std-learn-grid-sim.lolo +266 -98
  29. package/behaviors/lolo/ui/learning/atoms/std-learn-hotspot.lolo +103 -65
  30. package/behaviors/lolo/ui/learning/atoms/std-learn-live-sim.lolo +223 -109
  31. package/behaviors/lolo/ui/learning/atoms/std-learn-measure.lolo +232 -64
  32. package/behaviors/lolo/ui/learning/atoms/std-learn-param-explorer.lolo +69 -29
  33. package/behaviors/lolo/ui/learning/atoms/std-learn-perturb.lolo +363 -123
  34. package/behaviors/lolo/ui/learning/atoms/std-learn-predict.lolo +73 -41
  35. package/behaviors/lolo/ui/learning/atoms/std-learn-sample-accumulator.lolo +96 -38
  36. package/behaviors/lolo/ui/learning/atoms/std-learn-sandbox.lolo +65 -45
  37. package/behaviors/lolo/ui/learning/atoms/std-learn-scatter-fit.lolo +243 -117
  38. package/behaviors/lolo/ui/learning/atoms/std-learn-scenario.lolo +76 -28
  39. package/behaviors/lolo/ui/learning/atoms/std-learn-sim-3d.lolo +228 -109
  40. package/behaviors/lolo/ui/learning/atoms/std-learn-speed-drill.lolo +95 -44
  41. package/behaviors/lolo/ui/learning/atoms/std-learn-stepper.lolo +199 -125
  42. package/behaviors/lolo/ui/learning/atoms/std-learn-tour-3d.lolo +92 -48
  43. package/behaviors/lolo/ui/learning/atoms/std-learn-trace-player.lolo +239 -78
  44. package/behaviors/lolo/ui/learning/atoms/std-learn-transport.lolo +147 -38
  45. package/behaviors/lolo/ui/learning/atoms/std-learn-tree.lolo +123 -58
  46. package/behaviors/lolo/ui/learning/atoms/ui-algo-graph-canvas.lolo +22 -0
  47. package/behaviors/lolo/ui/learning/atoms/ui-algorithm-canvas.lolo +26 -0
  48. package/behaviors/lolo/ui/learning/atoms/ui-biology-canvas.lolo +26 -0
  49. package/behaviors/lolo/ui/learning/atoms/ui-chemistry-canvas.lolo +27 -1
  50. package/behaviors/lolo/ui/learning/atoms/ui-learning-canvas.lolo +27 -1
  51. package/behaviors/lolo/ui/learning/atoms/ui-math-canvas.lolo +29 -9
  52. package/behaviors/lolo/ui/learning/atoms/ui-physics-canvas.lolo +26 -0
  53. package/behaviors/lolo-behavior-contracts.json +1 -1
  54. package/behaviors/registry/agent/atoms/std-agent-memory.orb +372 -2
  55. package/behaviors/registry/agent/atoms/std-agent-session.orb +4752 -348
  56. package/behaviors/registry/agent/atoms/std-agent-tool-loop.orb +54 -42
  57. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +356 -122
  58. package/behaviors/registry/factory-signatures.json +1 -1
  59. package/behaviors/registry/infra/atoms/std-page-open.orb +435 -0
  60. package/behaviors/registry/infra/atoms/std-page-search.orb +867 -0
  61. package/behaviors/registry/infra/atoms/std-page-treat.orb +494 -0
  62. package/behaviors/registry/infra/atoms/std-page-watch.orb +554 -0
  63. package/behaviors/registry/ui/core/atoms/std-board.orb +110 -14
  64. package/behaviors/registry/ui/core/atoms/std-book-reader.orb +119 -0
  65. package/behaviors/registry/ui/core/atoms/std-card-grid.orb +61 -0
  66. package/behaviors/registry/ui/core/atoms/std-doc-page.orb +594 -0
  67. package/behaviors/registry/ui/core/atoms/std-site-header.orb +40 -2
  68. package/behaviors/registry/ui/core/atoms/std-tag-strip.orb +2 -0
  69. package/behaviors/registry/ui/core/atoms/std-tag-taxonomy.orb +24 -0
  70. package/behaviors/registry/ui/core/atoms/std-version-history.orb +8 -1
  71. package/behaviors/registry/ui/core/molecules/ui-header.orb +7 -0
  72. package/behaviors/registry/ui/learning/atoms/std-learn-arrangement.orb +903 -369
  73. package/behaviors/registry/ui/learning/atoms/std-learn-classify.orb +1002 -232
  74. package/behaviors/registry/ui/learning/atoms/std-learn-compare.orb +253 -74
  75. package/behaviors/registry/ui/learning/atoms/std-learn-coupled-sim.orb +3624 -921
  76. package/behaviors/registry/ui/learning/atoms/std-learn-derivation.orb +685 -144
  77. package/behaviors/registry/ui/learning/atoms/std-learn-diagram.orb +404 -52
  78. package/behaviors/registry/ui/learning/atoms/std-learn-doser.orb +1787 -210
  79. package/behaviors/registry/ui/learning/atoms/std-learn-estimate.orb +699 -71
  80. package/behaviors/registry/ui/learning/atoms/std-learn-goal-seek.orb +1102 -578
  81. package/behaviors/registry/ui/learning/atoms/std-learn-grid-sim.orb +2760 -872
  82. package/behaviors/registry/ui/learning/atoms/std-learn-hotspot.orb +689 -152
  83. package/behaviors/registry/ui/learning/atoms/std-learn-live-sim.orb +1431 -633
  84. package/behaviors/registry/ui/learning/atoms/std-learn-measure.orb +2485 -512
  85. package/behaviors/registry/ui/learning/atoms/std-learn-param-explorer.orb +501 -197
  86. package/behaviors/registry/ui/learning/atoms/std-learn-perturb.orb +3642 -928
  87. package/behaviors/registry/ui/learning/atoms/std-learn-predict.orb +705 -125
  88. package/behaviors/registry/ui/learning/atoms/std-learn-sample-accumulator.orb +624 -114
  89. package/behaviors/registry/ui/learning/atoms/std-learn-sandbox.orb +405 -153
  90. package/behaviors/registry/ui/learning/atoms/std-learn-scatter-fit.orb +1911 -611
  91. package/behaviors/registry/ui/learning/atoms/std-learn-scenario.orb +436 -128
  92. package/behaviors/registry/ui/learning/atoms/std-learn-sim-3d.orb +2482 -485
  93. package/behaviors/registry/ui/learning/atoms/std-learn-speed-drill.orb +896 -192
  94. package/behaviors/registry/ui/learning/atoms/std-learn-stepper.orb +2001 -759
  95. package/behaviors/registry/ui/learning/atoms/std-learn-tour-3d.orb +734 -228
  96. package/behaviors/registry/ui/learning/atoms/std-learn-trace-player.orb +2501 -764
  97. package/behaviors/registry/ui/learning/atoms/std-learn-transport.orb +1591 -173
  98. package/behaviors/registry/ui/learning/atoms/std-learn-tree.orb +883 -122
  99. package/behaviors/registry/ui/learning/atoms/ui-algo-graph-canvas.orb +176 -0
  100. package/behaviors/registry/ui/learning/atoms/ui-algorithm-canvas.orb +211 -0
  101. package/behaviors/registry/ui/learning/atoms/ui-biology-canvas.orb +211 -0
  102. package/behaviors/registry/ui/learning/atoms/ui-chemistry-canvas.orb +212 -1
  103. package/behaviors/registry/ui/learning/atoms/ui-learning-canvas.orb +212 -1
  104. package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +203 -9
  105. package/behaviors/registry/ui/learning/atoms/ui-physics-canvas.orb +211 -0
  106. package/behaviors/signatures.lolo +325 -655
  107. package/canonical-operators.json +35 -1
  108. package/dist/behaviors/exports-reader.js +41980 -35508
  109. package/dist/behaviors/functions/index.d.ts +1063 -140
  110. package/dist/behaviors/functions/index.js +41951 -35506
  111. package/dist/behaviors/index.d.ts +1 -1
  112. package/dist/behaviors/index.js +41981 -35509
  113. package/dist/behaviors/query.js +41980 -35508
  114. package/dist/behaviors-embeddings.hash.json +3 -3
  115. package/dist/behaviors-embeddings.json +47 -27
  116. package/dist/behaviors-registry.json +4814 -553
  117. package/dist/index.d.ts +4 -4
  118. package/dist/index.js +42019 -35509
  119. package/dist/knob-embeddings.hash.json +3 -3
  120. package/dist/knob-embeddings.json +623 -263
  121. package/dist/modules/anim.d.ts +1 -1
  122. package/dist/modules/array.d.ts +1 -1
  123. package/dist/modules/async.d.ts +1 -1
  124. package/dist/modules/behavior.d.ts +1 -1
  125. package/dist/modules/browser.d.ts +1 -1
  126. package/dist/modules/composition.d.ts +1 -1
  127. package/dist/modules/contract.d.ts +1 -1
  128. package/dist/modules/core.d.ts +1 -1
  129. package/dist/modules/core.js +2 -0
  130. package/dist/modules/data.d.ts +1 -1
  131. package/dist/modules/ease.d.ts +1 -1
  132. package/dist/modules/format.d.ts +1 -1
  133. package/dist/modules/geo.d.ts +1 -1
  134. package/dist/modules/graph.d.ts +1 -1
  135. package/dist/modules/grid.d.ts +1 -1
  136. package/dist/modules/i18n.d.ts +17 -0
  137. package/dist/modules/i18n.js +22 -0
  138. package/dist/modules/index.d.ts +2 -1
  139. package/dist/modules/index.js +24 -1
  140. package/dist/modules/integration.d.ts +1 -1
  141. package/dist/modules/json.d.ts +1 -1
  142. package/dist/modules/llm.d.ts +1 -1
  143. package/dist/modules/math.d.ts +1 -1
  144. package/dist/modules/memory.d.ts +1 -1
  145. package/dist/modules/nn.d.ts +1 -1
  146. package/dist/modules/noise.d.ts +1 -1
  147. package/dist/modules/object.d.ts +1 -1
  148. package/dist/modules/os.d.ts +1 -1
  149. package/dist/modules/path.d.ts +1 -1
  150. package/dist/modules/prob.d.ts +1 -1
  151. package/dist/modules/session.d.ts +1 -1
  152. package/dist/modules/str.d.ts +1 -1
  153. package/dist/modules/tensor.d.ts +1 -1
  154. package/dist/modules/time.d.ts +1 -1
  155. package/dist/modules/trace.d.ts +1 -1
  156. package/dist/modules/train.d.ts +1 -1
  157. package/dist/modules/validate.d.ts +1 -1
  158. package/dist/modules/vector.d.ts +1 -1
  159. package/dist/modules/workspace.d.ts +1 -1
  160. package/dist/registry/factory-signatures.json +1 -1
  161. package/dist/registry.d.ts +10 -3
  162. package/dist/registry.js +31 -1
  163. package/dist/{types-DLx38UFZ.d.ts → types-Cdb321uM.d.ts} +9 -3
  164. package/i18n/ar.json +1 -0
  165. package/i18n/en.json +1 -0
  166. package/i18n/sl.json +1 -0
  167. package/package.json +3 -3
@@ -0,0 +1,494 @@
1
+ {
2
+ "description": "std-page-treat — applies a declared visual treatment to one element of a browser tab (hide, blur, highlight, or label it with text) or restores it, and reports which element it treated. TREAT takes the tab and element id std-page-watch reports. The treatments are a fixed, declared set: no arbitrary styles or scripts. Needs a host with the `page` service (a browser extension).",
3
+ "ledger": {
4
+ "entries": {
5
+ "ent_01M431PMWEZFEQMV1ZADZ4AR3S": {
6
+ "bakedName": "PageTreatRecord",
7
+ "curName": "PageTreatRecord",
8
+ "id": "ent_01M431PMWEZFEQMV1ZADZ4AR3S",
9
+ "kind": "entity",
10
+ "owner": "workspace",
11
+ "renames": []
12
+ },
13
+ "evt_01M431PMWE4VVYTJQ6GD0DRJ28": {
14
+ "bakedName": "TREAT",
15
+ "curName": "TREAT",
16
+ "id": "evt_01M431PMWE4VVYTJQ6GD0DRJ28",
17
+ "kind": "event",
18
+ "owner": "workspace",
19
+ "parent": "trt_01M431PMWE8GVWK42G31TJKSYS",
20
+ "renames": []
21
+ },
22
+ "evt_01M431PMWEAB7ZC4WPP859PDC7": {
23
+ "bakedName": "APPLIED",
24
+ "curName": "APPLIED",
25
+ "id": "evt_01M431PMWEAB7ZC4WPP859PDC7",
26
+ "kind": "event",
27
+ "owner": "workspace",
28
+ "parent": "trt_01M431PMWE8GVWK42G31TJKSYS",
29
+ "renames": []
30
+ },
31
+ "evt_01M431PMWEBZK1KCZAB9FG6AE1": {
32
+ "bakedName": "TREAT_FAILED",
33
+ "curName": "TREAT_FAILED",
34
+ "id": "evt_01M431PMWEBZK1KCZAB9FG6AE1",
35
+ "kind": "event",
36
+ "owner": "workspace",
37
+ "parent": "trt_01M431PMWE8GVWK42G31TJKSYS",
38
+ "renames": []
39
+ },
40
+ "evt_01M431PMWEC98MRRW9ZBPEGHEK": {
41
+ "bakedName": "INIT",
42
+ "curName": "INIT",
43
+ "id": "evt_01M431PMWEC98MRRW9ZBPEGHEK",
44
+ "kind": "event",
45
+ "owner": "workspace",
46
+ "parent": "trt_01M431PMWE8GVWK42G31TJKSYS",
47
+ "renames": []
48
+ },
49
+ "evt_01M431PMWETQ15DFSCY7X3S3DQ": {
50
+ "bakedName": "APPLY_FAILED",
51
+ "curName": "APPLY_FAILED",
52
+ "id": "evt_01M431PMWETQ15DFSCY7X3S3DQ",
53
+ "kind": "event",
54
+ "owner": "workspace",
55
+ "parent": "trt_01M431PMWE8GVWK42G31TJKSYS",
56
+ "renames": []
57
+ },
58
+ "evt_01M431PMWEYV983BES8KAC6K4E": {
59
+ "bakedName": "TREATED",
60
+ "curName": "TREATED",
61
+ "id": "evt_01M431PMWEYV983BES8KAC6K4E",
62
+ "kind": "event",
63
+ "owner": "workspace",
64
+ "parent": "trt_01M431PMWE8GVWK42G31TJKSYS",
65
+ "renames": []
66
+ },
67
+ "orb_01M431PMWEGB77DC3DGPK02RAP": {
68
+ "bakedName": "PageTreatOrbital",
69
+ "curName": "PageTreatOrbital",
70
+ "id": "orb_01M431PMWEGB77DC3DGPK02RAP",
71
+ "kind": "orbital",
72
+ "owner": "workspace",
73
+ "renames": []
74
+ },
75
+ "pag_01M431PMWEF9RN6XNBYXP13BJ4": {
76
+ "bakedName": "PageTreatPage",
77
+ "curName": "PageTreatPage",
78
+ "id": "pag_01M431PMWEF9RN6XNBYXP13BJ4",
79
+ "kind": "page",
80
+ "owner": "workspace",
81
+ "renames": []
82
+ },
83
+ "trt_01M431PMWE8GVWK42G31TJKSYS": {
84
+ "bakedName": "PageTreat",
85
+ "curName": "PageTreat",
86
+ "id": "trt_01M431PMWE8GVWK42G31TJKSYS",
87
+ "kind": "trait",
88
+ "owner": "workspace",
89
+ "renames": []
90
+ }
91
+ },
92
+ "schemaVersion": 1
93
+ },
94
+ "name": "std-page-treat",
95
+ "orbitals": [
96
+ {
97
+ "entity": {
98
+ "fields": [
99
+ {
100
+ "default": 0.0,
101
+ "description": "How many treatments were applied",
102
+ "name": "treated",
103
+ "synonyms": "count, applied",
104
+ "type": "number"
105
+ },
106
+ {
107
+ "default": "",
108
+ "description": "Why the last treatment failed; blank = none",
109
+ "name": "errorMessage",
110
+ "synonyms": "error, failure reason",
111
+ "type": "string"
112
+ }
113
+ ],
114
+ "id": "ent_01M431PMWEZFEQMV1ZADZ4AR3S",
115
+ "name": "PageTreatRecord",
116
+ "persistence": "runtime"
117
+ },
118
+ "id": "orb_01M431PMWEGB77DC3DGPK02RAP",
119
+ "name": "PageTreatOrbital",
120
+ "pages": [
121
+ {
122
+ "id": "pag_01M431PMWEF9RN6XNBYXP13BJ4",
123
+ "name": "PageTreatPage",
124
+ "path": "/page-treat",
125
+ "traits": [
126
+ {
127
+ "ref": "PageTreat",
128
+ "refId": "trt_01M431PMWE8GVWK42G31TJKSYS"
129
+ }
130
+ ]
131
+ }
132
+ ],
133
+ "traits": [
134
+ {
135
+ "category": "interaction",
136
+ "config": {
137
+ "statusSlot": {
138
+ "default": "main",
139
+ "description": "Where the atom shows its one-line status; an organism running it in the background sends it to `system`",
140
+ "label": "Status slot",
141
+ "synonyms": "status area, slot",
142
+ "tier": "presentation",
143
+ "type": "slot"
144
+ }
145
+ },
146
+ "effectRow": [
147
+ {
148
+ "kind": "call-service",
149
+ "resource": "page.apply"
150
+ },
151
+ {
152
+ "kind": "emit",
153
+ "resource": "TREATED"
154
+ },
155
+ {
156
+ "kind": "emit",
157
+ "resource": "TREAT_FAILED"
158
+ },
159
+ {
160
+ "kind": "render-ui",
161
+ "resolved": false,
162
+ "resource": "@config.statusSlot"
163
+ },
164
+ {
165
+ "kind": "set",
166
+ "resource": "@entity.errorMessage"
167
+ },
168
+ {
169
+ "kind": "set",
170
+ "resource": "@entity.treated"
171
+ }
172
+ ],
173
+ "emits": [
174
+ {
175
+ "description": "The page service applied the treatment",
176
+ "event": "APPLIED",
177
+ "eventId": "evt_01M431PMWEAB7ZC4WPP859PDC7",
178
+ "payloadSchema": [
179
+ {
180
+ "name": "applied",
181
+ "required": true,
182
+ "type": "boolean"
183
+ },
184
+ {
185
+ "name": "tab",
186
+ "required": true,
187
+ "type": "number"
188
+ },
189
+ {
190
+ "name": "elementId",
191
+ "required": true,
192
+ "type": "string"
193
+ },
194
+ {
195
+ "name": "treatment",
196
+ "type": "string"
197
+ }
198
+ ],
199
+ "tier": "secondary"
200
+ },
201
+ {
202
+ "description": "The page service could not apply the treatment",
203
+ "event": "APPLY_FAILED",
204
+ "eventId": "evt_01M431PMWETQ15DFSCY7X3S3DQ",
205
+ "payloadSchema": [
206
+ {
207
+ "name": "error",
208
+ "required": true,
209
+ "type": "string"
210
+ }
211
+ ],
212
+ "tier": "secondary"
213
+ },
214
+ {
215
+ "description": "The element now shows the treatment (or, for restore, is back as it was)",
216
+ "event": "TREATED",
217
+ "eventId": "evt_01M431PMWEYV983BES8KAC6K4E",
218
+ "payloadSchema": [
219
+ {
220
+ "name": "tab",
221
+ "required": true,
222
+ "type": "number"
223
+ },
224
+ {
225
+ "name": "elementId",
226
+ "required": true,
227
+ "type": "string"
228
+ },
229
+ {
230
+ "name": "treatment",
231
+ "type": "string"
232
+ }
233
+ ],
234
+ "scope": "external",
235
+ "synonyms": "hidden, blurred, highlighted, labelled, restored",
236
+ "tier": "primary"
237
+ },
238
+ {
239
+ "description": "The treatment could not be applied (the element is gone, or the tab closed)",
240
+ "event": "TREAT_FAILED",
241
+ "eventId": "evt_01M431PMWEBZK1KCZAB9FG6AE1",
242
+ "payloadSchema": [
243
+ {
244
+ "name": "error",
245
+ "required": true,
246
+ "type": "string"
247
+ }
248
+ ],
249
+ "scope": "external",
250
+ "tier": "primary"
251
+ }
252
+ ],
253
+ "entityRefIds": {
254
+ "PageTreatRecord": "ent_01M431PMWEZFEQMV1ZADZ4AR3S"
255
+ },
256
+ "id": "trt_01M431PMWE8GVWK42G31TJKSYS",
257
+ "linkedEntity": "PageTreatRecord",
258
+ "linkedEntityId": "ent_01M431PMWEZFEQMV1ZADZ4AR3S",
259
+ "name": "PageTreat",
260
+ "scope": "instance",
261
+ "stateMachine": {
262
+ "events": [
263
+ {
264
+ "id": "evt_01M431PMWEC98MRRW9ZBPEGHEK",
265
+ "key": "INIT",
266
+ "name": "Initialize"
267
+ },
268
+ {
269
+ "description": "Treat one page element; `label` is the text shown with it (for example why it was hidden)",
270
+ "external": true,
271
+ "id": "evt_01M431PMWE4VVYTJQ6GD0DRJ28",
272
+ "key": "TREAT",
273
+ "name": "Treat",
274
+ "payloadSchema": [
275
+ {
276
+ "name": "tab",
277
+ "required": true,
278
+ "type": "number"
279
+ },
280
+ {
281
+ "name": "elementId",
282
+ "required": true,
283
+ "type": "string"
284
+ },
285
+ {
286
+ "name": "treatment",
287
+ "type": "string"
288
+ },
289
+ {
290
+ "name": "label",
291
+ "type": "string"
292
+ }
293
+ ]
294
+ },
295
+ {
296
+ "description": "The page service applied the treatment",
297
+ "id": "evt_01M431PMWEAB7ZC4WPP859PDC7",
298
+ "key": "APPLIED",
299
+ "name": "Applied",
300
+ "payloadSchema": [
301
+ {
302
+ "name": "applied",
303
+ "required": true,
304
+ "type": "boolean"
305
+ },
306
+ {
307
+ "name": "tab",
308
+ "required": true,
309
+ "type": "number"
310
+ },
311
+ {
312
+ "name": "elementId",
313
+ "required": true,
314
+ "type": "string"
315
+ },
316
+ {
317
+ "name": "treatment",
318
+ "type": "string"
319
+ }
320
+ ],
321
+ "tier": "secondary"
322
+ },
323
+ {
324
+ "description": "The page service could not apply the treatment",
325
+ "id": "evt_01M431PMWETQ15DFSCY7X3S3DQ",
326
+ "key": "APPLY_FAILED",
327
+ "name": "Apply Failed",
328
+ "payloadSchema": [
329
+ {
330
+ "name": "error",
331
+ "required": true,
332
+ "type": "string"
333
+ }
334
+ ],
335
+ "tier": "secondary"
336
+ },
337
+ {
338
+ "description": "The element now shows the treatment (or, for restore, is back as it was)",
339
+ "id": "evt_01M431PMWEYV983BES8KAC6K4E",
340
+ "key": "TREATED",
341
+ "name": "Treated",
342
+ "payloadSchema": [
343
+ {
344
+ "name": "tab",
345
+ "required": true,
346
+ "type": "number"
347
+ },
348
+ {
349
+ "name": "elementId",
350
+ "required": true,
351
+ "type": "string"
352
+ },
353
+ {
354
+ "name": "treatment",
355
+ "type": "string"
356
+ }
357
+ ],
358
+ "synonyms": "hidden, blurred, highlighted, labelled, restored",
359
+ "tier": "primary"
360
+ },
361
+ {
362
+ "description": "The treatment could not be applied (the element is gone, or the tab closed)",
363
+ "id": "evt_01M431PMWEBZK1KCZAB9FG6AE1",
364
+ "key": "TREAT_FAILED",
365
+ "name": "Treat Failed",
366
+ "payloadSchema": [
367
+ {
368
+ "name": "error",
369
+ "required": true,
370
+ "type": "string"
371
+ }
372
+ ],
373
+ "tier": "primary"
374
+ }
375
+ ],
376
+ "states": [
377
+ {
378
+ "isInitial": true,
379
+ "name": "ready"
380
+ }
381
+ ],
382
+ "transitions": [
383
+ {
384
+ "effects": [
385
+ [
386
+ "render-ui",
387
+ "@config.statusSlot",
388
+ {
389
+ "content": "Ready to treat page elements",
390
+ "role": "status",
391
+ "type": "typography",
392
+ "variant": "body"
393
+ }
394
+ ]
395
+ ],
396
+ "event": "INIT",
397
+ "eventId": "evt_01M431PMWEC98MRRW9ZBPEGHEK",
398
+ "from": "ready",
399
+ "to": "ready"
400
+ },
401
+ {
402
+ "effects": [
403
+ [
404
+ "call-service",
405
+ "page",
406
+ "apply",
407
+ {
408
+ "elementId": "@payload.elementId",
409
+ "label": "@payload.label",
410
+ "tab": "@payload.tab",
411
+ "treatment": "@payload.treatment"
412
+ },
413
+ {
414
+ "emit": {
415
+ "failure": "APPLY_FAILED",
416
+ "success": "APPLIED"
417
+ }
418
+ }
419
+ ]
420
+ ],
421
+ "event": "TREAT",
422
+ "eventId": "evt_01M431PMWE4VVYTJQ6GD0DRJ28",
423
+ "from": "ready",
424
+ "to": "ready"
425
+ },
426
+ {
427
+ "effects": [
428
+ [
429
+ "set",
430
+ "@entity.treated",
431
+ [
432
+ "+",
433
+ "@entity.treated",
434
+ 1.0
435
+ ]
436
+ ],
437
+ [
438
+ "emit",
439
+ "TREATED",
440
+ {
441
+ "elementId": "@payload.elementId",
442
+ "tab": "@payload.tab",
443
+ "treatment": "@payload.treatment"
444
+ }
445
+ ]
446
+ ],
447
+ "event": "APPLIED",
448
+ "eventId": "evt_01M431PMWEAB7ZC4WPP859PDC7",
449
+ "from": "ready",
450
+ "to": "ready"
451
+ },
452
+ {
453
+ "effects": [
454
+ [
455
+ "set",
456
+ "@entity.errorMessage",
457
+ "@payload.error"
458
+ ],
459
+ [
460
+ "emit",
461
+ "TREAT_FAILED",
462
+ {
463
+ "error": "@payload.error"
464
+ }
465
+ ],
466
+ [
467
+ "render-ui",
468
+ "@config.statusSlot",
469
+ {
470
+ "content": [
471
+ "str/concat",
472
+ "Couldn't treat a page element: ",
473
+ "@payload.error"
474
+ ],
475
+ "role": "status",
476
+ "type": "typography",
477
+ "variant": "body"
478
+ }
479
+ ]
480
+ ],
481
+ "event": "APPLY_FAILED",
482
+ "eventId": "evt_01M431PMWETQ15DFSCY7X3S3DQ",
483
+ "from": "ready",
484
+ "to": "ready"
485
+ }
486
+ ]
487
+ }
488
+ }
489
+ ]
490
+ }
491
+ ],
492
+ "schemaVersion": 1,
493
+ "version": "1.0.0"
494
+ }