@almadar/std 16.241.0 → 16.243.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 (109) hide show
  1. package/behaviors/behaviors-registry.json +4650 -535
  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 +136 -0
  8. package/behaviors/lolo/infra/atoms/std-page-treat.lolo +59 -0
  9. package/behaviors/lolo/infra/atoms/std-page-watch.lolo +88 -0
  10. package/behaviors/lolo/ui/core/atoms/std-book-reader.lolo +25 -1
  11. package/behaviors/lolo/ui/core/atoms/std-card-grid.lolo +9 -0
  12. package/behaviors/lolo/ui/core/atoms/std-doc-page.lolo +153 -0
  13. package/behaviors/lolo/ui/learning/atoms/std-learn-arrangement.lolo +124 -92
  14. package/behaviors/lolo/ui/learning/atoms/std-learn-classify.lolo +114 -55
  15. package/behaviors/lolo/ui/learning/atoms/std-learn-compare.lolo +40 -14
  16. package/behaviors/lolo/ui/learning/atoms/std-learn-coupled-sim.lolo +363 -123
  17. package/behaviors/lolo/ui/learning/atoms/std-learn-derivation.lolo +93 -48
  18. package/behaviors/lolo/ui/learning/atoms/std-learn-diagram.lolo +60 -28
  19. package/behaviors/lolo/ui/learning/atoms/std-learn-doser.lolo +193 -96
  20. package/behaviors/lolo/ui/learning/atoms/std-learn-estimate.lolo +75 -32
  21. package/behaviors/lolo/ui/learning/atoms/std-learn-goal-seek.lolo +142 -86
  22. package/behaviors/lolo/ui/learning/atoms/std-learn-grid-sim.lolo +266 -98
  23. package/behaviors/lolo/ui/learning/atoms/std-learn-hotspot.lolo +103 -65
  24. package/behaviors/lolo/ui/learning/atoms/std-learn-live-sim.lolo +223 -109
  25. package/behaviors/lolo/ui/learning/atoms/std-learn-measure.lolo +232 -64
  26. package/behaviors/lolo/ui/learning/atoms/std-learn-param-explorer.lolo +69 -29
  27. package/behaviors/lolo/ui/learning/atoms/std-learn-perturb.lolo +363 -123
  28. package/behaviors/lolo/ui/learning/atoms/std-learn-predict.lolo +73 -41
  29. package/behaviors/lolo/ui/learning/atoms/std-learn-sample-accumulator.lolo +96 -38
  30. package/behaviors/lolo/ui/learning/atoms/std-learn-sandbox.lolo +65 -45
  31. package/behaviors/lolo/ui/learning/atoms/std-learn-scatter-fit.lolo +243 -117
  32. package/behaviors/lolo/ui/learning/atoms/std-learn-scenario.lolo +76 -28
  33. package/behaviors/lolo/ui/learning/atoms/std-learn-sim-3d.lolo +228 -109
  34. package/behaviors/lolo/ui/learning/atoms/std-learn-speed-drill.lolo +95 -44
  35. package/behaviors/lolo/ui/learning/atoms/std-learn-stepper.lolo +199 -125
  36. package/behaviors/lolo/ui/learning/atoms/std-learn-tour-3d.lolo +92 -48
  37. package/behaviors/lolo/ui/learning/atoms/std-learn-trace-player.lolo +239 -78
  38. package/behaviors/lolo/ui/learning/atoms/std-learn-transport.lolo +147 -38
  39. package/behaviors/lolo/ui/learning/atoms/std-learn-tree.lolo +123 -58
  40. package/behaviors/lolo/ui/learning/atoms/ui-algo-graph-canvas.lolo +22 -0
  41. package/behaviors/lolo/ui/learning/atoms/ui-algorithm-canvas.lolo +26 -0
  42. package/behaviors/lolo/ui/learning/atoms/ui-biology-canvas.lolo +26 -0
  43. package/behaviors/lolo/ui/learning/atoms/ui-chemistry-canvas.lolo +27 -1
  44. package/behaviors/lolo/ui/learning/atoms/ui-learning-canvas.lolo +27 -1
  45. package/behaviors/lolo/ui/learning/atoms/ui-math-canvas.lolo +29 -9
  46. package/behaviors/lolo/ui/learning/atoms/ui-physics-canvas.lolo +26 -0
  47. package/behaviors/lolo-behavior-contracts.json +1 -1
  48. package/behaviors/registry/agent/atoms/std-agent-memory.orb +372 -2
  49. package/behaviors/registry/agent/atoms/std-agent-session.orb +4752 -348
  50. package/behaviors/registry/agent/atoms/std-agent-tool-loop.orb +54 -42
  51. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +356 -122
  52. package/behaviors/registry/factory-signatures.json +1 -1
  53. package/behaviors/registry/infra/atoms/std-page-open.orb +435 -0
  54. package/behaviors/registry/infra/atoms/std-page-search.orb +885 -0
  55. package/behaviors/registry/infra/atoms/std-page-treat.orb +494 -0
  56. package/behaviors/registry/infra/atoms/std-page-watch.orb +572 -0
  57. package/behaviors/registry/ui/core/atoms/std-book-reader.orb +119 -0
  58. package/behaviors/registry/ui/core/atoms/std-card-grid.orb +61 -0
  59. package/behaviors/registry/ui/core/atoms/std-doc-page.orb +594 -0
  60. package/behaviors/registry/ui/learning/atoms/std-learn-arrangement.orb +903 -369
  61. package/behaviors/registry/ui/learning/atoms/std-learn-classify.orb +1002 -232
  62. package/behaviors/registry/ui/learning/atoms/std-learn-compare.orb +253 -74
  63. package/behaviors/registry/ui/learning/atoms/std-learn-coupled-sim.orb +3624 -921
  64. package/behaviors/registry/ui/learning/atoms/std-learn-derivation.orb +685 -144
  65. package/behaviors/registry/ui/learning/atoms/std-learn-diagram.orb +404 -52
  66. package/behaviors/registry/ui/learning/atoms/std-learn-doser.orb +1787 -210
  67. package/behaviors/registry/ui/learning/atoms/std-learn-estimate.orb +699 -71
  68. package/behaviors/registry/ui/learning/atoms/std-learn-goal-seek.orb +1102 -578
  69. package/behaviors/registry/ui/learning/atoms/std-learn-grid-sim.orb +2760 -872
  70. package/behaviors/registry/ui/learning/atoms/std-learn-hotspot.orb +689 -152
  71. package/behaviors/registry/ui/learning/atoms/std-learn-live-sim.orb +1431 -633
  72. package/behaviors/registry/ui/learning/atoms/std-learn-measure.orb +2485 -512
  73. package/behaviors/registry/ui/learning/atoms/std-learn-param-explorer.orb +501 -197
  74. package/behaviors/registry/ui/learning/atoms/std-learn-perturb.orb +3642 -928
  75. package/behaviors/registry/ui/learning/atoms/std-learn-predict.orb +705 -125
  76. package/behaviors/registry/ui/learning/atoms/std-learn-sample-accumulator.orb +624 -114
  77. package/behaviors/registry/ui/learning/atoms/std-learn-sandbox.orb +405 -153
  78. package/behaviors/registry/ui/learning/atoms/std-learn-scatter-fit.orb +1911 -611
  79. package/behaviors/registry/ui/learning/atoms/std-learn-scenario.orb +436 -128
  80. package/behaviors/registry/ui/learning/atoms/std-learn-sim-3d.orb +2482 -485
  81. package/behaviors/registry/ui/learning/atoms/std-learn-speed-drill.orb +896 -192
  82. package/behaviors/registry/ui/learning/atoms/std-learn-stepper.orb +2001 -759
  83. package/behaviors/registry/ui/learning/atoms/std-learn-tour-3d.orb +734 -228
  84. package/behaviors/registry/ui/learning/atoms/std-learn-trace-player.orb +2501 -764
  85. package/behaviors/registry/ui/learning/atoms/std-learn-transport.orb +1591 -173
  86. package/behaviors/registry/ui/learning/atoms/std-learn-tree.orb +883 -122
  87. package/behaviors/registry/ui/learning/atoms/ui-algo-graph-canvas.orb +176 -0
  88. package/behaviors/registry/ui/learning/atoms/ui-algorithm-canvas.orb +211 -0
  89. package/behaviors/registry/ui/learning/atoms/ui-biology-canvas.orb +211 -0
  90. package/behaviors/registry/ui/learning/atoms/ui-chemistry-canvas.orb +212 -1
  91. package/behaviors/registry/ui/learning/atoms/ui-learning-canvas.orb +212 -1
  92. package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +203 -9
  93. package/behaviors/registry/ui/learning/atoms/ui-physics-canvas.orb +211 -0
  94. package/behaviors/signatures.lolo +325 -655
  95. package/dist/behaviors/exports-reader.js +16092 -9747
  96. package/dist/behaviors/functions/index.d.ts +1052 -136
  97. package/dist/behaviors/functions/index.js +16063 -9745
  98. package/dist/behaviors/index.d.ts +1 -1
  99. package/dist/behaviors/index.js +16093 -9748
  100. package/dist/behaviors/query.js +16092 -9747
  101. package/dist/behaviors-embeddings.hash.json +3 -3
  102. package/dist/behaviors-embeddings.json +45 -25
  103. package/dist/behaviors-registry.json +4650 -535
  104. package/dist/index.d.ts +1 -1
  105. package/dist/index.js +16093 -9748
  106. package/dist/knob-embeddings.hash.json +3 -3
  107. package/dist/knob-embeddings.json +607 -263
  108. package/dist/registry/factory-signatures.json +1 -1
  109. package/package.json +3 -3
@@ -0,0 +1,572 @@
1
+ {
2
+ "description": "std-page-watch — watches every browser tab whose URL matches `match` for elements matching `itemSelector`, and reports each element once as ITEM with the `fields` read from it, now and as the page changes. Needs a host with the `page` service (a browser extension, which asks for access to exactly the `match` pages). Each item carries its tab and element id; compose std-page-treat to hide, blur, highlight or label it.",
3
+ "ledger": {
4
+ "entries": {
5
+ "ent_01M431PMTEWWMZ1XCC8FHVHBW8": {
6
+ "bakedName": "PageWatchRecord",
7
+ "curName": "PageWatchRecord",
8
+ "id": "ent_01M431PMTEWWMZ1XCC8FHVHBW8",
9
+ "kind": "entity",
10
+ "owner": "workspace",
11
+ "renames": []
12
+ },
13
+ "evt_01M431PMTE6W3CZ5QJMYS1459V": {
14
+ "bakedName": "ITEM_FOUND",
15
+ "curName": "ITEM_FOUND",
16
+ "id": "evt_01M431PMTE6W3CZ5QJMYS1459V",
17
+ "kind": "event",
18
+ "owner": "workspace",
19
+ "parent": "trt_01M431PMTE475YASHGMJKN6EFX",
20
+ "renames": []
21
+ },
22
+ "evt_01M431PMTEA16WSSMZX11M16MZ": {
23
+ "bakedName": "WATCH_FAILED",
24
+ "curName": "WATCH_FAILED",
25
+ "id": "evt_01M431PMTEA16WSSMZX11M16MZ",
26
+ "kind": "event",
27
+ "owner": "workspace",
28
+ "parent": "trt_01M431PMTE475YASHGMJKN6EFX",
29
+ "renames": []
30
+ },
31
+ "evt_01M431PMTEB6NGWMFGA2RJ75BX": {
32
+ "bakedName": "ITEM",
33
+ "curName": "ITEM",
34
+ "id": "evt_01M431PMTEB6NGWMFGA2RJ75BX",
35
+ "kind": "event",
36
+ "owner": "workspace",
37
+ "parent": "trt_01M431PMTE475YASHGMJKN6EFX",
38
+ "renames": []
39
+ },
40
+ "evt_01M431PMTEE1C4HT952B1BTJKF": {
41
+ "bakedName": "INIT",
42
+ "curName": "INIT",
43
+ "id": "evt_01M431PMTEE1C4HT952B1BTJKF",
44
+ "kind": "event",
45
+ "owner": "workspace",
46
+ "parent": "trt_01M431PMTE475YASHGMJKN6EFX",
47
+ "renames": []
48
+ },
49
+ "evt_01M431PMTEWJ5ZVF1VQHTS11F7": {
50
+ "bakedName": "WATCHING",
51
+ "curName": "WATCHING",
52
+ "id": "evt_01M431PMTEWJ5ZVF1VQHTS11F7",
53
+ "kind": "event",
54
+ "owner": "workspace",
55
+ "parent": "trt_01M431PMTE475YASHGMJKN6EFX",
56
+ "renames": []
57
+ },
58
+ "orb_01M431PMTEVDD69TFRG6MFPBXP": {
59
+ "bakedName": "PageWatchOrbital",
60
+ "curName": "PageWatchOrbital",
61
+ "id": "orb_01M431PMTEVDD69TFRG6MFPBXP",
62
+ "kind": "orbital",
63
+ "owner": "workspace",
64
+ "renames": []
65
+ },
66
+ "pag_01M431PMTEZ080BE625P6D0CKX": {
67
+ "bakedName": "PageWatchPage",
68
+ "curName": "PageWatchPage",
69
+ "id": "pag_01M431PMTEZ080BE625P6D0CKX",
70
+ "kind": "page",
71
+ "owner": "workspace",
72
+ "renames": []
73
+ },
74
+ "trt_01M431PMTE475YASHGMJKN6EFX": {
75
+ "bakedName": "PageWatch",
76
+ "curName": "PageWatch",
77
+ "id": "trt_01M431PMTE475YASHGMJKN6EFX",
78
+ "kind": "trait",
79
+ "owner": "workspace",
80
+ "renames": []
81
+ }
82
+ },
83
+ "schemaVersion": 1
84
+ },
85
+ "name": "std-page-watch",
86
+ "orbitals": [
87
+ {
88
+ "entity": {
89
+ "fields": [
90
+ {
91
+ "default": "",
92
+ "description": "Id of the attached watch",
93
+ "name": "watchId",
94
+ "synonyms": "watch id, subscription",
95
+ "type": "string"
96
+ },
97
+ {
98
+ "default": 0.0,
99
+ "description": "How many elements have been reported",
100
+ "name": "found",
101
+ "synonyms": "count, items seen, reported",
102
+ "type": "number"
103
+ },
104
+ {
105
+ "default": "",
106
+ "description": "Why the watch could not be attached; blank = none",
107
+ "name": "errorMessage",
108
+ "synonyms": "error, failure reason",
109
+ "type": "string"
110
+ },
111
+ {
112
+ "default": "starting",
113
+ "description": "Whether the watch is attached",
114
+ "name": "status",
115
+ "synonyms": "state, watching, connected",
116
+ "type": "string",
117
+ "values": [
118
+ "starting",
119
+ "watching",
120
+ "failed"
121
+ ]
122
+ }
123
+ ],
124
+ "id": "ent_01M431PMTEWWMZ1XCC8FHVHBW8",
125
+ "name": "PageWatchRecord",
126
+ "persistence": "runtime"
127
+ },
128
+ "id": "orb_01M431PMTEVDD69TFRG6MFPBXP",
129
+ "name": "PageWatchOrbital",
130
+ "pages": [
131
+ {
132
+ "id": "pag_01M431PMTEZ080BE625P6D0CKX",
133
+ "name": "PageWatchPage",
134
+ "path": "/page-watch",
135
+ "traits": [
136
+ {
137
+ "ref": "PageWatch",
138
+ "refId": "trt_01M431PMTE475YASHGMJKN6EFX"
139
+ }
140
+ ]
141
+ }
142
+ ],
143
+ "traits": [
144
+ {
145
+ "category": "lifecycle",
146
+ "config": {
147
+ "fields": {
148
+ "default": {},
149
+ "description": "Field name to how to read it from each element: `selector` (a descendant; absent reads the element itself), `attr` (an attribute; absent reads the text) , `resolve` (the value is a URL: return it absolute), `template` (compose the value from other fields, `{name}` per field; empty when any is empty) and `required` (leave the element out until this field reads non-empty — a placeholder is reported once it fills in)",
150
+ "items": {
151
+ "properties": {
152
+ "attr": {
153
+ "name": "attr",
154
+ "required": false,
155
+ "type": "string"
156
+ },
157
+ "required": {
158
+ "name": "required",
159
+ "required": false,
160
+ "type": "boolean"
161
+ },
162
+ "resolve": {
163
+ "name": "resolve",
164
+ "required": false,
165
+ "type": "boolean"
166
+ },
167
+ "selector": {
168
+ "name": "selector",
169
+ "required": false,
170
+ "type": "string"
171
+ },
172
+ "template": {
173
+ "name": "template",
174
+ "required": false,
175
+ "type": "string"
176
+ }
177
+ },
178
+ "type": "object"
179
+ },
180
+ "label": "Fields",
181
+ "synonyms": "columns, properties, extract, read",
182
+ "tier": "domain",
183
+ "type": "Map<string,PageField>"
184
+ },
185
+ "itemEvent": {
186
+ "default": "PageWatch.ITEM_FOUND",
187
+ "description": "The declared input each element arrives as; it follows the trait when a composer renames it",
188
+ "label": "Item input",
189
+ "tier": "internal",
190
+ "type": "event"
191
+ },
192
+ "itemSelector": {
193
+ "default": ".item",
194
+ "description": "CSS selector of the elements to report",
195
+ "label": "Item selector",
196
+ "synonyms": "selector, element, card, tile, row",
197
+ "tier": "domain",
198
+ "type": "string"
199
+ },
200
+ "match": {
201
+ "default": "https://example.com/*",
202
+ "description": "URL match pattern of the tabs to watch, in Chrome match-pattern syntax (`<scheme>://<host>/<path>` with `*` wildcards)",
203
+ "label": "Pages",
204
+ "synonyms": "site, url pattern, pages, domain",
205
+ "tier": "domain",
206
+ "type": "string"
207
+ },
208
+ "statusSlot": {
209
+ "default": "main",
210
+ "description": "Where the atom shows its one-line status; an organism running it in the background sends it to `system`",
211
+ "label": "Status slot",
212
+ "synonyms": "status area, slot",
213
+ "tier": "presentation",
214
+ "type": "slot"
215
+ }
216
+ },
217
+ "effectRow": [
218
+ {
219
+ "kind": "call-service",
220
+ "resource": "page.watch"
221
+ },
222
+ {
223
+ "kind": "emit",
224
+ "resource": "ITEM"
225
+ },
226
+ {
227
+ "kind": "render-ui",
228
+ "resolved": false,
229
+ "resource": "@config.statusSlot"
230
+ },
231
+ {
232
+ "kind": "set",
233
+ "resource": "@entity.errorMessage"
234
+ },
235
+ {
236
+ "kind": "set",
237
+ "resource": "@entity.found"
238
+ },
239
+ {
240
+ "kind": "set",
241
+ "resource": "@entity.status"
242
+ },
243
+ {
244
+ "kind": "set",
245
+ "resource": "@entity.watchId"
246
+ }
247
+ ],
248
+ "emits": [
249
+ {
250
+ "description": "The watch is attached",
251
+ "event": "WATCHING",
252
+ "eventId": "evt_01M431PMTEWJ5ZVF1VQHTS11F7",
253
+ "payloadSchema": [
254
+ {
255
+ "name": "watchId",
256
+ "required": true,
257
+ "type": "string"
258
+ }
259
+ ],
260
+ "tier": "secondary"
261
+ },
262
+ {
263
+ "description": "The watch could not be attached (no page service, or no access to the pages)",
264
+ "event": "WATCH_FAILED",
265
+ "eventId": "evt_01M431PMTEA16WSSMZX11M16MZ",
266
+ "payloadSchema": [
267
+ {
268
+ "name": "error",
269
+ "required": true,
270
+ "type": "string"
271
+ }
272
+ ],
273
+ "scope": "external",
274
+ "tier": "primary"
275
+ },
276
+ {
277
+ "description": "One matching element, reported once, with the fields read from it",
278
+ "event": "ITEM",
279
+ "eventId": "evt_01M431PMTEB6NGWMFGA2RJ75BX",
280
+ "payloadSchema": [
281
+ {
282
+ "name": "tab",
283
+ "required": true,
284
+ "type": "number"
285
+ },
286
+ {
287
+ "name": "elementId",
288
+ "required": true,
289
+ "type": "string"
290
+ },
291
+ {
292
+ "name": "url",
293
+ "required": true,
294
+ "type": "string"
295
+ },
296
+ {
297
+ "name": "fields",
298
+ "type": "Map<string,string>"
299
+ }
300
+ ],
301
+ "scope": "external",
302
+ "synonyms": "element found, item seen, new item",
303
+ "tier": "primary"
304
+ }
305
+ ],
306
+ "entityRefIds": {
307
+ "PageWatchRecord": "ent_01M431PMTEWWMZ1XCC8FHVHBW8"
308
+ },
309
+ "id": "trt_01M431PMTE475YASHGMJKN6EFX",
310
+ "linkedEntity": "PageWatchRecord",
311
+ "linkedEntityId": "ent_01M431PMTEWWMZ1XCC8FHVHBW8",
312
+ "name": "PageWatch",
313
+ "scope": "instance",
314
+ "stateMachine": {
315
+ "events": [
316
+ {
317
+ "id": "evt_01M431PMTEE1C4HT952B1BTJKF",
318
+ "key": "INIT",
319
+ "name": "Initialize"
320
+ },
321
+ {
322
+ "description": "The watch is attached",
323
+ "id": "evt_01M431PMTEWJ5ZVF1VQHTS11F7",
324
+ "key": "WATCHING",
325
+ "name": "Watching",
326
+ "payloadSchema": [
327
+ {
328
+ "name": "watchId",
329
+ "required": true,
330
+ "type": "string"
331
+ }
332
+ ],
333
+ "tier": "secondary"
334
+ },
335
+ {
336
+ "description": "The watch could not be attached (no page service, or no access to the pages)",
337
+ "id": "evt_01M431PMTEA16WSSMZX11M16MZ",
338
+ "key": "WATCH_FAILED",
339
+ "name": "Watch Failed",
340
+ "payloadSchema": [
341
+ {
342
+ "name": "error",
343
+ "required": true,
344
+ "type": "string"
345
+ }
346
+ ],
347
+ "tier": "primary"
348
+ },
349
+ {
350
+ "description": "One matching element, delivered by the page service",
351
+ "external": true,
352
+ "id": "evt_01M431PMTE6W3CZ5QJMYS1459V",
353
+ "key": "ITEM_FOUND",
354
+ "name": "Item Found",
355
+ "payloadSchema": [
356
+ {
357
+ "name": "tab",
358
+ "required": true,
359
+ "type": "number"
360
+ },
361
+ {
362
+ "name": "elementId",
363
+ "required": true,
364
+ "type": "string"
365
+ },
366
+ {
367
+ "name": "url",
368
+ "required": true,
369
+ "type": "string"
370
+ },
371
+ {
372
+ "name": "fields",
373
+ "type": "Map<string,string>"
374
+ }
375
+ ]
376
+ },
377
+ {
378
+ "description": "One matching element, reported once, with the fields read from it",
379
+ "id": "evt_01M431PMTEB6NGWMFGA2RJ75BX",
380
+ "key": "ITEM",
381
+ "name": "Item",
382
+ "payloadSchema": [
383
+ {
384
+ "name": "tab",
385
+ "required": true,
386
+ "type": "number"
387
+ },
388
+ {
389
+ "name": "elementId",
390
+ "required": true,
391
+ "type": "string"
392
+ },
393
+ {
394
+ "name": "url",
395
+ "required": true,
396
+ "type": "string"
397
+ },
398
+ {
399
+ "name": "fields",
400
+ "type": "Map<string,string>"
401
+ }
402
+ ],
403
+ "synonyms": "element found, item seen, new item",
404
+ "tier": "primary"
405
+ }
406
+ ],
407
+ "states": [
408
+ {
409
+ "isInitial": true,
410
+ "name": "active"
411
+ }
412
+ ],
413
+ "transitions": [
414
+ {
415
+ "effects": [
416
+ [
417
+ "call-service",
418
+ "page",
419
+ "watch",
420
+ {
421
+ "event": "@config.itemEvent",
422
+ "fields": "@config.fields",
423
+ "match": "@config.match",
424
+ "selector": "@config.itemSelector"
425
+ },
426
+ {
427
+ "emit": {
428
+ "failure": "WATCH_FAILED",
429
+ "success": "WATCHING"
430
+ }
431
+ }
432
+ ],
433
+ [
434
+ "render-ui",
435
+ "@config.statusSlot",
436
+ {
437
+ "content": "Connecting to the pages…",
438
+ "role": "status",
439
+ "type": "typography",
440
+ "variant": "body"
441
+ }
442
+ ]
443
+ ],
444
+ "event": "INIT",
445
+ "eventId": "evt_01M431PMTEE1C4HT952B1BTJKF",
446
+ "from": "active",
447
+ "to": "active"
448
+ },
449
+ {
450
+ "effects": [
451
+ [
452
+ "set",
453
+ "@entity.watchId",
454
+ "@payload.watchId"
455
+ ],
456
+ [
457
+ "set",
458
+ "@entity.status",
459
+ "watching"
460
+ ],
461
+ [
462
+ "render-ui",
463
+ "@config.statusSlot",
464
+ {
465
+ "content": [
466
+ "str/concat",
467
+ "Watching ",
468
+ "@config.match"
469
+ ],
470
+ "role": "status",
471
+ "type": "typography",
472
+ "variant": "body"
473
+ }
474
+ ]
475
+ ],
476
+ "event": "WATCHING",
477
+ "eventId": "evt_01M431PMTEWJ5ZVF1VQHTS11F7",
478
+ "from": "active",
479
+ "to": "active"
480
+ },
481
+ {
482
+ "effects": [
483
+ [
484
+ "set",
485
+ "@entity.errorMessage",
486
+ "@payload.error"
487
+ ],
488
+ [
489
+ "set",
490
+ "@entity.status",
491
+ "failed"
492
+ ],
493
+ [
494
+ "render-ui",
495
+ "@config.statusSlot",
496
+ {
497
+ "content": [
498
+ "str/concat",
499
+ "Can't watch these pages: ",
500
+ "@payload.error"
501
+ ],
502
+ "role": "status",
503
+ "type": "typography",
504
+ "variant": "body"
505
+ }
506
+ ]
507
+ ],
508
+ "event": "WATCH_FAILED",
509
+ "eventId": "evt_01M431PMTEA16WSSMZX11M16MZ",
510
+ "from": "active",
511
+ "to": "active"
512
+ },
513
+ {
514
+ "effects": [
515
+ [
516
+ "set",
517
+ "@entity.found",
518
+ [
519
+ "+",
520
+ "@entity.found",
521
+ 1.0
522
+ ]
523
+ ],
524
+ [
525
+ "emit",
526
+ "ITEM",
527
+ {
528
+ "elementId": "@payload.elementId",
529
+ "fields": "@payload.fields",
530
+ "tab": "@payload.tab",
531
+ "url": "@payload.url"
532
+ }
533
+ ]
534
+ ],
535
+ "event": "ITEM_FOUND",
536
+ "eventId": "evt_01M431PMTE6W3CZ5QJMYS1459V",
537
+ "from": "active",
538
+ "to": "active"
539
+ }
540
+ ]
541
+ }
542
+ }
543
+ ],
544
+ "types": {
545
+ "PageField": [
546
+ {
547
+ "name": "selector",
548
+ "type": "string"
549
+ },
550
+ {
551
+ "name": "attr",
552
+ "type": "string"
553
+ },
554
+ {
555
+ "name": "resolve",
556
+ "type": "boolean"
557
+ },
558
+ {
559
+ "name": "template",
560
+ "type": "string"
561
+ },
562
+ {
563
+ "name": "required",
564
+ "type": "boolean"
565
+ }
566
+ ]
567
+ }
568
+ }
569
+ ],
570
+ "schemaVersion": 1,
571
+ "version": "1.0.0"
572
+ }