@almadar/std 16.242.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.
- package/behaviors/lolo/infra/atoms/std-page-search.lolo +3 -1
- package/behaviors/lolo/infra/atoms/std-page-watch.lolo +3 -1
- package/behaviors/registry/infra/atoms/std-page-search.orb +19 -1
- package/behaviors/registry/infra/atoms/std-page-watch.orb +19 -1
- package/dist/behaviors-embeddings.hash.json +1 -1
- package/dist/behaviors-embeddings.json +1 -1
- package/dist/knob-embeddings.hash.json +1 -1
- package/dist/knob-embeddings.json +1 -1
- package/package.json +2 -2
|
@@ -6,6 +6,8 @@ orbital PageSearchOrbital {
|
|
|
6
6
|
selector : string
|
|
7
7
|
attr : string
|
|
8
8
|
resolve : boolean
|
|
9
|
+
template : string
|
|
10
|
+
required : boolean
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
type PageResult = {
|
|
@@ -51,7 +53,7 @@ orbital PageSearchOrbital {
|
|
|
51
53
|
@tier "domain"
|
|
52
54
|
fields : Map string PageField = {}
|
|
53
55
|
@label "Fields"
|
|
54
|
-
@description "Field name to how to read it from each result: `selector` (a descendant; absent reads the result itself), `attr` (an attribute; absent reads the text)
|
|
56
|
+
@description "Field name to how to read it from each result: `selector` (a descendant; absent reads the result 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 result out until this field reads non-empty)"
|
|
55
57
|
@synonyms "columns, properties, extract"
|
|
56
58
|
@tier "domain"
|
|
57
59
|
maxResults : number = 10
|
|
@@ -6,6 +6,8 @@ orbital PageWatchOrbital {
|
|
|
6
6
|
selector : string
|
|
7
7
|
attr : string
|
|
8
8
|
resolve : boolean
|
|
9
|
+
template : string
|
|
10
|
+
required : boolean
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
entity PageWatchRecord [runtime] {
|
|
@@ -36,7 +38,7 @@ orbital PageWatchOrbital {
|
|
|
36
38
|
@tier "domain"
|
|
37
39
|
fields : Map string PageField = {}
|
|
38
40
|
@label "Fields"
|
|
39
|
-
@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)
|
|
41
|
+
@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)"
|
|
40
42
|
@synonyms "columns, properties, extract, read"
|
|
41
43
|
@tier "domain"
|
|
42
44
|
itemEvent : event = "PageWatch.ITEM_FOUND"
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"config": {
|
|
164
164
|
"fields": {
|
|
165
165
|
"default": {},
|
|
166
|
-
"description": "Field name to how to read it from each result: `selector` (a descendant; absent reads the result itself), `attr` (an attribute; absent reads the text)
|
|
166
|
+
"description": "Field name to how to read it from each result: `selector` (a descendant; absent reads the result 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 result out until this field reads non-empty)",
|
|
167
167
|
"items": {
|
|
168
168
|
"properties": {
|
|
169
169
|
"attr": {
|
|
@@ -171,6 +171,11 @@
|
|
|
171
171
|
"required": false,
|
|
172
172
|
"type": "string"
|
|
173
173
|
},
|
|
174
|
+
"required": {
|
|
175
|
+
"name": "required",
|
|
176
|
+
"required": false,
|
|
177
|
+
"type": "boolean"
|
|
178
|
+
},
|
|
174
179
|
"resolve": {
|
|
175
180
|
"name": "resolve",
|
|
176
181
|
"required": false,
|
|
@@ -180,6 +185,11 @@
|
|
|
180
185
|
"name": "selector",
|
|
181
186
|
"required": false,
|
|
182
187
|
"type": "string"
|
|
188
|
+
},
|
|
189
|
+
"template": {
|
|
190
|
+
"name": "template",
|
|
191
|
+
"required": false,
|
|
192
|
+
"type": "string"
|
|
183
193
|
}
|
|
184
194
|
},
|
|
185
195
|
"type": "object"
|
|
@@ -846,6 +856,14 @@
|
|
|
846
856
|
{
|
|
847
857
|
"name": "resolve",
|
|
848
858
|
"type": "boolean"
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
"name": "template",
|
|
862
|
+
"type": "string"
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
"name": "required",
|
|
866
|
+
"type": "boolean"
|
|
849
867
|
}
|
|
850
868
|
],
|
|
851
869
|
"PageResult": [
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"config": {
|
|
147
147
|
"fields": {
|
|
148
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)
|
|
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
150
|
"items": {
|
|
151
151
|
"properties": {
|
|
152
152
|
"attr": {
|
|
@@ -154,6 +154,11 @@
|
|
|
154
154
|
"required": false,
|
|
155
155
|
"type": "string"
|
|
156
156
|
},
|
|
157
|
+
"required": {
|
|
158
|
+
"name": "required",
|
|
159
|
+
"required": false,
|
|
160
|
+
"type": "boolean"
|
|
161
|
+
},
|
|
157
162
|
"resolve": {
|
|
158
163
|
"name": "resolve",
|
|
159
164
|
"required": false,
|
|
@@ -163,6 +168,11 @@
|
|
|
163
168
|
"name": "selector",
|
|
164
169
|
"required": false,
|
|
165
170
|
"type": "string"
|
|
171
|
+
},
|
|
172
|
+
"template": {
|
|
173
|
+
"name": "template",
|
|
174
|
+
"required": false,
|
|
175
|
+
"type": "string"
|
|
166
176
|
}
|
|
167
177
|
},
|
|
168
178
|
"type": "object"
|
|
@@ -544,6 +554,14 @@
|
|
|
544
554
|
{
|
|
545
555
|
"name": "resolve",
|
|
546
556
|
"type": "boolean"
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"name": "template",
|
|
560
|
+
"type": "string"
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"name": "required",
|
|
564
|
+
"type": "boolean"
|
|
547
565
|
}
|
|
548
566
|
]
|
|
549
567
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almadar/std",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.243.0",
|
|
4
4
|
"description": "Standard library operators for Almadar (math, string, array, etc.)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"compiler": ">=4.10.0"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@almadar/core": "^10.
|
|
90
|
+
"@almadar/core": "^10.118.0"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@almadar/eslint-plugin": "^2.21.0",
|