sil-openclaw 0.5.2 → 0.7.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 +47 -0
- package/README.md +27 -26
- package/SECURITY.md +3 -4
- package/dist/index.js +1 -1
- package/dist/lib/shopping-call.js +7 -4
- package/dist/lib/sil-client.js +36 -66
- package/dist/lib/tool-result.js +1 -1
- package/dist/tools/catalog.js +83 -242
- package/dist/tools/identity.js +74 -87
- package/openclaw.plugin.json +12 -7
- package/package.json +1 -1
- package/schema/PROVENANCE.md +7 -4
- package/schema/shopping-brief-read-response.schema.json +1 -1
- package/schema/shopping-brief-write-request.schema.json +225 -0
- package/schema/{shopping-brief-create-response.schema.json → shopping-brief-write-response.schema.json} +3 -3
- package/schema/shopping-content-request.schema.json +89 -0
- package/schema/shopping-content-response.schema.json +298 -0
- package/schema/shopping-domain-get-request.schema.json +19 -1
- package/schema/shopping-domain-get-response.schema.json +330 -66
- package/schema/shopping-domain-search-request.schema.json +1 -1
- package/schema/shopping-domain-search-response.schema.json +40 -35
- package/schema/shopping-offers-request.schema.json +174 -23
- package/schema/shopping-offers-response.schema.json +20 -10
- package/schema/shopping-product-get-request.schema.json +2 -2
- package/schema/shopping-product-get-response.schema.json +119 -16
- package/schema/shopping-search-request.schema.json +16 -25
- package/schema/shopping-search-response.schema.json +101 -21
- package/schema/shopping-seller-get-response.schema.json +249 -221
- package/schema/shopping-user-forget-request.schema.json +43 -0
- package/schema/shopping-user-forget-response.schema.json +74 -0
- package/schema/shopping-user-read-request.schema.json +36 -0
- package/schema/shopping-user-read-response.schema.json +372 -0
- package/schema/shopping-user-remember-request.schema.json +340 -0
- package/schema/shopping-user-remember-response.schema.json +66 -0
- package/schema/sil-whoami-request.schema.json +8 -0
- package/schema/sil-whoami-response.schema.json +90 -0
- package/sil-shopping/SKILL.md +139 -180
- package/schema/shopping-brief-create-request.schema.json +0 -98
- package/schema/shopping-brief-edit-request.schema.json +0 -125
- package/schema/shopping-brief-edit-response.schema.json +0 -24
- package/schema/shopping-domain-create-request.schema.json +0 -160
- package/schema/shopping-domain-create-response.schema.json +0 -60
- package/schema/shopping-profile-edit-request.schema.json +0 -97
- package/schema/shopping-profile-edit-response.schema.json +0 -17
- package/sil-shopping/references/mint.md +0 -190
|
@@ -6,11 +6,7 @@
|
|
|
6
6
|
"required": [
|
|
7
7
|
"status",
|
|
8
8
|
"path",
|
|
9
|
-
"
|
|
10
|
-
"name",
|
|
11
|
-
"labels",
|
|
12
|
-
"specs",
|
|
13
|
-
"seller_specs"
|
|
9
|
+
"specs"
|
|
14
10
|
],
|
|
15
11
|
"properties": {
|
|
16
12
|
"status": {
|
|
@@ -22,23 +18,10 @@
|
|
|
22
18
|
"type": "string",
|
|
23
19
|
"description": "Sends it verbatim as `shopping_search.domain`."
|
|
24
20
|
},
|
|
25
|
-
"guide": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"description": "Reads the domain document — markdown on how this thing is bought well: what it is bought on, what goes wrong and what that costs the buyer, what to trust, and what buying it online takes in place of handling it. It is what sil knows about the domain, so reason from it rather than reciting it, and never send the buyer to a shop it already tells you how to do without."
|
|
28
|
-
},
|
|
29
21
|
"name": {
|
|
30
22
|
"type": "string",
|
|
31
23
|
"maxLength": 64,
|
|
32
|
-
"description": "Calls the thing this in English
|
|
33
|
-
},
|
|
34
|
-
"labels": {
|
|
35
|
-
"type": "array",
|
|
36
|
-
"items": {
|
|
37
|
-
"type": "string",
|
|
38
|
-
"maxLength": 64
|
|
39
|
-
},
|
|
40
|
-
"maxItems": 20,
|
|
41
|
-
"description": "Reads every other word for the thing — the market's own, in any language, folded to the form sil maps under. sil asks each index in them; the agent never sends them."
|
|
24
|
+
"description": "Calls the thing this in English. Absent on a page read with `after`."
|
|
42
25
|
},
|
|
43
26
|
"specs": {
|
|
44
27
|
"type": "array",
|
|
@@ -63,11 +46,6 @@
|
|
|
63
46
|
"maxLength": 128,
|
|
64
47
|
"description": "Calls the key this when it writes it down or says it out loud."
|
|
65
48
|
},
|
|
66
|
-
"description": {
|
|
67
|
-
"type": "string",
|
|
68
|
-
"maxLength": 1024,
|
|
69
|
-
"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."
|
|
70
|
-
},
|
|
71
49
|
"type": {
|
|
72
50
|
"anyOf": [
|
|
73
51
|
{
|
|
@@ -136,45 +114,50 @@
|
|
|
136
114
|
"minItems": 1,
|
|
137
115
|
"description": "Picks the comparison that fits: `eq`/`in` on a variant spec and on enums, `gte`/`lte` on numbers and money."
|
|
138
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
|
+
},
|
|
139
122
|
"step": {
|
|
140
123
|
"type": "number",
|
|
141
124
|
"exclusiveMinimum": 0,
|
|
142
|
-
"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."
|
|
143
|
-
},
|
|
144
|
-
"forms": {
|
|
145
|
-
"type": "object",
|
|
146
|
-
"patternProperties": {
|
|
147
|
-
"^.*$": {
|
|
148
|
-
"type": "string"
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
"description": "Reads what pages print for a value, mapped to the value — `{\"27/27.5\": \"27.5\"}`. Never sent: the request takes the value, and this is how sil recognises it in the wild."
|
|
152
|
-
},
|
|
153
|
-
"labels": {
|
|
154
|
-
"type": "array",
|
|
155
|
-
"items": {
|
|
156
|
-
"type": "string",
|
|
157
|
-
"minLength": 1,
|
|
158
|
-
"maxLength": 60
|
|
159
|
-
},
|
|
160
|
-
"minItems": 1,
|
|
161
|
-
"maxItems": 20,
|
|
162
|
-
"description": "Sends any of these as the key and reaches this one: the names sil maps here — the headings pages print it under and the keys other agents send for it, one mapping with no origin between them. Folded to the form the mapping stores, best-attested first, at most 20."
|
|
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."
|
|
163
126
|
},
|
|
164
127
|
"variant_spec": {
|
|
165
128
|
"type": "boolean",
|
|
166
129
|
"const": true,
|
|
167
|
-
"description": "
|
|
130
|
+
"description": "Expects its values under `variants[]`."
|
|
168
131
|
},
|
|
169
132
|
"product_spec": {
|
|
170
133
|
"type": "boolean",
|
|
171
134
|
"const": true,
|
|
172
|
-
"description": "
|
|
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`."
|
|
173
146
|
}
|
|
174
147
|
},
|
|
175
148
|
"additionalProperties": false
|
|
176
149
|
},
|
|
177
|
-
"description": "Builds
|
|
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": {
|
|
158
|
+
"type": "integer",
|
|
159
|
+
"minimum": 0,
|
|
160
|
+
"description": "Counts the keys of the whole index, over its pages."
|
|
178
161
|
},
|
|
179
162
|
"seller_specs": {
|
|
180
163
|
"type": "array",
|
|
@@ -199,11 +182,6 @@
|
|
|
199
182
|
"maxLength": 128,
|
|
200
183
|
"description": "Calls the key this when it writes it down or says it out loud."
|
|
201
184
|
},
|
|
202
|
-
"description": {
|
|
203
|
-
"type": "string",
|
|
204
|
-
"maxLength": 1024,
|
|
205
|
-
"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."
|
|
206
|
-
},
|
|
207
185
|
"type": {
|
|
208
186
|
"anyOf": [
|
|
209
187
|
{
|
|
@@ -272,35 +250,321 @@
|
|
|
272
250
|
"minItems": 1,
|
|
273
251
|
"description": "Picks the comparison that fits: `eq`/`in` on a variant spec and on enums, `gte`/`lte` on numbers and money."
|
|
274
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
|
+
},
|
|
275
258
|
"step": {
|
|
276
259
|
"type": "number",
|
|
277
260
|
"exclusiveMinimum": 0,
|
|
278
|
-
"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."
|
|
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."
|
|
279
292
|
},
|
|
280
|
-
"
|
|
281
|
-
"
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
"
|
|
293
|
+
"via": {
|
|
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"
|
|
285
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
|
+
]
|
|
286
405
|
},
|
|
287
|
-
"description": "
|
|
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."
|
|
288
411
|
},
|
|
289
|
-
"
|
|
412
|
+
"many": {
|
|
413
|
+
"type": "boolean",
|
|
414
|
+
"description": "Knows whether the thing has several of the part."
|
|
415
|
+
},
|
|
416
|
+
"keys": {
|
|
290
417
|
"type": "array",
|
|
291
418
|
"items": {
|
|
292
419
|
"type": "string",
|
|
293
420
|
"minLength": 1,
|
|
294
|
-
"maxLength":
|
|
421
|
+
"maxLength": 64
|
|
295
422
|
},
|
|
296
|
-
"
|
|
297
|
-
|
|
298
|
-
|
|
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`."
|
|
480
|
+
},
|
|
481
|
+
"name": {
|
|
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": {
|
|
516
|
+
"type": "string",
|
|
517
|
+
"minLength": 1,
|
|
518
|
+
"maxLength": 256,
|
|
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."
|
|
299
562
|
}
|
|
300
563
|
},
|
|
301
564
|
"additionalProperties": false
|
|
302
565
|
},
|
|
303
|
-
"
|
|
566
|
+
"maxItems": 6,
|
|
567
|
+
"description": "Teaches from what sil holds on the place; the first is the domain’s index of every source it holds, each with what it teaches. Then its own documents, then each kind, then the places above, nearest first. Reads one with `shopping_content.document`. First page and `keys` only."
|
|
304
568
|
}
|
|
305
569
|
},
|
|
306
570
|
"additionalProperties": false
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"required": [
|
|
7
7
|
"status",
|
|
8
|
-
"matches"
|
|
9
|
-
"tree"
|
|
8
|
+
"matches"
|
|
10
9
|
],
|
|
11
10
|
"properties": {
|
|
12
11
|
"status": {
|
|
@@ -20,72 +19,78 @@
|
|
|
20
19
|
"type": "object",
|
|
21
20
|
"required": [
|
|
22
21
|
"path",
|
|
23
|
-
"
|
|
22
|
+
"name",
|
|
23
|
+
"matched",
|
|
24
|
+
"under"
|
|
24
25
|
],
|
|
25
26
|
"properties": {
|
|
26
27
|
"path": {
|
|
27
28
|
"type": "string",
|
|
28
29
|
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
29
30
|
"maxLength": 255,
|
|
30
|
-
"description": "Passes
|
|
31
|
+
"description": "Passes the leaf to `shopping_domain_get` and `shopping_search` verbatim."
|
|
31
32
|
},
|
|
32
|
-
"
|
|
33
|
+
"name": {
|
|
33
34
|
"type": "string",
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
"additionalProperties": false
|
|
38
|
-
},
|
|
39
|
-
"maxItems": 20,
|
|
40
|
-
"description": "Reads what already stands for this domain; an empty list is the one thing that licenses a mint."
|
|
41
|
-
},
|
|
42
|
-
"tree": {
|
|
43
|
-
"type": "array",
|
|
44
|
-
"items": {
|
|
45
|
-
"type": "object",
|
|
46
|
-
"required": [
|
|
47
|
-
"family",
|
|
48
|
-
"domains",
|
|
49
|
-
"paths"
|
|
50
|
-
],
|
|
51
|
-
"properties": {
|
|
52
|
-
"family": {
|
|
53
|
-
"type": "string",
|
|
54
|
-
"description": "Reads the family this thing would be shelved in, as a specialist shop would."
|
|
35
|
+
"maxLength": 64,
|
|
36
|
+
"description": "Calls the leaf this."
|
|
55
37
|
},
|
|
56
|
-
"
|
|
57
|
-
"type": "
|
|
58
|
-
"description": "
|
|
38
|
+
"matched": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "Reads which of sil's words for it the ask matched."
|
|
59
41
|
},
|
|
60
|
-
"
|
|
42
|
+
"under": {
|
|
61
43
|
"type": "array",
|
|
62
44
|
"items": {
|
|
63
45
|
"type": "object",
|
|
64
46
|
"required": [
|
|
65
47
|
"path",
|
|
66
|
-
"name"
|
|
48
|
+
"name",
|
|
49
|
+
"role"
|
|
67
50
|
],
|
|
68
51
|
"properties": {
|
|
69
52
|
"path": {
|
|
70
53
|
"type": "string",
|
|
71
54
|
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
72
55
|
"maxLength": 255,
|
|
73
|
-
"description": "
|
|
56
|
+
"description": "Names the place the leaf sits under."
|
|
74
57
|
},
|
|
75
58
|
"name": {
|
|
76
59
|
"type": "string",
|
|
77
60
|
"maxLength": 64,
|
|
78
|
-
"description": "
|
|
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."
|
|
79
83
|
}
|
|
80
84
|
},
|
|
81
85
|
"additionalProperties": false
|
|
82
86
|
},
|
|
83
|
-
"description": "
|
|
87
|
+
"description": "Reads every place above the leaf, outermost first and its parent last, to judge whether this is the thing the buyer means."
|
|
84
88
|
}
|
|
85
89
|
},
|
|
86
90
|
"additionalProperties": false
|
|
87
91
|
},
|
|
88
|
-
"
|
|
92
|
+
"maxItems": 3,
|
|
93
|
+
"description": "Reads the most relevant leaves for these words and judges which, if any, is the buyer’s thing. Empty: sil holds no such leaf; say so, or rephrase with what the thing is called."
|
|
89
94
|
}
|
|
90
95
|
},
|
|
91
96
|
"additionalProperties": false
|