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
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"type": "object",
|
|
16
16
|
"required": [
|
|
17
17
|
"kind",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
18
|
+
"text",
|
|
19
|
+
"place",
|
|
20
20
|
"gives_back",
|
|
21
21
|
"source"
|
|
22
22
|
],
|
|
@@ -29,46 +29,20 @@
|
|
|
29
29
|
},
|
|
30
30
|
"kind": {
|
|
31
31
|
"type": "string",
|
|
32
|
-
"const": "
|
|
32
|
+
"const": "memory",
|
|
33
33
|
"description": "Reads what kind of row it is."
|
|
34
34
|
},
|
|
35
|
-
"
|
|
36
|
-
"type": "string",
|
|
37
|
-
"minLength": 1,
|
|
38
|
-
"maxLength": 64,
|
|
39
|
-
"description": "Names what was measured, in plain words: \"foot length\", \"chest\"."
|
|
40
|
-
},
|
|
41
|
-
"value": {
|
|
42
|
-
"anyOf": [
|
|
43
|
-
{
|
|
44
|
-
"type": "number"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"type": "string",
|
|
48
|
-
"minLength": 1,
|
|
49
|
-
"maxLength": 128,
|
|
50
|
-
"description": "A size as it is printed."
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
"description": "Reads a number to turn into a spec value, or a size as printed."
|
|
54
|
-
},
|
|
55
|
-
"unit": {
|
|
56
|
-
"type": "string",
|
|
57
|
-
"minLength": 1,
|
|
58
|
-
"maxLength": 16,
|
|
59
|
-
"description": "Reads the unit, or the size system: cm, mm, EU, UK."
|
|
60
|
-
},
|
|
61
|
-
"brand": {
|
|
35
|
+
"text": {
|
|
62
36
|
"type": "string",
|
|
63
37
|
"minLength": 1,
|
|
64
|
-
"maxLength":
|
|
65
|
-
"description": "Reads
|
|
38
|
+
"maxLength": 500,
|
|
39
|
+
"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."
|
|
66
40
|
},
|
|
67
41
|
"place": {
|
|
68
42
|
"type": "string",
|
|
69
43
|
"minLength": 1,
|
|
70
|
-
"maxLength":
|
|
71
|
-
"description": "
|
|
44
|
+
"maxLength": 255,
|
|
45
|
+
"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."
|
|
72
46
|
},
|
|
73
47
|
"gives_back": {
|
|
74
48
|
"type": "string",
|
|
@@ -96,7 +70,9 @@
|
|
|
96
70
|
"type": "object",
|
|
97
71
|
"required": [
|
|
98
72
|
"kind",
|
|
99
|
-
"
|
|
73
|
+
"what",
|
|
74
|
+
"value",
|
|
75
|
+
"place",
|
|
100
76
|
"gives_back",
|
|
101
77
|
"source"
|
|
102
78
|
],
|
|
@@ -109,20 +85,46 @@
|
|
|
109
85
|
},
|
|
110
86
|
"kind": {
|
|
111
87
|
"type": "string",
|
|
112
|
-
"const": "
|
|
88
|
+
"const": "measurement",
|
|
113
89
|
"description": "Reads what kind of row it is."
|
|
114
90
|
},
|
|
115
|
-
"
|
|
91
|
+
"what": {
|
|
116
92
|
"type": "string",
|
|
117
93
|
"minLength": 1,
|
|
118
|
-
"maxLength":
|
|
119
|
-
"description": "
|
|
94
|
+
"maxLength": 64,
|
|
95
|
+
"description": "Names what was measured, in plain words: \"foot length\", \"chest\"."
|
|
120
96
|
},
|
|
121
|
-
"
|
|
97
|
+
"value": {
|
|
98
|
+
"anyOf": [
|
|
99
|
+
{
|
|
100
|
+
"type": "number"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"type": "string",
|
|
104
|
+
"minLength": 1,
|
|
105
|
+
"maxLength": 128,
|
|
106
|
+
"description": "A size as it is printed."
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"description": "Reads a number to turn into a spec value, or a size as printed."
|
|
110
|
+
},
|
|
111
|
+
"unit": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"minLength": 1,
|
|
114
|
+
"maxLength": 16,
|
|
115
|
+
"description": "Reads the unit, or the size system: cm, mm, EU, UK."
|
|
116
|
+
},
|
|
117
|
+
"brand": {
|
|
122
118
|
"type": "string",
|
|
123
119
|
"minLength": 1,
|
|
124
120
|
"maxLength": 64,
|
|
125
|
-
"description": "
|
|
121
|
+
"description": "Reads whose sizing a printed size is in."
|
|
122
|
+
},
|
|
123
|
+
"place": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"minLength": 1,
|
|
126
|
+
"maxLength": 255,
|
|
127
|
+
"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."
|
|
126
128
|
},
|
|
127
129
|
"gives_back": {
|
|
128
130
|
"type": "string",
|
|
@@ -153,6 +155,7 @@
|
|
|
153
155
|
"subject",
|
|
154
156
|
"op",
|
|
155
157
|
"value",
|
|
158
|
+
"place",
|
|
156
159
|
"gives_back",
|
|
157
160
|
"source"
|
|
158
161
|
],
|
|
@@ -172,7 +175,7 @@
|
|
|
172
175
|
"type": "string",
|
|
173
176
|
"minLength": 1,
|
|
174
177
|
"maxLength": 64,
|
|
175
|
-
"description": "Names what the preference is about: noise, price
|
|
178
|
+
"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`."
|
|
176
179
|
},
|
|
177
180
|
"op": {
|
|
178
181
|
"anyOf": [
|
|
@@ -226,8 +229,8 @@
|
|
|
226
229
|
"place": {
|
|
227
230
|
"type": "string",
|
|
228
231
|
"minLength": 1,
|
|
229
|
-
"maxLength":
|
|
230
|
-
"description": "
|
|
232
|
+
"maxLength": 255,
|
|
233
|
+
"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."
|
|
231
234
|
},
|
|
232
235
|
"reason": {
|
|
233
236
|
"type": "string",
|
|
@@ -235,6 +238,18 @@
|
|
|
235
238
|
"maxLength": 256,
|
|
236
239
|
"description": "Quotes why, in the buyer’s words."
|
|
237
240
|
},
|
|
241
|
+
"from": {
|
|
242
|
+
"type": "array",
|
|
243
|
+
"items": {
|
|
244
|
+
"type": "string",
|
|
245
|
+
"minLength": 1,
|
|
246
|
+
"maxLength": 256,
|
|
247
|
+
"description": "Names a product sil holds, its id from a search or product read."
|
|
248
|
+
},
|
|
249
|
+
"minItems": 1,
|
|
250
|
+
"maxItems": 8,
|
|
251
|
+
"description": "Links sil’s products the liking was read from — what they own and like, or turned away from — only with `likes` or `dislikes`."
|
|
252
|
+
},
|
|
238
253
|
"gives_back": {
|
|
239
254
|
"type": "string",
|
|
240
255
|
"minLength": 1,
|
|
@@ -261,8 +276,9 @@
|
|
|
261
276
|
"type": "object",
|
|
262
277
|
"required": [
|
|
263
278
|
"kind",
|
|
264
|
-
"
|
|
265
|
-
"
|
|
279
|
+
"name",
|
|
280
|
+
"has",
|
|
281
|
+
"place",
|
|
266
282
|
"gives_back",
|
|
267
283
|
"source"
|
|
268
284
|
],
|
|
@@ -275,20 +291,43 @@
|
|
|
275
291
|
},
|
|
276
292
|
"kind": {
|
|
277
293
|
"type": "string",
|
|
278
|
-
"const": "
|
|
294
|
+
"const": "owned",
|
|
279
295
|
"description": "Reads what kind of row it is."
|
|
280
296
|
},
|
|
281
|
-
"
|
|
297
|
+
"name": {
|
|
282
298
|
"type": "string",
|
|
283
299
|
"minLength": 1,
|
|
284
300
|
"maxLength": 128,
|
|
285
|
-
"description": "Names what they
|
|
301
|
+
"description": "Names what they own or owned, maker and model, as they said it."
|
|
286
302
|
},
|
|
287
|
-
"
|
|
303
|
+
"product": {
|
|
288
304
|
"type": "string",
|
|
289
305
|
"minLength": 1,
|
|
290
|
-
"maxLength":
|
|
291
|
-
"description": "
|
|
306
|
+
"maxLength": 256,
|
|
307
|
+
"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."
|
|
308
|
+
},
|
|
309
|
+
"has": {
|
|
310
|
+
"anyOf": [
|
|
311
|
+
{
|
|
312
|
+
"type": "string",
|
|
313
|
+
"const": "now"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"type": "string",
|
|
317
|
+
"const": "before"
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
"description": "`now`: they have it. `before`: they had it and no longer do."
|
|
321
|
+
},
|
|
322
|
+
"since": {
|
|
323
|
+
"type": "string",
|
|
324
|
+
"pattern": "^[0-9]{4}(-[0-9]{2}(-[0-9]{2})?)?$",
|
|
325
|
+
"description": "Dates when they got it: a year, a month or a day."
|
|
326
|
+
},
|
|
327
|
+
"until": {
|
|
328
|
+
"type": "string",
|
|
329
|
+
"pattern": "^[0-9]{4}(-[0-9]{2}(-[0-9]{2})?)?$",
|
|
330
|
+
"description": "Dates when they stopped having it, only when `before`."
|
|
292
331
|
},
|
|
293
332
|
"store": {
|
|
294
333
|
"type": "string",
|
|
@@ -296,10 +335,11 @@
|
|
|
296
335
|
"maxLength": 128,
|
|
297
336
|
"description": "Names where they bought it."
|
|
298
337
|
},
|
|
299
|
-
"
|
|
338
|
+
"place": {
|
|
300
339
|
"type": "string",
|
|
301
|
-
"
|
|
302
|
-
"
|
|
340
|
+
"minLength": 1,
|
|
341
|
+
"maxLength": 255,
|
|
342
|
+
"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."
|
|
303
343
|
},
|
|
304
344
|
"note": {
|
|
305
345
|
"type": "string",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"anyOf": [
|
|
34
34
|
{
|
|
35
35
|
"type": "string",
|
|
36
|
-
"const": "
|
|
36
|
+
"const": "memory"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"type": "string",
|
|
40
|
-
"const": "
|
|
40
|
+
"const": "measurement"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"type": "string",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"type": "string",
|
|
48
|
-
"const": "
|
|
48
|
+
"const": "owned"
|
|
49
49
|
}
|
|
50
50
|
],
|
|
51
51
|
"description": "Reads which kind was kept."
|
|
@@ -60,6 +60,85 @@
|
|
|
60
60
|
"additionalProperties": false
|
|
61
61
|
},
|
|
62
62
|
"description": "Tells the buyer each keep, what it gives back, and that \"forget that\" undoes it."
|
|
63
|
+
},
|
|
64
|
+
"tips": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"required": [
|
|
69
|
+
"id",
|
|
70
|
+
"tip"
|
|
71
|
+
],
|
|
72
|
+
"properties": {
|
|
73
|
+
"id": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"minLength": 1,
|
|
76
|
+
"maxLength": 256,
|
|
77
|
+
"description": "Names the kept row the tip is about."
|
|
78
|
+
},
|
|
79
|
+
"tip": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"minLength": 1,
|
|
82
|
+
"description": "Teaches the fix: does it this turn."
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"additionalProperties": false
|
|
86
|
+
},
|
|
87
|
+
"minItems": 1,
|
|
88
|
+
"description": "A new owned row kept as sent, without sil’s product id: finds it and resends the row once. Absent: nothing to fix."
|
|
89
|
+
},
|
|
90
|
+
"shared": {
|
|
91
|
+
"type": "array",
|
|
92
|
+
"items": {
|
|
93
|
+
"type": "object",
|
|
94
|
+
"required": [
|
|
95
|
+
"spec",
|
|
96
|
+
"value"
|
|
97
|
+
],
|
|
98
|
+
"properties": {
|
|
99
|
+
"spec": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"minLength": 1,
|
|
102
|
+
"maxLength": 64,
|
|
103
|
+
"description": "Names the spec, as the domain read lists it."
|
|
104
|
+
},
|
|
105
|
+
"value": {
|
|
106
|
+
"anyOf": [
|
|
107
|
+
{
|
|
108
|
+
"type": "string"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"type": "number"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"type": "boolean"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"type": "array",
|
|
118
|
+
"items": {
|
|
119
|
+
"anyOf": [
|
|
120
|
+
{
|
|
121
|
+
"type": "string"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"type": "number"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"type": "boolean"
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
"minItems": 1
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"description": "The value every one holds; a list, the values common to all."
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"additionalProperties": false
|
|
138
|
+
},
|
|
139
|
+
"minItems": 1,
|
|
140
|
+
"maxItems": 20,
|
|
141
|
+
"description": "Reads what the products this keep links all hold, by spec: keeps one as a liking only when the buyer said they like it. Absent: fewer than two products, or nothing shared."
|
|
63
142
|
}
|
|
64
143
|
},
|
|
65
144
|
"additionalProperties": false
|