sil-openclaw 0.8.2 → 0.8.4
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/CHANGELOG.md +34 -0
- package/README.md +2 -3
- package/dist/lib/poller.js +0 -1
- package/dist/lib/sil-client.js +19 -14
- package/dist/tools/catalog.js +132 -38
- package/dist/tools/identity.js +4 -4
- package/openclaw.plugin.json +1 -1
- package/package.json +4 -8
- package/schema/PROVENANCE.md +3 -3
- package/schema/shopping-content-response.schema.json +5 -1
- package/schema/shopping-offers-response.schema.json +24 -0
- package/schema/shopping-search-request.schema.json +55 -1
- package/schema/shopping-search-response.schema.json +49 -7
- package/schema/shopping-user-forget-request.schema.json +1 -1
- package/schema/shopping-user-forget-response.schema.json +8 -8
- package/schema/shopping-user-read-request.schema.json +27 -29
- package/schema/shopping-user-read-response.schema.json +145 -54
- package/schema/shopping-user-remember-request.schema.json +95 -55
- package/schema/shopping-user-remember-response.schema.json +82 -3
- package/sil-shopping/SKILL.md +120 -147
|
@@ -96,11 +96,65 @@
|
|
|
96
96
|
"additionalProperties": false,
|
|
97
97
|
"description": "Keeps variants with an offer in this currency within one or both ends; sil converts nothing."
|
|
98
98
|
},
|
|
99
|
+
"leans": {
|
|
100
|
+
"type": "array",
|
|
101
|
+
"items": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"required": [
|
|
104
|
+
"spec",
|
|
105
|
+
"op",
|
|
106
|
+
"value"
|
|
107
|
+
],
|
|
108
|
+
"properties": {
|
|
109
|
+
"spec": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"minLength": 1,
|
|
112
|
+
"maxLength": 64,
|
|
113
|
+
"description": "Sends a spec the domain read listed, unchanged: a part’s by its path (`boiler.boilerVolume`)."
|
|
114
|
+
},
|
|
115
|
+
"op": {
|
|
116
|
+
"anyOf": [
|
|
117
|
+
{
|
|
118
|
+
"type": "string",
|
|
119
|
+
"const": "eq"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"type": "string",
|
|
123
|
+
"const": "neq"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"type": "string",
|
|
127
|
+
"const": "gte"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"type": "string",
|
|
131
|
+
"const": "lte"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"type": "string",
|
|
135
|
+
"const": "in"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"type": "string",
|
|
139
|
+
"const": "nin"
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"description": "Sends the operator the domain read listed for this spec."
|
|
143
|
+
},
|
|
144
|
+
"value": {
|
|
145
|
+
"description": "Sends the desired value, typed by the spec's type."
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"additionalProperties": false
|
|
149
|
+
},
|
|
150
|
+
"maxItems": 4,
|
|
151
|
+
"description": "Sends what the buyer likes, as a spec row — a brand they like is `{ \"spec\": \"brand\", \"op\": \"eq\", \"value\": \"Baratza\" }`: ranks the products holding it first among those fitting the wants alike, and never narrows."
|
|
152
|
+
},
|
|
99
153
|
"query": {
|
|
100
154
|
"type": "string",
|
|
101
155
|
"minLength": 1,
|
|
102
156
|
"maxLength": 512,
|
|
103
|
-
"description": "Sends the words the buyer used for what no spec holds — a name, a model, \"travel\"
|
|
157
|
+
"description": "Sends the words the buyer used for what no spec holds — a name, a model, \"travel\": a product whose title holds every word, whole or as its start, ranks before the cheaper."
|
|
104
158
|
},
|
|
105
159
|
"n": {
|
|
106
160
|
"type": "integer",
|
|
@@ -75,6 +75,11 @@
|
|
|
75
75
|
"type": "string",
|
|
76
76
|
"minLength": 1,
|
|
77
77
|
"description": "Reads the value in this unit."
|
|
78
|
+
},
|
|
79
|
+
"lean": {
|
|
80
|
+
"type": "boolean",
|
|
81
|
+
"const": true,
|
|
82
|
+
"description": "Is a lean: it ranks the products, never narrows them."
|
|
78
83
|
}
|
|
79
84
|
},
|
|
80
85
|
"additionalProperties": false
|
|
@@ -125,13 +130,14 @@
|
|
|
125
130
|
}
|
|
126
131
|
]
|
|
127
132
|
},
|
|
128
|
-
"description": "Echoes the ask, numbered from 1: each spec with its unit, then the price."
|
|
133
|
+
"description": "Echoes the ask, numbered from 1: each spec with its unit, then the price, then the leans."
|
|
129
134
|
},
|
|
130
135
|
"search_stats": {
|
|
131
136
|
"type": "object",
|
|
132
137
|
"required": [
|
|
133
138
|
"sellers",
|
|
134
|
-
"products"
|
|
139
|
+
"products",
|
|
140
|
+
"asks"
|
|
135
141
|
],
|
|
136
142
|
"properties": {
|
|
137
143
|
"sellers": {
|
|
@@ -149,7 +155,7 @@
|
|
|
149
155
|
"with_fit": {
|
|
150
156
|
"type": "integer",
|
|
151
157
|
"minimum": 0,
|
|
152
|
-
"description": "Shops behind a product holding every
|
|
158
|
+
"description": "Shops behind a product holding every want."
|
|
153
159
|
}
|
|
154
160
|
},
|
|
155
161
|
"additionalProperties": false,
|
|
@@ -175,10 +181,46 @@
|
|
|
175
181
|
},
|
|
176
182
|
"additionalProperties": false,
|
|
177
183
|
"description": "Counts the products."
|
|
184
|
+
},
|
|
185
|
+
"asks": {
|
|
186
|
+
"type": "array",
|
|
187
|
+
"items": {
|
|
188
|
+
"type": "object",
|
|
189
|
+
"required": [
|
|
190
|
+
"n",
|
|
191
|
+
"held",
|
|
192
|
+
"passed",
|
|
193
|
+
"failed"
|
|
194
|
+
],
|
|
195
|
+
"properties": {
|
|
196
|
+
"n": {
|
|
197
|
+
"type": "integer",
|
|
198
|
+
"minimum": 1,
|
|
199
|
+
"description": "An ask by its number in `asked`."
|
|
200
|
+
},
|
|
201
|
+
"held": {
|
|
202
|
+
"type": "integer",
|
|
203
|
+
"minimum": 0,
|
|
204
|
+
"description": "Products holding a value for it; for the price, a price in its currency."
|
|
205
|
+
},
|
|
206
|
+
"passed": {
|
|
207
|
+
"type": "integer",
|
|
208
|
+
"minimum": 0,
|
|
209
|
+
"description": "Products holding it, as a card’s `holds` says; for a brand, those of the brand here."
|
|
210
|
+
},
|
|
211
|
+
"failed": {
|
|
212
|
+
"type": "integer",
|
|
213
|
+
"minimum": 0,
|
|
214
|
+
"description": "Products missing it, as a card’s `misses` says; the rest of `held` are unverified. Always 0 on a lean, which is in no card’s `misses`."
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"additionalProperties": false
|
|
218
|
+
},
|
|
219
|
+
"description": "Counts each ask alone over every product weighed: say how the place splits on it."
|
|
178
220
|
}
|
|
179
221
|
},
|
|
180
222
|
"additionalProperties": false,
|
|
181
|
-
"description": "Explains the shortlist: how much was searched,
|
|
223
|
+
"description": "Explains the shortlist: how much was searched, how much answers the whole ask, and each ask."
|
|
182
224
|
},
|
|
183
225
|
"products": {
|
|
184
226
|
"type": "array",
|
|
@@ -239,7 +281,7 @@
|
|
|
239
281
|
"minimum": 1,
|
|
240
282
|
"description": "An ask by its number in `asked`."
|
|
241
283
|
},
|
|
242
|
-
"description": "Names the
|
|
284
|
+
"description": "Names the wants it holds a value for that fails on every variant; a lean it does not hold is in no list."
|
|
243
285
|
},
|
|
244
286
|
"unknown": {
|
|
245
287
|
"type": "array",
|
|
@@ -248,7 +290,7 @@
|
|
|
248
290
|
"minimum": 1,
|
|
249
291
|
"description": "An ask by its number in `asked`."
|
|
250
292
|
},
|
|
251
|
-
"description": "Names the
|
|
293
|
+
"description": "Names the wants sil could not test on it: say them as unverified."
|
|
252
294
|
},
|
|
253
295
|
"price_range": {
|
|
254
296
|
"type": "object",
|
|
@@ -473,7 +515,7 @@
|
|
|
473
515
|
},
|
|
474
516
|
"additionalProperties": false
|
|
475
517
|
},
|
|
476
|
-
"description": "Shows the products closest to the ask: those holding most
|
|
518
|
+
"description": "Shows the products closest to the ask: those holding most wants first, then those the query names, then most leans, then the cheapest; with a lean, one seat in three (at least one) goes to the best holding no lean that answer the wants alike, on the last seats."
|
|
477
519
|
}
|
|
478
520
|
},
|
|
479
521
|
"additionalProperties": false
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"all": {
|
|
34
34
|
"type": "boolean",
|
|
35
35
|
"const": true,
|
|
36
|
-
"description": "Forgets
|
|
36
|
+
"description": "Forgets every row and the buyer’s calls in sil’s record."
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"additionalProperties": false
|
|
@@ -17,33 +17,33 @@
|
|
|
17
17
|
"removed": {
|
|
18
18
|
"type": "object",
|
|
19
19
|
"required": [
|
|
20
|
-
"measurement",
|
|
21
20
|
"memory",
|
|
21
|
+
"measurement",
|
|
22
22
|
"preference",
|
|
23
|
-
"
|
|
23
|
+
"owned",
|
|
24
24
|
"record",
|
|
25
25
|
"brief"
|
|
26
26
|
],
|
|
27
27
|
"properties": {
|
|
28
|
-
"
|
|
28
|
+
"memory": {
|
|
29
29
|
"type": "integer",
|
|
30
30
|
"minimum": 0,
|
|
31
|
-
"description": "
|
|
31
|
+
"description": "Memories removed."
|
|
32
32
|
},
|
|
33
|
-
"
|
|
33
|
+
"measurement": {
|
|
34
34
|
"type": "integer",
|
|
35
35
|
"minimum": 0,
|
|
36
|
-
"description": "
|
|
36
|
+
"description": "Measurements removed."
|
|
37
37
|
},
|
|
38
38
|
"preference": {
|
|
39
39
|
"type": "integer",
|
|
40
40
|
"minimum": 0,
|
|
41
41
|
"description": "Preferences removed."
|
|
42
42
|
},
|
|
43
|
-
"
|
|
43
|
+
"owned": {
|
|
44
44
|
"type": "integer",
|
|
45
45
|
"minimum": 0,
|
|
46
|
-
"description": "
|
|
46
|
+
"description": "What they own or owned, removed."
|
|
47
47
|
},
|
|
48
48
|
"record": {
|
|
49
49
|
"type": "integer",
|
|
@@ -2,36 +2,34 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://schemas.sil.com/shopping-user-read-request.schema.json",
|
|
4
4
|
"title": "sil shopping_user_read — request",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"place": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
12
|
+
"maxLength": 255,
|
|
13
|
+
"description": "Reads by the ask’s place, the node the domain read gave: the rows placed everywhere, then the rows at or under it and elsewhere in its domain, nearest first, then above it. Absent, only the first — the read at a conversation’s start."
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"additionalProperties": false
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"type": "object",
|
|
20
|
+
"required": [
|
|
21
|
+
"all"
|
|
22
|
+
],
|
|
23
|
+
"properties": {
|
|
24
|
+
"all": {
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"const": true,
|
|
27
|
+
"description": "Reads every row, newest first: for \"what do you keep about me?\"."
|
|
28
|
+
}
|
|
29
29
|
},
|
|
30
|
-
"
|
|
31
|
-
"uniqueItems": true,
|
|
32
|
-
"description": "Reads only these kinds; absent, every row."
|
|
30
|
+
"additionalProperties": false
|
|
33
31
|
}
|
|
34
|
-
|
|
35
|
-
"
|
|
32
|
+
],
|
|
33
|
+
"type": "object",
|
|
36
34
|
"description": "Money is in the minor unit: €130 is 13000."
|
|
37
35
|
}
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"required": [
|
|
7
7
|
"status",
|
|
8
|
-
"rows"
|
|
8
|
+
"rows",
|
|
9
|
+
"held"
|
|
9
10
|
],
|
|
10
11
|
"properties": {
|
|
11
12
|
"status": {
|
|
@@ -22,8 +23,8 @@
|
|
|
22
23
|
"required": [
|
|
23
24
|
"id",
|
|
24
25
|
"kind",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
26
|
+
"text",
|
|
27
|
+
"place",
|
|
27
28
|
"gives_back",
|
|
28
29
|
"source",
|
|
29
30
|
"kept_at"
|
|
@@ -37,46 +38,25 @@
|
|
|
37
38
|
},
|
|
38
39
|
"kind": {
|
|
39
40
|
"type": "string",
|
|
40
|
-
"const": "
|
|
41
|
+
"const": "memory",
|
|
41
42
|
"description": "Reads what kind of row it is."
|
|
42
43
|
},
|
|
43
|
-
"
|
|
44
|
-
"type": "string",
|
|
45
|
-
"minLength": 1,
|
|
46
|
-
"maxLength": 64,
|
|
47
|
-
"description": "Names what was measured, in plain words: \"foot length\", \"chest\"."
|
|
48
|
-
},
|
|
49
|
-
"value": {
|
|
50
|
-
"anyOf": [
|
|
51
|
-
{
|
|
52
|
-
"type": "number"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"type": "string",
|
|
56
|
-
"minLength": 1,
|
|
57
|
-
"maxLength": 128,
|
|
58
|
-
"description": "A size as it is printed."
|
|
59
|
-
}
|
|
60
|
-
],
|
|
61
|
-
"description": "Reads a number to turn into a spec value, or a size as printed."
|
|
62
|
-
},
|
|
63
|
-
"unit": {
|
|
44
|
+
"text": {
|
|
64
45
|
"type": "string",
|
|
65
46
|
"minLength": 1,
|
|
66
|
-
"maxLength":
|
|
67
|
-
"description": "Reads the
|
|
47
|
+
"maxLength": 500,
|
|
48
|
+
"description": "Reads what the buyer told about themselves, how they like to be served or their situation, as said, with what it means for their buys: one to three sentences, never a label. Its place is its reach: `product` holds on every ask (what they value, how they spend, how they like to be served), a node is its context there (their experience in it). Starts from it, never asks it again, and says it when it is used."
|
|
68
49
|
},
|
|
69
|
-
"
|
|
50
|
+
"place": {
|
|
70
51
|
"type": "string",
|
|
71
52
|
"minLength": 1,
|
|
72
|
-
"maxLength":
|
|
73
|
-
"description": "
|
|
53
|
+
"maxLength": 255,
|
|
54
|
+
"description": "Places the row at the node the domain read gave, as its path; a wider node for a wider place, `product` for everywhere. A read by place answers it there and beneath."
|
|
74
55
|
},
|
|
75
|
-
"
|
|
56
|
+
"place_name": {
|
|
76
57
|
"type": "string",
|
|
77
|
-
"minLength": 1,
|
|
78
58
|
"maxLength": 64,
|
|
79
|
-
"description": "
|
|
59
|
+
"description": "Calls the place this, sil’s own name for it; absent once the graph drops it."
|
|
80
60
|
},
|
|
81
61
|
"gives_back": {
|
|
82
62
|
"type": "string",
|
|
@@ -110,7 +90,9 @@
|
|
|
110
90
|
"required": [
|
|
111
91
|
"id",
|
|
112
92
|
"kind",
|
|
113
|
-
"
|
|
93
|
+
"what",
|
|
94
|
+
"value",
|
|
95
|
+
"place",
|
|
114
96
|
"gives_back",
|
|
115
97
|
"source",
|
|
116
98
|
"kept_at"
|
|
@@ -124,20 +106,51 @@
|
|
|
124
106
|
},
|
|
125
107
|
"kind": {
|
|
126
108
|
"type": "string",
|
|
127
|
-
"const": "
|
|
109
|
+
"const": "measurement",
|
|
128
110
|
"description": "Reads what kind of row it is."
|
|
129
111
|
},
|
|
130
|
-
"
|
|
112
|
+
"what": {
|
|
131
113
|
"type": "string",
|
|
132
114
|
"minLength": 1,
|
|
133
|
-
"maxLength":
|
|
134
|
-
"description": "
|
|
115
|
+
"maxLength": 64,
|
|
116
|
+
"description": "Names what was measured, in plain words: \"foot length\", \"chest\"."
|
|
117
|
+
},
|
|
118
|
+
"value": {
|
|
119
|
+
"anyOf": [
|
|
120
|
+
{
|
|
121
|
+
"type": "number"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"type": "string",
|
|
125
|
+
"minLength": 1,
|
|
126
|
+
"maxLength": 128,
|
|
127
|
+
"description": "A size as it is printed."
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"description": "Reads a number to turn into a spec value, or a size as printed."
|
|
131
|
+
},
|
|
132
|
+
"unit": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"minLength": 1,
|
|
135
|
+
"maxLength": 16,
|
|
136
|
+
"description": "Reads the unit, or the size system: cm, mm, EU, UK."
|
|
137
|
+
},
|
|
138
|
+
"brand": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"minLength": 1,
|
|
141
|
+
"maxLength": 64,
|
|
142
|
+
"description": "Reads whose sizing a printed size is in."
|
|
135
143
|
},
|
|
136
144
|
"place": {
|
|
137
145
|
"type": "string",
|
|
138
146
|
"minLength": 1,
|
|
147
|
+
"maxLength": 255,
|
|
148
|
+
"description": "Places the row at the node the domain read gave, as its path; a wider node for a wider place, `product` for everywhere. A read by place answers it there and beneath."
|
|
149
|
+
},
|
|
150
|
+
"place_name": {
|
|
151
|
+
"type": "string",
|
|
139
152
|
"maxLength": 64,
|
|
140
|
-
"description": "
|
|
153
|
+
"description": "Calls the place this, sil’s own name for it; absent once the graph drops it."
|
|
141
154
|
},
|
|
142
155
|
"gives_back": {
|
|
143
156
|
"type": "string",
|
|
@@ -174,6 +187,7 @@
|
|
|
174
187
|
"subject",
|
|
175
188
|
"op",
|
|
176
189
|
"value",
|
|
190
|
+
"place",
|
|
177
191
|
"gives_back",
|
|
178
192
|
"source",
|
|
179
193
|
"kept_at"
|
|
@@ -194,7 +208,7 @@
|
|
|
194
208
|
"type": "string",
|
|
195
209
|
"minLength": 1,
|
|
196
210
|
"maxLength": 64,
|
|
197
|
-
"description": "Names what the preference is about: noise, price
|
|
211
|
+
"description": "Names what the preference is about: noise, price. A liking’s: a spec the domain read listed, by its key, `brand`, `price`, or `product` with its `from`."
|
|
198
212
|
},
|
|
199
213
|
"op": {
|
|
200
214
|
"anyOf": [
|
|
@@ -248,8 +262,8 @@
|
|
|
248
262
|
"place": {
|
|
249
263
|
"type": "string",
|
|
250
264
|
"minLength": 1,
|
|
251
|
-
"maxLength":
|
|
252
|
-
"description": "
|
|
265
|
+
"maxLength": 255,
|
|
266
|
+
"description": "Places the row at the node the domain read gave, as its path; a wider node for a wider place, `product` for everywhere. A read by place answers it there and beneath."
|
|
253
267
|
},
|
|
254
268
|
"reason": {
|
|
255
269
|
"type": "string",
|
|
@@ -257,6 +271,23 @@
|
|
|
257
271
|
"maxLength": 256,
|
|
258
272
|
"description": "Quotes why, in the buyer’s words."
|
|
259
273
|
},
|
|
274
|
+
"from": {
|
|
275
|
+
"type": "array",
|
|
276
|
+
"items": {
|
|
277
|
+
"type": "string",
|
|
278
|
+
"minLength": 1,
|
|
279
|
+
"maxLength": 256,
|
|
280
|
+
"description": "Names a product sil holds, its id from a search or product read."
|
|
281
|
+
},
|
|
282
|
+
"minItems": 1,
|
|
283
|
+
"maxItems": 8,
|
|
284
|
+
"description": "Links sil’s products the liking was read from — what they own and like, or turned away from — only with `likes` or `dislikes`."
|
|
285
|
+
},
|
|
286
|
+
"place_name": {
|
|
287
|
+
"type": "string",
|
|
288
|
+
"maxLength": 64,
|
|
289
|
+
"description": "Calls the place this, sil’s own name for it; absent once the graph drops it."
|
|
290
|
+
},
|
|
260
291
|
"gives_back": {
|
|
261
292
|
"type": "string",
|
|
262
293
|
"minLength": 1,
|
|
@@ -289,8 +320,9 @@
|
|
|
289
320
|
"required": [
|
|
290
321
|
"id",
|
|
291
322
|
"kind",
|
|
292
|
-
"
|
|
293
|
-
"
|
|
323
|
+
"name",
|
|
324
|
+
"has",
|
|
325
|
+
"place",
|
|
294
326
|
"gives_back",
|
|
295
327
|
"source",
|
|
296
328
|
"kept_at"
|
|
@@ -304,20 +336,43 @@
|
|
|
304
336
|
},
|
|
305
337
|
"kind": {
|
|
306
338
|
"type": "string",
|
|
307
|
-
"const": "
|
|
339
|
+
"const": "owned",
|
|
308
340
|
"description": "Reads what kind of row it is."
|
|
309
341
|
},
|
|
310
|
-
"
|
|
342
|
+
"name": {
|
|
311
343
|
"type": "string",
|
|
312
344
|
"minLength": 1,
|
|
313
345
|
"maxLength": 128,
|
|
314
|
-
"description": "Names what they
|
|
346
|
+
"description": "Names what they own or owned, maker and model, as they said it."
|
|
315
347
|
},
|
|
316
|
-
"
|
|
348
|
+
"product": {
|
|
317
349
|
"type": "string",
|
|
318
350
|
"minLength": 1,
|
|
319
|
-
"maxLength":
|
|
320
|
-
"description": "
|
|
351
|
+
"maxLength": 256,
|
|
352
|
+
"description": "Links sil’s product, its id from a search or product read: its specs are read from it, and it is never offered again unless they are replacing it. Absent when sil holds none."
|
|
353
|
+
},
|
|
354
|
+
"has": {
|
|
355
|
+
"anyOf": [
|
|
356
|
+
{
|
|
357
|
+
"type": "string",
|
|
358
|
+
"const": "now"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"type": "string",
|
|
362
|
+
"const": "before"
|
|
363
|
+
}
|
|
364
|
+
],
|
|
365
|
+
"description": "`now`: they have it. `before`: they had it and no longer do."
|
|
366
|
+
},
|
|
367
|
+
"since": {
|
|
368
|
+
"type": "string",
|
|
369
|
+
"pattern": "^[0-9]{4}(-[0-9]{2}(-[0-9]{2})?)?$",
|
|
370
|
+
"description": "Dates when they got it: a year, a month or a day."
|
|
371
|
+
},
|
|
372
|
+
"until": {
|
|
373
|
+
"type": "string",
|
|
374
|
+
"pattern": "^[0-9]{4}(-[0-9]{2}(-[0-9]{2})?)?$",
|
|
375
|
+
"description": "Dates when they stopped having it, only when `before`."
|
|
321
376
|
},
|
|
322
377
|
"store": {
|
|
323
378
|
"type": "string",
|
|
@@ -325,10 +380,11 @@
|
|
|
325
380
|
"maxLength": 128,
|
|
326
381
|
"description": "Names where they bought it."
|
|
327
382
|
},
|
|
328
|
-
"
|
|
383
|
+
"place": {
|
|
329
384
|
"type": "string",
|
|
330
|
-
"
|
|
331
|
-
"
|
|
385
|
+
"minLength": 1,
|
|
386
|
+
"maxLength": 255,
|
|
387
|
+
"description": "Places the row at the node the domain read gave, as its path; a wider node for a wider place, `product` for everywhere. A read by place answers it there and beneath."
|
|
332
388
|
},
|
|
333
389
|
"note": {
|
|
334
390
|
"type": "string",
|
|
@@ -336,6 +392,11 @@
|
|
|
336
392
|
"maxLength": 256,
|
|
337
393
|
"description": "Reads what else they said about it: its size, its fit."
|
|
338
394
|
},
|
|
395
|
+
"place_name": {
|
|
396
|
+
"type": "string",
|
|
397
|
+
"maxLength": 64,
|
|
398
|
+
"description": "Calls the place this, sil’s own name for it; absent once the graph drops it."
|
|
399
|
+
},
|
|
339
400
|
"gives_back": {
|
|
340
401
|
"type": "string",
|
|
341
402
|
"minLength": 1,
|
|
@@ -365,7 +426,37 @@
|
|
|
365
426
|
}
|
|
366
427
|
]
|
|
367
428
|
},
|
|
368
|
-
"description": "Reads
|
|
429
|
+
"description": "Reads the rows that bear on the ask, nearest first: never asks what a row answers, and says the row when it uses it."
|
|
430
|
+
},
|
|
431
|
+
"held": {
|
|
432
|
+
"type": "array",
|
|
433
|
+
"items": {
|
|
434
|
+
"type": "object",
|
|
435
|
+
"required": [
|
|
436
|
+
"domain",
|
|
437
|
+
"rows"
|
|
438
|
+
],
|
|
439
|
+
"properties": {
|
|
440
|
+
"domain": {
|
|
441
|
+
"type": "string",
|
|
442
|
+
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
443
|
+
"maxLength": 255,
|
|
444
|
+
"description": "Names a domain the buyer holds rows in."
|
|
445
|
+
},
|
|
446
|
+
"name": {
|
|
447
|
+
"type": "string",
|
|
448
|
+
"maxLength": 64,
|
|
449
|
+
"description": "Calls the place this, sil’s own name for it; absent once the graph drops it."
|
|
450
|
+
},
|
|
451
|
+
"rows": {
|
|
452
|
+
"type": "integer",
|
|
453
|
+
"minimum": 0,
|
|
454
|
+
"description": "How many of its rows this answer did not carry."
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
"additionalProperties": false
|
|
458
|
+
},
|
|
459
|
+
"description": "Knows what else is kept, by domain: reads that place when the buyer brings it up. Empty: nothing more."
|
|
369
460
|
}
|
|
370
461
|
},
|
|
371
462
|
"additionalProperties": false
|