sil-openclaw 0.6.0 → 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 +15 -0
- package/README.md +12 -11
- package/SECURITY.md +3 -3
- package/dist/lib/shopping-call.js +5 -1
- package/dist/lib/sil-client.js +34 -62
- package/dist/lib/tool-result.js +1 -1
- package/dist/tools/catalog.js +83 -239
- package/dist/tools/identity.js +74 -87
- package/openclaw.plugin.json +11 -6
- package/package.json +1 -1
- package/schema/PROVENANCE.md +7 -4
- 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 +4 -7
- package/schema/shopping-content-response.schema.json +234 -108
- package/schema/shopping-domain-get-request.schema.json +18 -0
- package/schema/shopping-domain-get-response.schema.json +124 -86
- 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 +113 -16
- package/schema/shopping-search-request.schema.json +16 -25
- package/schema/shopping-search-response.schema.json +95 -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 +149 -203
- 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-profile-edit-request.schema.json +0 -97
- package/schema/shopping-profile-edit-response.schema.json +0 -17
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.sil.com/shopping-user-read-request.schema.json",
|
|
4
|
+
"title": "sil shopping_user_read — request",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"kinds": {
|
|
8
|
+
"type": "array",
|
|
9
|
+
"items": {
|
|
10
|
+
"anyOf": [
|
|
11
|
+
{
|
|
12
|
+
"type": "string",
|
|
13
|
+
"const": "measurement"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "string",
|
|
17
|
+
"const": "memory"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "string",
|
|
21
|
+
"const": "preference"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "string",
|
|
25
|
+
"const": "purchase"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"description": "A kind of row."
|
|
29
|
+
},
|
|
30
|
+
"minItems": 1,
|
|
31
|
+
"uniqueItems": true,
|
|
32
|
+
"description": "Reads only these kinds; absent, every row."
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"additionalProperties": false
|
|
36
|
+
}
|
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.sil.com/shopping-user-read-response.schema.json",
|
|
4
|
+
"title": "sil shopping_user_read — response",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"status",
|
|
8
|
+
"rows"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"status": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"const": "ok",
|
|
14
|
+
"description": "Reads the answer. Every other status arrives as an error body carrying recovery."
|
|
15
|
+
},
|
|
16
|
+
"rows": {
|
|
17
|
+
"type": "array",
|
|
18
|
+
"items": {
|
|
19
|
+
"anyOf": [
|
|
20
|
+
{
|
|
21
|
+
"type": "object",
|
|
22
|
+
"required": [
|
|
23
|
+
"id",
|
|
24
|
+
"kind",
|
|
25
|
+
"what",
|
|
26
|
+
"value",
|
|
27
|
+
"gives_back",
|
|
28
|
+
"source",
|
|
29
|
+
"kept_at"
|
|
30
|
+
],
|
|
31
|
+
"properties": {
|
|
32
|
+
"id": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"minLength": 1,
|
|
35
|
+
"maxLength": 256,
|
|
36
|
+
"description": "Names the row to replace it, and to forget it."
|
|
37
|
+
},
|
|
38
|
+
"kind": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"const": "measurement",
|
|
41
|
+
"description": "Reads what kind of row it is."
|
|
42
|
+
},
|
|
43
|
+
"what": {
|
|
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": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"minLength": 1,
|
|
66
|
+
"maxLength": 16,
|
|
67
|
+
"description": "Reads the unit, or the size system: cm, mm, EU, UK."
|
|
68
|
+
},
|
|
69
|
+
"brand": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"minLength": 1,
|
|
72
|
+
"maxLength": 64,
|
|
73
|
+
"description": "Reads whose sizing a printed size is in."
|
|
74
|
+
},
|
|
75
|
+
"place": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"minLength": 1,
|
|
78
|
+
"maxLength": 64,
|
|
79
|
+
"description": "Names where the row applies: a place sil holds, or a wider one in a word or two, never a sentence."
|
|
80
|
+
},
|
|
81
|
+
"gives_back": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"minLength": 1,
|
|
84
|
+
"maxLength": 200,
|
|
85
|
+
"description": "Says what the row gives the buyer back next time; said when it is kept."
|
|
86
|
+
},
|
|
87
|
+
"source": {
|
|
88
|
+
"anyOf": [
|
|
89
|
+
{
|
|
90
|
+
"type": "string",
|
|
91
|
+
"const": "told"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"type": "string",
|
|
95
|
+
"const": "agent"
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"description": "`told`: the buyer said it. `agent`: the agent read it off the conversation."
|
|
99
|
+
},
|
|
100
|
+
"kept_at": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"format": "date-time",
|
|
103
|
+
"description": "Says when it was kept."
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"additionalProperties": false
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"type": "object",
|
|
110
|
+
"required": [
|
|
111
|
+
"id",
|
|
112
|
+
"kind",
|
|
113
|
+
"text",
|
|
114
|
+
"gives_back",
|
|
115
|
+
"source",
|
|
116
|
+
"kept_at"
|
|
117
|
+
],
|
|
118
|
+
"properties": {
|
|
119
|
+
"id": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"minLength": 1,
|
|
122
|
+
"maxLength": 256,
|
|
123
|
+
"description": "Names the row to replace it, and to forget it."
|
|
124
|
+
},
|
|
125
|
+
"kind": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"const": "memory",
|
|
128
|
+
"description": "Reads what kind of row it is."
|
|
129
|
+
},
|
|
130
|
+
"text": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"minLength": 1,
|
|
133
|
+
"maxLength": 500,
|
|
134
|
+
"description": "Reads what the buyer told, in a sentence; starts from it, never asks it again."
|
|
135
|
+
},
|
|
136
|
+
"place": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"minLength": 1,
|
|
139
|
+
"maxLength": 64,
|
|
140
|
+
"description": "Names where the row applies: a place sil holds, or a wider one in a word or two, never a sentence."
|
|
141
|
+
},
|
|
142
|
+
"gives_back": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"minLength": 1,
|
|
145
|
+
"maxLength": 200,
|
|
146
|
+
"description": "Says what the row gives the buyer back next time; said when it is kept."
|
|
147
|
+
},
|
|
148
|
+
"source": {
|
|
149
|
+
"anyOf": [
|
|
150
|
+
{
|
|
151
|
+
"type": "string",
|
|
152
|
+
"const": "told"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"type": "string",
|
|
156
|
+
"const": "agent"
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"description": "`told`: the buyer said it. `agent`: the agent read it off the conversation."
|
|
160
|
+
},
|
|
161
|
+
"kept_at": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"format": "date-time",
|
|
164
|
+
"description": "Says when it was kept."
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"additionalProperties": false
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"type": "object",
|
|
171
|
+
"required": [
|
|
172
|
+
"id",
|
|
173
|
+
"kind",
|
|
174
|
+
"subject",
|
|
175
|
+
"op",
|
|
176
|
+
"value",
|
|
177
|
+
"gives_back",
|
|
178
|
+
"source",
|
|
179
|
+
"kept_at"
|
|
180
|
+
],
|
|
181
|
+
"properties": {
|
|
182
|
+
"id": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"minLength": 1,
|
|
185
|
+
"maxLength": 256,
|
|
186
|
+
"description": "Names the row to replace it, and to forget it."
|
|
187
|
+
},
|
|
188
|
+
"kind": {
|
|
189
|
+
"type": "string",
|
|
190
|
+
"const": "preference",
|
|
191
|
+
"description": "Reads what kind of row it is."
|
|
192
|
+
},
|
|
193
|
+
"subject": {
|
|
194
|
+
"type": "string",
|
|
195
|
+
"minLength": 1,
|
|
196
|
+
"maxLength": 64,
|
|
197
|
+
"description": "Names what the preference is about: noise, price, a maker."
|
|
198
|
+
},
|
|
199
|
+
"op": {
|
|
200
|
+
"anyOf": [
|
|
201
|
+
{
|
|
202
|
+
"type": "string",
|
|
203
|
+
"const": "eq"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"type": "string",
|
|
207
|
+
"const": "neq"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"type": "string",
|
|
211
|
+
"const": "gte"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"type": "string",
|
|
215
|
+
"const": "lte"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"type": "string",
|
|
219
|
+
"const": "likes"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"type": "string",
|
|
223
|
+
"const": "dislikes"
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
"description": "Reads how the value bounds it: a spec operator, or likes and dislikes."
|
|
227
|
+
},
|
|
228
|
+
"value": {
|
|
229
|
+
"anyOf": [
|
|
230
|
+
{
|
|
231
|
+
"type": "number"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"type": "string",
|
|
235
|
+
"minLength": 1,
|
|
236
|
+
"maxLength": 256,
|
|
237
|
+
"description": "The value in words."
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
"description": "Reads the value the preference holds to."
|
|
241
|
+
},
|
|
242
|
+
"unit": {
|
|
243
|
+
"type": "string",
|
|
244
|
+
"minLength": 1,
|
|
245
|
+
"maxLength": 16,
|
|
246
|
+
"description": "Reads the unit or currency of a number."
|
|
247
|
+
},
|
|
248
|
+
"place": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"minLength": 1,
|
|
251
|
+
"maxLength": 64,
|
|
252
|
+
"description": "Names where the row applies: a place sil holds, or a wider one in a word or two, never a sentence."
|
|
253
|
+
},
|
|
254
|
+
"reason": {
|
|
255
|
+
"type": "string",
|
|
256
|
+
"minLength": 1,
|
|
257
|
+
"maxLength": 256,
|
|
258
|
+
"description": "Quotes why, in the buyer’s words."
|
|
259
|
+
},
|
|
260
|
+
"gives_back": {
|
|
261
|
+
"type": "string",
|
|
262
|
+
"minLength": 1,
|
|
263
|
+
"maxLength": 200,
|
|
264
|
+
"description": "Says what the row gives the buyer back next time; said when it is kept."
|
|
265
|
+
},
|
|
266
|
+
"source": {
|
|
267
|
+
"anyOf": [
|
|
268
|
+
{
|
|
269
|
+
"type": "string",
|
|
270
|
+
"const": "told"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"type": "string",
|
|
274
|
+
"const": "agent"
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
"description": "`told`: the buyer said it. `agent`: the agent read it off the conversation."
|
|
278
|
+
},
|
|
279
|
+
"kept_at": {
|
|
280
|
+
"type": "string",
|
|
281
|
+
"format": "date-time",
|
|
282
|
+
"description": "Says when it was kept."
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"additionalProperties": false
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"type": "object",
|
|
289
|
+
"required": [
|
|
290
|
+
"id",
|
|
291
|
+
"kind",
|
|
292
|
+
"product",
|
|
293
|
+
"when",
|
|
294
|
+
"gives_back",
|
|
295
|
+
"source",
|
|
296
|
+
"kept_at"
|
|
297
|
+
],
|
|
298
|
+
"properties": {
|
|
299
|
+
"id": {
|
|
300
|
+
"type": "string",
|
|
301
|
+
"minLength": 1,
|
|
302
|
+
"maxLength": 256,
|
|
303
|
+
"description": "Names the row to replace it, and to forget it."
|
|
304
|
+
},
|
|
305
|
+
"kind": {
|
|
306
|
+
"type": "string",
|
|
307
|
+
"const": "purchase",
|
|
308
|
+
"description": "Reads what kind of row it is."
|
|
309
|
+
},
|
|
310
|
+
"product": {
|
|
311
|
+
"type": "string",
|
|
312
|
+
"minLength": 1,
|
|
313
|
+
"maxLength": 128,
|
|
314
|
+
"description": "Names what they bought, maker and model."
|
|
315
|
+
},
|
|
316
|
+
"place": {
|
|
317
|
+
"type": "string",
|
|
318
|
+
"minLength": 1,
|
|
319
|
+
"maxLength": 64,
|
|
320
|
+
"description": "Names where the row applies: a place sil holds, or a wider one in a word or two, never a sentence."
|
|
321
|
+
},
|
|
322
|
+
"store": {
|
|
323
|
+
"type": "string",
|
|
324
|
+
"minLength": 1,
|
|
325
|
+
"maxLength": 128,
|
|
326
|
+
"description": "Names where they bought it."
|
|
327
|
+
},
|
|
328
|
+
"when": {
|
|
329
|
+
"type": "string",
|
|
330
|
+
"pattern": "^[0-9]{4}-[0-9]{2}(-[0-9]{2})?$",
|
|
331
|
+
"description": "Dates it, to the month or the day."
|
|
332
|
+
},
|
|
333
|
+
"note": {
|
|
334
|
+
"type": "string",
|
|
335
|
+
"minLength": 1,
|
|
336
|
+
"maxLength": 256,
|
|
337
|
+
"description": "Reads what else they said about it: its size, its fit."
|
|
338
|
+
},
|
|
339
|
+
"gives_back": {
|
|
340
|
+
"type": "string",
|
|
341
|
+
"minLength": 1,
|
|
342
|
+
"maxLength": 200,
|
|
343
|
+
"description": "Says what the row gives the buyer back next time; said when it is kept."
|
|
344
|
+
},
|
|
345
|
+
"source": {
|
|
346
|
+
"anyOf": [
|
|
347
|
+
{
|
|
348
|
+
"type": "string",
|
|
349
|
+
"const": "told"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"type": "string",
|
|
353
|
+
"const": "agent"
|
|
354
|
+
}
|
|
355
|
+
],
|
|
356
|
+
"description": "`told`: the buyer said it. `agent`: the agent read it off the conversation."
|
|
357
|
+
},
|
|
358
|
+
"kept_at": {
|
|
359
|
+
"type": "string",
|
|
360
|
+
"format": "date-time",
|
|
361
|
+
"description": "Says when it was kept."
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
"additionalProperties": false
|
|
365
|
+
}
|
|
366
|
+
]
|
|
367
|
+
},
|
|
368
|
+
"description": "Reads everything sil keeps about the buyer, whole: never asks what a row answers, and says the row when it uses it."
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
"additionalProperties": false
|
|
372
|
+
}
|