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.
Files changed (45) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +27 -26
  3. package/SECURITY.md +3 -4
  4. package/dist/index.js +1 -1
  5. package/dist/lib/shopping-call.js +7 -4
  6. package/dist/lib/sil-client.js +36 -66
  7. package/dist/lib/tool-result.js +1 -1
  8. package/dist/tools/catalog.js +83 -242
  9. package/dist/tools/identity.js +74 -87
  10. package/openclaw.plugin.json +12 -7
  11. package/package.json +1 -1
  12. package/schema/PROVENANCE.md +7 -4
  13. package/schema/shopping-brief-read-response.schema.json +1 -1
  14. package/schema/shopping-brief-write-request.schema.json +225 -0
  15. package/schema/{shopping-brief-create-response.schema.json → shopping-brief-write-response.schema.json} +3 -3
  16. package/schema/shopping-content-request.schema.json +89 -0
  17. package/schema/shopping-content-response.schema.json +298 -0
  18. package/schema/shopping-domain-get-request.schema.json +19 -1
  19. package/schema/shopping-domain-get-response.schema.json +330 -66
  20. package/schema/shopping-domain-search-request.schema.json +1 -1
  21. package/schema/shopping-domain-search-response.schema.json +40 -35
  22. package/schema/shopping-offers-request.schema.json +174 -23
  23. package/schema/shopping-offers-response.schema.json +20 -10
  24. package/schema/shopping-product-get-request.schema.json +2 -2
  25. package/schema/shopping-product-get-response.schema.json +119 -16
  26. package/schema/shopping-search-request.schema.json +16 -25
  27. package/schema/shopping-search-response.schema.json +101 -21
  28. package/schema/shopping-seller-get-response.schema.json +249 -221
  29. package/schema/shopping-user-forget-request.schema.json +43 -0
  30. package/schema/shopping-user-forget-response.schema.json +74 -0
  31. package/schema/shopping-user-read-request.schema.json +36 -0
  32. package/schema/shopping-user-read-response.schema.json +372 -0
  33. package/schema/shopping-user-remember-request.schema.json +340 -0
  34. package/schema/shopping-user-remember-response.schema.json +66 -0
  35. package/schema/sil-whoami-request.schema.json +8 -0
  36. package/schema/sil-whoami-response.schema.json +90 -0
  37. package/sil-shopping/SKILL.md +139 -180
  38. package/schema/shopping-brief-create-request.schema.json +0 -98
  39. package/schema/shopping-brief-edit-request.schema.json +0 -125
  40. package/schema/shopping-brief-edit-response.schema.json +0 -24
  41. package/schema/shopping-domain-create-request.schema.json +0 -160
  42. package/schema/shopping-domain-create-response.schema.json +0 -60
  43. package/schema/shopping-profile-edit-request.schema.json +0 -97
  44. package/schema/shopping-profile-edit-response.schema.json +0 -17
  45. package/sil-shopping/references/mint.md +0 -190
@@ -5,7 +5,8 @@
5
5
  "type": "object",
6
6
  "required": [
7
7
  "status",
8
- "products"
8
+ "products",
9
+ "receipt"
9
10
  ],
10
11
  "properties": {
11
12
  "status": {
@@ -29,7 +30,7 @@
29
30
  "type": "string",
30
31
  "minLength": 1,
31
32
  "maxLength": 256,
32
- "description": "Writes it into the Brief as the pick, so the next session names the same product."
33
+ "description": "Names the product."
33
34
  },
34
35
  "title": {
35
36
  "type": "string",
@@ -37,11 +38,17 @@
37
38
  },
38
39
  "brand": {
39
40
  "type": "string",
40
- "description": "Names the maker to the buyer."
41
+ "description": "Names the maker."
41
42
  },
42
43
  "image": {
43
44
  "type": "string",
44
- "description": "Shows it on the card."
45
+ "description": "Shows it."
46
+ },
47
+ "leaf": {
48
+ "type": "string",
49
+ "pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
50
+ "maxLength": 255,
51
+ "description": "On a search over a kind: which leaf it is."
45
52
  },
46
53
  "fit": {
47
54
  "type": "object",
@@ -56,11 +63,17 @@
56
63
  },
57
64
  {
58
65
  "type": "string"
66
+ },
67
+ {
68
+ "type": "array",
69
+ "items": {
70
+ "type": "string"
71
+ }
59
72
  }
60
73
  ]
61
74
  }
62
75
  },
63
- "description": "Answers each requested key with the value sil holds, or `\"unknown\"` where it holds none — what to dig into or to say as unverified, never a miss."
76
+ "description": "Answers each asked key with the value sil holds, or `\"unknown\"`: what to say as unverified."
64
77
  },
65
78
  "price": {
66
79
  "type": "array",
@@ -92,7 +105,7 @@
92
105
  },
93
106
  "additionalProperties": false
94
107
  },
95
- "description": "Quotes the range over the variants that came back; a currency other than the ask's is a bound sil could not test."
108
+ "description": "Quotes the range over the variants returned."
96
109
  },
97
110
  "variants": {
98
111
  "type": "array",
@@ -157,25 +170,92 @@
157
170
  },
158
171
  "description": "A variant that answers the ask, and every option value that identifies it. One carrying none is a listing sil has not read sizes from."
159
172
  },
160
- "description": "Passes an `id` on to the dossier and the offers; names the option to the buyer."
161
- },
162
- "host": {
163
- "type": "string",
164
- "description": "Names the shop whose page sil read in this request."
165
- },
166
- "printed": {
167
- "type": "object",
168
- "patternProperties": {
169
- "^.*$": {
170
- "type": "string"
171
- }
172
- },
173
- "description": "Reads the page's own labelled pairs that no key catches — a provisional read of what sil could not verify. Absent on a product sil already holds."
173
+ "description": "Passes an `id` to the dossier and offers."
174
174
  }
175
175
  },
176
176
  "additionalProperties": false
177
177
  },
178
- "description": "Shows the shortlist in this order, and never re-ranks it."
178
+ "description": "Shows the shortlist in this order."
179
+ },
180
+ "receipt": {
181
+ "type": "object",
182
+ "required": [
183
+ "shops",
184
+ "products",
185
+ "fit",
186
+ "could_not_tell",
187
+ "offered",
188
+ "finding",
189
+ "set_aside"
190
+ ],
191
+ "properties": {
192
+ "shops": {
193
+ "type": "integer",
194
+ "minimum": 0,
195
+ "description": "Says how many shops sil looked across."
196
+ },
197
+ "products": {
198
+ "type": "integer",
199
+ "minimum": 0,
200
+ "description": "Says how many products sil weighed: all it holds in the place asked; `fit`, `could_not_tell` and every `set_aside` line add up to it."
201
+ },
202
+ "fit": {
203
+ "type": "integer",
204
+ "minimum": 0,
205
+ "description": "Says how many meet every asked spec on values sil read."
206
+ },
207
+ "could_not_tell": {
208
+ "type": "integer",
209
+ "minimum": 0,
210
+ "description": "Says how many sil could not tell: nothing failed, a value was unread. Never a failure."
211
+ },
212
+ "offered": {
213
+ "type": "integer",
214
+ "minimum": 0,
215
+ "description": "Says how many of the fit sil holds an offer for in the buyer’s country."
216
+ },
217
+ "finding": {
218
+ "type": "integer",
219
+ "minimum": 0,
220
+ "description": "Says how many products sil has started finding offers for in the buyer’s country; the next offers call reads them."
221
+ },
222
+ "set_aside": {
223
+ "type": "array",
224
+ "items": {
225
+ "type": "object",
226
+ "required": [
227
+ "count",
228
+ "key"
229
+ ],
230
+ "properties": {
231
+ "count": {
232
+ "type": "integer",
233
+ "minimum": 0,
234
+ "description": "Says how many were set aside on this key, each product once, on its first failing spec."
235
+ },
236
+ "key": {
237
+ "type": "string",
238
+ "minLength": 1,
239
+ "maxLength": 64,
240
+ "description": "Names the asked spec they failed."
241
+ },
242
+ "values": {
243
+ "type": "array",
244
+ "items": {
245
+ "type": "string"
246
+ },
247
+ "maxItems": 3,
248
+ "description": "On a choice: the values they held, most common first."
249
+ }
250
+ },
251
+ "additionalProperties": false
252
+ },
253
+ "maxItems": 32,
254
+ "description": "Says why the rest were set aside, in the buyer’s words."
255
+ }
256
+ },
257
+ "additionalProperties": false,
258
+ "description": "Shows the buyer what sil checked, in a shop assistant’s words; relayed, never recounted."
179
259
  }
180
260
  },
181
261
  "additionalProperties": false