sil-openclaw 0.7.0 → 0.8.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/CHANGELOG.md +29 -0
- package/EXAMPLES.md +93 -0
- package/README.md +50 -113
- package/SECURITY.md +9 -6
- package/assets/banner-dark.svg +15 -0
- package/assets/banner.svg +15 -0
- package/dist/gateway/screen.js +174 -0
- package/dist/index.js +5 -9
- package/dist/lib/answers.js +59 -0
- package/dist/lib/screen-log.js +13 -0
- package/dist/lib/shopping-call.js +23 -28
- package/dist/lib/sil-client.js +19 -8
- package/dist/tools/catalog.js +69 -72
- package/dist/tools/identity.js +10 -6
- package/openclaw.plugin.json +2 -2
- package/package.json +4 -2
- package/schema/PROVENANCE.md +1 -1
- package/schema/shopping-brief-read-request.schema.json +2 -1
- package/schema/shopping-brief-read-response.schema.json +98 -50
- package/schema/shopping-brief-write-request.schema.json +202 -105
- package/schema/shopping-content-request.schema.json +12 -28
- package/schema/shopping-content-response.schema.json +49 -256
- package/schema/shopping-domain-get-request.schema.json +16 -11
- package/schema/shopping-domain-get-response.schema.json +24 -460
- package/schema/shopping-domain-search-request.schema.json +3 -3
- package/schema/shopping-domain-search-response.schema.json +3 -56
- package/schema/shopping-offers-request.schema.json +28 -174
- package/schema/shopping-offers-response.schema.json +369 -102
- package/schema/shopping-product-get-request.schema.json +3 -2
- package/schema/shopping-product-get-response.schema.json +332 -128
- package/schema/shopping-search-request.schema.json +41 -19
- package/schema/shopping-search-response.schema.json +405 -187
- package/schema/shopping-seller-get-request.schema.json +13 -1
- package/schema/shopping-seller-get-response.schema.json +488 -147
- package/schema/shopping-user-read-request.schema.json +2 -1
- package/schema/shopping-user-read-response.schema.json +2 -2
- package/schema/shopping-user-remember-request.schema.json +9 -8
- package/schema/sil-whoami-response.schema.json +37 -28
- package/sil-shopping/SKILL.md +132 -137
- package/dist/gateway/search-results.js +0 -99
- package/dist/lib/search-results-log.js +0 -23
- package/dist/lib/search-results-store.js +0 -116
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
"required": [
|
|
7
7
|
"status",
|
|
8
8
|
"path",
|
|
9
|
+
"name",
|
|
10
|
+
"reached",
|
|
9
11
|
"specs"
|
|
10
12
|
],
|
|
11
13
|
"properties": {
|
|
@@ -21,166 +23,28 @@
|
|
|
21
23
|
"name": {
|
|
22
24
|
"type": "string",
|
|
23
25
|
"maxLength": 64,
|
|
24
|
-
"description": "Calls the
|
|
26
|
+
"description": "Calls the place this."
|
|
25
27
|
},
|
|
26
|
-
"
|
|
27
|
-
"type": "array",
|
|
28
|
-
"items": {
|
|
29
|
-
"type": "object",
|
|
30
|
-
"required": [
|
|
31
|
-
"key",
|
|
32
|
-
"display_name",
|
|
33
|
-
"type",
|
|
34
|
-
"operators"
|
|
35
|
-
],
|
|
36
|
-
"properties": {
|
|
37
|
-
"key": {
|
|
38
|
-
"type": "string",
|
|
39
|
-
"minLength": 1,
|
|
40
|
-
"maxLength": 64,
|
|
41
|
-
"description": "Names the key in the Brief and sends it as a `shopping_search` spec key."
|
|
42
|
-
},
|
|
43
|
-
"display_name": {
|
|
44
|
-
"type": "string",
|
|
45
|
-
"minLength": 1,
|
|
46
|
-
"maxLength": 128,
|
|
47
|
-
"description": "Calls the key this when it writes it down or says it out loud."
|
|
48
|
-
},
|
|
49
|
-
"type": {
|
|
50
|
-
"anyOf": [
|
|
51
|
-
{
|
|
52
|
-
"type": "string",
|
|
53
|
-
"const": "number"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"type": "string",
|
|
57
|
-
"const": "boolean"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"type": "string",
|
|
61
|
-
"const": "enum"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"type": "string",
|
|
65
|
-
"const": "money"
|
|
66
|
-
}
|
|
67
|
-
],
|
|
68
|
-
"description": "Types the value the agent sends and reads for this key."
|
|
69
|
-
},
|
|
70
|
-
"unit": {
|
|
71
|
-
"type": "string",
|
|
72
|
-
"minLength": 1,
|
|
73
|
-
"description": "States the value in this unit, the one sil holds it in."
|
|
74
|
-
},
|
|
75
|
-
"allowed_values": {
|
|
76
|
-
"type": "array",
|
|
77
|
-
"items": {
|
|
78
|
-
"type": "string",
|
|
79
|
-
"minLength": 1
|
|
80
|
-
},
|
|
81
|
-
"minItems": 1,
|
|
82
|
-
"description": "Maps the buyer's word into the closed set; an enum without one takes any name, a maker's for `brand`."
|
|
83
|
-
},
|
|
84
|
-
"operators": {
|
|
85
|
-
"type": "array",
|
|
86
|
-
"items": {
|
|
87
|
-
"anyOf": [
|
|
88
|
-
{
|
|
89
|
-
"type": "string",
|
|
90
|
-
"const": "eq"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"type": "string",
|
|
94
|
-
"const": "neq"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"type": "string",
|
|
98
|
-
"const": "gte"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"type": "string",
|
|
102
|
-
"const": "lte"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"type": "string",
|
|
106
|
-
"const": "in"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"type": "string",
|
|
110
|
-
"const": "nin"
|
|
111
|
-
}
|
|
112
|
-
]
|
|
113
|
-
},
|
|
114
|
-
"minItems": 1,
|
|
115
|
-
"description": "Picks the comparison that fits: `eq`/`in` on a variant spec and on enums, `gte`/`lte` on numbers and money."
|
|
116
|
-
},
|
|
117
|
-
"description": {
|
|
118
|
-
"type": "string",
|
|
119
|
-
"maxLength": 1024,
|
|
120
|
-
"description": "Reads how this one key moves the fit — what it decides, what goes wrong at either end of it, and how a buyer's own fact becomes a value for it. Reason from it; ask from it; never recite it back. Only on a `keys` read."
|
|
121
|
-
},
|
|
122
|
-
"step": {
|
|
123
|
-
"type": "number",
|
|
124
|
-
"exclusiveMinimum": 0,
|
|
125
|
-
"description": "Asks on the grid the maker prints the axis in — 0.5 for a Mondopoint size. A figure off the grid is something sil has not read as a value. Only on a `keys` read."
|
|
126
|
-
},
|
|
127
|
-
"variant_spec": {
|
|
128
|
-
"type": "boolean",
|
|
129
|
-
"const": true,
|
|
130
|
-
"description": "Expects its values under `variants[]`."
|
|
131
|
-
},
|
|
132
|
-
"product_spec": {
|
|
133
|
-
"type": "boolean",
|
|
134
|
-
"const": true,
|
|
135
|
-
"description": "Never treats two products that differ on it as one."
|
|
136
|
-
},
|
|
137
|
-
"several": {
|
|
138
|
-
"type": "boolean",
|
|
139
|
-
"const": true,
|
|
140
|
-
"description": "Reads a list for it: a product holds several at once."
|
|
141
|
-
},
|
|
142
|
-
"ordered": {
|
|
143
|
-
"type": "boolean",
|
|
144
|
-
"const": true,
|
|
145
|
-
"description": "`allowed_values` run in order, least first: `gte`/`lte` take one and reach every one past it — \"filter or coarser\" is `gte filter`, never `eq filter`."
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
"additionalProperties": false
|
|
149
|
-
},
|
|
150
|
-
"description": "Builds spec rows with keys sil holds: index lines in the place’s own order, own keys first, as many as one answer holds; or only the `keys` asked, whole."
|
|
151
|
-
},
|
|
152
|
-
"next": {
|
|
153
|
-
"type": "string",
|
|
154
|
-
"maxLength": 64,
|
|
155
|
-
"description": "Sends it as `after` to read the index on: the first key not listed. Absent on the last page, so nothing is cut unseen."
|
|
156
|
-
},
|
|
157
|
-
"keys_total": {
|
|
28
|
+
"reached": {
|
|
158
29
|
"type": "integer",
|
|
159
30
|
"minimum": 0,
|
|
160
|
-
"description": "
|
|
31
|
+
"description": "Says how many of the first specs answer the buyer’s words; the rest follow by how many products hold them."
|
|
161
32
|
},
|
|
162
|
-
"
|
|
33
|
+
"specs": {
|
|
163
34
|
"type": "array",
|
|
164
35
|
"items": {
|
|
165
36
|
"type": "object",
|
|
166
37
|
"required": [
|
|
167
|
-
"
|
|
168
|
-
"display_name",
|
|
38
|
+
"spec",
|
|
169
39
|
"type",
|
|
170
40
|
"operators"
|
|
171
41
|
],
|
|
172
42
|
"properties": {
|
|
173
|
-
"
|
|
43
|
+
"spec": {
|
|
174
44
|
"type": "string",
|
|
175
45
|
"minLength": 1,
|
|
176
46
|
"maxLength": 64,
|
|
177
|
-
"description": "
|
|
178
|
-
},
|
|
179
|
-
"display_name": {
|
|
180
|
-
"type": "string",
|
|
181
|
-
"minLength": 1,
|
|
182
|
-
"maxLength": 128,
|
|
183
|
-
"description": "Calls the key this when it writes it down or says it out loud."
|
|
47
|
+
"description": "Sends it unchanged as `shopping_search.specs[].spec`: a part’s by its path (`burrSet.burrMaterial`), the box by `with`."
|
|
184
48
|
},
|
|
185
49
|
"type": {
|
|
186
50
|
"anyOf": [
|
|
@@ -195,10 +59,6 @@
|
|
|
195
59
|
{
|
|
196
60
|
"type": "string",
|
|
197
61
|
"const": "enum"
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
"type": "string",
|
|
201
|
-
"const": "money"
|
|
202
62
|
}
|
|
203
63
|
],
|
|
204
64
|
"description": "Types the value the agent sends and reads for this key."
|
|
@@ -206,16 +66,16 @@
|
|
|
206
66
|
"unit": {
|
|
207
67
|
"type": "string",
|
|
208
68
|
"minLength": 1,
|
|
209
|
-
"description": "
|
|
69
|
+
"description": "Sends the value in this unit."
|
|
210
70
|
},
|
|
211
|
-
"
|
|
71
|
+
"values": {
|
|
212
72
|
"type": "array",
|
|
213
73
|
"items": {
|
|
214
74
|
"type": "string",
|
|
215
75
|
"minLength": 1
|
|
216
76
|
},
|
|
217
77
|
"minItems": 1,
|
|
218
|
-
"description": "Maps the buyer's word into
|
|
78
|
+
"description": "Maps the buyer's word into this set; where `gte`/`lte` are offered, they run least first."
|
|
219
79
|
},
|
|
220
80
|
"operators": {
|
|
221
81
|
"type": "array",
|
|
@@ -248,323 +108,27 @@
|
|
|
248
108
|
]
|
|
249
109
|
},
|
|
250
110
|
"minItems": 1,
|
|
251
|
-
"description": "
|
|
252
|
-
},
|
|
253
|
-
"description": {
|
|
254
|
-
"type": "string",
|
|
255
|
-
"maxLength": 1024,
|
|
256
|
-
"description": "Reads how this one key moves the fit — what it decides, what goes wrong at either end of it, and how a buyer's own fact becomes a value for it. Reason from it; ask from it; never recite it back. Only on a `keys` read."
|
|
257
|
-
},
|
|
258
|
-
"step": {
|
|
259
|
-
"type": "number",
|
|
260
|
-
"exclusiveMinimum": 0,
|
|
261
|
-
"description": "Asks on the grid the maker prints the axis in — 0.5 for a Mondopoint size. A figure off the grid is something sil has not read as a value. Only on a `keys` read."
|
|
262
|
-
}
|
|
263
|
-
},
|
|
264
|
-
"additionalProperties": false
|
|
265
|
-
},
|
|
266
|
-
"description": "Builds seller rows for `shopping_offers`; with `keys`, only those asked. First page only."
|
|
267
|
-
},
|
|
268
|
-
"labels": {
|
|
269
|
-
"type": "array",
|
|
270
|
-
"items": {
|
|
271
|
-
"type": "string",
|
|
272
|
-
"maxLength": 64
|
|
273
|
-
},
|
|
274
|
-
"maxItems": 20,
|
|
275
|
-
"description": "Reads every other word for the thing; never sends them. Absent with `keys` and after the first page."
|
|
276
|
-
},
|
|
277
|
-
"reach": {
|
|
278
|
-
"type": "array",
|
|
279
|
-
"items": {
|
|
280
|
-
"type": "object",
|
|
281
|
-
"required": [
|
|
282
|
-
"from",
|
|
283
|
-
"via",
|
|
284
|
-
"keys"
|
|
285
|
-
],
|
|
286
|
-
"properties": {
|
|
287
|
-
"from": {
|
|
288
|
-
"type": "string",
|
|
289
|
-
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
290
|
-
"maxLength": 255,
|
|
291
|
-
"description": "Reads the node that declares these keys."
|
|
111
|
+
"description": "Sends one of these as the spec’s `op`."
|
|
292
112
|
},
|
|
293
|
-
"
|
|
294
|
-
"anyOf": [
|
|
295
|
-
{
|
|
296
|
-
"type": "string",
|
|
297
|
-
"const": "own"
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
"type": "string",
|
|
301
|
-
"const": "kind"
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
"type": "string",
|
|
305
|
-
"const": "part"
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
"type": "string",
|
|
309
|
-
"const": "leaf"
|
|
310
|
-
}
|
|
311
|
-
],
|
|
312
|
-
"description": "Reads how: its own, a kind it is, a part’s link, or a leaf under a kind."
|
|
313
|
-
},
|
|
314
|
-
"part": {
|
|
315
|
-
"type": "string",
|
|
316
|
-
"description": "Names the part, where `via` is one."
|
|
317
|
-
},
|
|
318
|
-
"keys": {
|
|
319
|
-
"type": "array",
|
|
320
|
-
"items": {
|
|
321
|
-
"type": "string",
|
|
322
|
-
"minLength": 1,
|
|
323
|
-
"maxLength": 64,
|
|
324
|
-
"description": "A key."
|
|
325
|
-
},
|
|
326
|
-
"description": "Reads the keys, in the node’s order."
|
|
327
|
-
}
|
|
328
|
-
},
|
|
329
|
-
"additionalProperties": false
|
|
330
|
-
},
|
|
331
|
-
"description": "Reads where each key comes from. Absent with `keys` and after the first page."
|
|
332
|
-
},
|
|
333
|
-
"kinds": {
|
|
334
|
-
"type": "array",
|
|
335
|
-
"items": {
|
|
336
|
-
"type": "object",
|
|
337
|
-
"required": [
|
|
338
|
-
"path",
|
|
339
|
-
"name"
|
|
340
|
-
],
|
|
341
|
-
"properties": {
|
|
342
|
-
"path": {
|
|
343
|
-
"type": "string",
|
|
344
|
-
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
345
|
-
"maxLength": 255,
|
|
346
|
-
"description": "Reads the kind on its own node."
|
|
347
|
-
},
|
|
348
|
-
"name": {
|
|
349
|
-
"type": "string",
|
|
350
|
-
"maxLength": 64,
|
|
351
|
-
"description": "Calls the kind this."
|
|
352
|
-
}
|
|
353
|
-
},
|
|
354
|
-
"additionalProperties": false
|
|
355
|
-
},
|
|
356
|
-
"description": "Reads every kind this thing is, nearest first. Absent with `keys` and after the first page."
|
|
357
|
-
},
|
|
358
|
-
"parts": {
|
|
359
|
-
"type": "array",
|
|
360
|
-
"items": {
|
|
361
|
-
"type": "object",
|
|
362
|
-
"required": [
|
|
363
|
-
"name",
|
|
364
|
-
"how",
|
|
365
|
-
"optional",
|
|
366
|
-
"many",
|
|
367
|
-
"keys"
|
|
368
|
-
],
|
|
369
|
-
"properties": {
|
|
370
|
-
"name": {
|
|
371
|
-
"type": "string",
|
|
372
|
-
"description": "Calls the part this."
|
|
373
|
-
},
|
|
374
|
-
"role": {
|
|
375
|
-
"type": "string",
|
|
376
|
-
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
377
|
-
"maxLength": 255,
|
|
378
|
-
"description": "Reads the node any thing that fills this part is."
|
|
379
|
-
},
|
|
380
|
-
"elsewhere": {
|
|
381
|
-
"type": "string",
|
|
382
|
-
"description": "Reads the part in plain words, where no node draws it yet."
|
|
383
|
-
},
|
|
384
|
-
"how": {
|
|
385
|
-
"type": "array",
|
|
386
|
-
"items": {
|
|
387
|
-
"anyOf": [
|
|
388
|
-
{
|
|
389
|
-
"type": "string",
|
|
390
|
-
"const": "built in"
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
"type": "string",
|
|
394
|
-
"const": "in the box"
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
"type": "string",
|
|
398
|
-
"const": "sold separately"
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
"type": "string",
|
|
402
|
-
"const": "used with"
|
|
403
|
-
}
|
|
404
|
-
]
|
|
405
|
-
},
|
|
406
|
-
"description": "Knows whether the part is built in, in the box, bought apart or used with it."
|
|
407
|
-
},
|
|
408
|
-
"optional": {
|
|
409
|
-
"type": "boolean",
|
|
410
|
-
"description": "Knows whether some of these things come without it."
|
|
411
|
-
},
|
|
412
|
-
"many": {
|
|
113
|
+
"decides": {
|
|
413
114
|
"type": "boolean",
|
|
414
|
-
"
|
|
415
|
-
|
|
416
|
-
"keys": {
|
|
417
|
-
"type": "array",
|
|
418
|
-
"items": {
|
|
419
|
-
"type": "string",
|
|
420
|
-
"minLength": 1,
|
|
421
|
-
"maxLength": 64
|
|
422
|
-
},
|
|
423
|
-
"description": "Reads the keys the link says about the part, here."
|
|
424
|
-
}
|
|
425
|
-
},
|
|
426
|
-
"additionalProperties": false
|
|
427
|
-
},
|
|
428
|
-
"description": "Reads what the thing has. Absent with `keys` and after the first page."
|
|
429
|
-
},
|
|
430
|
-
"made_for": {
|
|
431
|
-
"type": "array",
|
|
432
|
-
"items": {
|
|
433
|
-
"anyOf": [
|
|
434
|
-
{
|
|
435
|
-
"type": "object",
|
|
436
|
-
"required": [
|
|
437
|
-
"path"
|
|
438
|
-
],
|
|
439
|
-
"properties": {
|
|
440
|
-
"path": {
|
|
441
|
-
"type": "string",
|
|
442
|
-
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
443
|
-
"maxLength": 255,
|
|
444
|
-
"description": "Reads the node this part or consumable is made for."
|
|
445
|
-
}
|
|
446
|
-
},
|
|
447
|
-
"additionalProperties": false
|
|
448
|
-
},
|
|
449
|
-
{
|
|
450
|
-
"type": "object",
|
|
451
|
-
"required": [
|
|
452
|
-
"elsewhere"
|
|
453
|
-
],
|
|
454
|
-
"properties": {
|
|
455
|
-
"elsewhere": {
|
|
456
|
-
"type": "string",
|
|
457
|
-
"description": "Reads what it is made for in plain words, where no node draws it yet."
|
|
458
|
-
}
|
|
459
|
-
},
|
|
460
|
-
"additionalProperties": false
|
|
461
|
-
}
|
|
462
|
-
]
|
|
463
|
-
},
|
|
464
|
-
"description": "Reads what a part is made for. Absent with `keys` and after the first page."
|
|
465
|
-
},
|
|
466
|
-
"leaves": {
|
|
467
|
-
"type": "array",
|
|
468
|
-
"items": {
|
|
469
|
-
"type": "object",
|
|
470
|
-
"required": [
|
|
471
|
-
"path",
|
|
472
|
-
"name"
|
|
473
|
-
],
|
|
474
|
-
"properties": {
|
|
475
|
-
"path": {
|
|
476
|
-
"type": "string",
|
|
477
|
-
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
478
|
-
"maxLength": 255,
|
|
479
|
-
"description": "Sends the leaf to `shopping_domain_get` or `shopping_search`."
|
|
115
|
+
"const": true,
|
|
116
|
+
"description": "Decides this kind of buy: ask the buyer for it where sil holds no answer."
|
|
480
117
|
},
|
|
481
|
-
"
|
|
482
|
-
"type": "string",
|
|
483
|
-
"maxLength": 64,
|
|
484
|
-
"description": "Calls the leaf this."
|
|
485
|
-
}
|
|
486
|
-
},
|
|
487
|
-
"additionalProperties": false
|
|
488
|
-
},
|
|
489
|
-
"description": "On a kind: every leaf under it. A search on the kind answers across them, `leaf` a key it takes. Absent with `keys` and after the first page."
|
|
490
|
-
},
|
|
491
|
-
"record": {
|
|
492
|
-
"anyOf": [
|
|
493
|
-
{
|
|
494
|
-
"type": "string",
|
|
495
|
-
"const": "full"
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
"type": "string",
|
|
499
|
-
"const": "specs"
|
|
500
|
-
}
|
|
501
|
-
],
|
|
502
|
-
"description": "On a leaf: bought on its measures alone, or on its measures and its record. Absent with `keys` and after the first page."
|
|
503
|
-
},
|
|
504
|
-
"guides": {
|
|
505
|
-
"type": "array",
|
|
506
|
-
"items": {
|
|
507
|
-
"type": "object",
|
|
508
|
-
"required": [
|
|
509
|
-
"id",
|
|
510
|
-
"kind",
|
|
511
|
-
"title",
|
|
512
|
-
"about"
|
|
513
|
-
],
|
|
514
|
-
"properties": {
|
|
515
|
-
"id": {
|
|
118
|
+
"why": {
|
|
516
119
|
"type": "string",
|
|
517
120
|
"minLength": 1,
|
|
518
|
-
"
|
|
519
|
-
"description": "Sends it as `shopping_content.document` to read the guide."
|
|
520
|
-
},
|
|
521
|
-
"kind": {
|
|
522
|
-
"anyOf": [
|
|
523
|
-
{
|
|
524
|
-
"type": "string",
|
|
525
|
-
"const": "guide"
|
|
526
|
-
},
|
|
527
|
-
{
|
|
528
|
-
"type": "string",
|
|
529
|
-
"const": "tutorial"
|
|
530
|
-
},
|
|
531
|
-
{
|
|
532
|
-
"type": "string",
|
|
533
|
-
"const": "faq"
|
|
534
|
-
},
|
|
535
|
-
{
|
|
536
|
-
"type": "string",
|
|
537
|
-
"const": "glossary"
|
|
538
|
-
},
|
|
539
|
-
{
|
|
540
|
-
"type": "string",
|
|
541
|
-
"const": "review"
|
|
542
|
-
},
|
|
543
|
-
{
|
|
544
|
-
"type": "string",
|
|
545
|
-
"const": "comparison"
|
|
546
|
-
},
|
|
547
|
-
{
|
|
548
|
-
"type": "string",
|
|
549
|
-
"const": "news"
|
|
550
|
-
}
|
|
551
|
-
],
|
|
552
|
-
"description": "Names what the document is."
|
|
553
|
-
},
|
|
554
|
-
"title": {
|
|
555
|
-
"type": "string",
|
|
556
|
-
"description": "Reads the document’s title."
|
|
557
|
-
},
|
|
558
|
-
"about": {
|
|
559
|
-
"type": "string",
|
|
560
|
-
"maxLength": 160,
|
|
561
|
-
"description": "Reads what the document teaches, cut at a word."
|
|
121
|
+
"description": "Says what a deciding spec decides, in the graph’s words: teach and ask from it."
|
|
562
122
|
}
|
|
563
123
|
},
|
|
564
124
|
"additionalProperties": false
|
|
565
125
|
},
|
|
566
|
-
"
|
|
567
|
-
|
|
126
|
+
"description": "Lists the specs a search here takes: those `spec_keywords` and `query` reach first, then those most products hold a value for; a spec of the thing no product holds only where they reach it, a part’s never."
|
|
127
|
+
},
|
|
128
|
+
"next_page": {
|
|
129
|
+
"type": "integer",
|
|
130
|
+
"minimum": 2,
|
|
131
|
+
"description": "Sends it as `page` to read the specs on; absent on the last page."
|
|
568
132
|
}
|
|
569
133
|
},
|
|
570
134
|
"additionalProperties": false
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
"title": "sil shopping_domain_search — request",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"required": [
|
|
7
|
-
"
|
|
7
|
+
"query"
|
|
8
8
|
],
|
|
9
9
|
"properties": {
|
|
10
|
-
"
|
|
10
|
+
"query": {
|
|
11
11
|
"type": "string",
|
|
12
12
|
"minLength": 1,
|
|
13
13
|
"maxLength": 200,
|
|
14
|
-
"description": "Sends what the thing is called, in English
|
|
14
|
+
"description": "Sends what the thing is called, in English: \"coffee grinder\"."
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"additionalProperties": false
|
|
@@ -19,78 +19,25 @@
|
|
|
19
19
|
"type": "object",
|
|
20
20
|
"required": [
|
|
21
21
|
"path",
|
|
22
|
-
"name"
|
|
23
|
-
"matched",
|
|
24
|
-
"under"
|
|
22
|
+
"name"
|
|
25
23
|
],
|
|
26
24
|
"properties": {
|
|
27
25
|
"path": {
|
|
28
26
|
"type": "string",
|
|
29
27
|
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
30
28
|
"maxLength": 255,
|
|
31
|
-
"description": "
|
|
29
|
+
"description": "Sends it to `shopping_domain_get` and `shopping_search`; read outermost first, it names every place the leaf sits under."
|
|
32
30
|
},
|
|
33
31
|
"name": {
|
|
34
32
|
"type": "string",
|
|
35
33
|
"maxLength": 64,
|
|
36
34
|
"description": "Calls the leaf this."
|
|
37
|
-
},
|
|
38
|
-
"matched": {
|
|
39
|
-
"type": "string",
|
|
40
|
-
"description": "Reads which of sil's words for it the ask matched."
|
|
41
|
-
},
|
|
42
|
-
"under": {
|
|
43
|
-
"type": "array",
|
|
44
|
-
"items": {
|
|
45
|
-
"type": "object",
|
|
46
|
-
"required": [
|
|
47
|
-
"path",
|
|
48
|
-
"name",
|
|
49
|
-
"role"
|
|
50
|
-
],
|
|
51
|
-
"properties": {
|
|
52
|
-
"path": {
|
|
53
|
-
"type": "string",
|
|
54
|
-
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
55
|
-
"maxLength": 255,
|
|
56
|
-
"description": "Names the place the leaf sits under."
|
|
57
|
-
},
|
|
58
|
-
"name": {
|
|
59
|
-
"type": "string",
|
|
60
|
-
"maxLength": 64,
|
|
61
|
-
"description": "Calls the place this."
|
|
62
|
-
},
|
|
63
|
-
"role": {
|
|
64
|
-
"anyOf": [
|
|
65
|
-
{
|
|
66
|
-
"type": "string",
|
|
67
|
-
"const": "top"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"type": "string",
|
|
71
|
-
"const": "domain"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"type": "string",
|
|
75
|
-
"const": "shelf"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"type": "string",
|
|
79
|
-
"const": "kind"
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
"description": "Reads what the place is: a top, a domain, a shelf or a kind."
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
"additionalProperties": false
|
|
86
|
-
},
|
|
87
|
-
"description": "Reads every place above the leaf, outermost first and its parent last, to judge whether this is the thing the buyer means."
|
|
88
35
|
}
|
|
89
36
|
},
|
|
90
37
|
"additionalProperties": false
|
|
91
38
|
},
|
|
92
39
|
"maxItems": 3,
|
|
93
|
-
"description": "Reads the
|
|
40
|
+
"description": "Reads the leaves these words reach, best first, and judges which is the buyer’s thing. Empty: sil holds no such leaf; say so."
|
|
94
41
|
}
|
|
95
42
|
},
|
|
96
43
|
"additionalProperties": false
|