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.
Files changed (38) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +12 -11
  3. package/SECURITY.md +3 -3
  4. package/dist/lib/shopping-call.js +5 -1
  5. package/dist/lib/sil-client.js +34 -62
  6. package/dist/lib/tool-result.js +1 -1
  7. package/dist/tools/catalog.js +83 -239
  8. package/dist/tools/identity.js +74 -87
  9. package/openclaw.plugin.json +11 -6
  10. package/package.json +1 -1
  11. package/schema/PROVENANCE.md +7 -4
  12. package/schema/shopping-brief-write-request.schema.json +225 -0
  13. package/schema/{shopping-brief-create-response.schema.json → shopping-brief-write-response.schema.json} +3 -3
  14. package/schema/shopping-content-request.schema.json +4 -7
  15. package/schema/shopping-content-response.schema.json +234 -108
  16. package/schema/shopping-domain-get-request.schema.json +18 -0
  17. package/schema/shopping-domain-get-response.schema.json +124 -86
  18. package/schema/shopping-offers-request.schema.json +174 -23
  19. package/schema/shopping-offers-response.schema.json +20 -10
  20. package/schema/shopping-product-get-request.schema.json +2 -2
  21. package/schema/shopping-product-get-response.schema.json +113 -16
  22. package/schema/shopping-search-request.schema.json +16 -25
  23. package/schema/shopping-search-response.schema.json +95 -21
  24. package/schema/shopping-seller-get-response.schema.json +249 -221
  25. package/schema/shopping-user-forget-request.schema.json +43 -0
  26. package/schema/shopping-user-forget-response.schema.json +74 -0
  27. package/schema/shopping-user-read-request.schema.json +36 -0
  28. package/schema/shopping-user-read-response.schema.json +372 -0
  29. package/schema/shopping-user-remember-request.schema.json +340 -0
  30. package/schema/shopping-user-remember-response.schema.json +66 -0
  31. package/schema/sil-whoami-request.schema.json +8 -0
  32. package/schema/sil-whoami-response.schema.json +90 -0
  33. package/sil-shopping/SKILL.md +149 -203
  34. package/schema/shopping-brief-create-request.schema.json +0 -98
  35. package/schema/shopping-brief-edit-request.schema.json +0 -125
  36. package/schema/shopping-brief-edit-response.schema.json +0 -24
  37. package/schema/shopping-profile-edit-request.schema.json +0 -97
  38. package/schema/shopping-profile-edit-response.schema.json +0 -17
@@ -23,149 +23,275 @@
23
23
  "total": {
24
24
  "type": "integer",
25
25
  "minimum": 0,
26
- "description": "Reads how many passages hold a term before the cut — on the line, or in the document read: more than came back means a narrower grep, `kinds` or more `max_passages`."
26
+ "description": "Reads how many passages hold a term before the cut."
27
27
  },
28
28
  "passages": {
29
29
  "type": "array",
30
30
  "items": {
31
- "type": "object",
32
- "required": [
33
- "id",
34
- "kind",
35
- "title",
36
- "from",
37
- "role",
38
- "written",
39
- "part",
40
- "of",
41
- "matched",
42
- "text"
43
- ],
44
- "properties": {
45
- "id": {
46
- "type": "string",
47
- "description": "Names the document, to cite it as sil's."
48
- },
49
- "kind": {
50
- "anyOf": [
51
- {
31
+ "anyOf": [
32
+ {
33
+ "type": "object",
34
+ "required": [
35
+ "id",
36
+ "title",
37
+ "from",
38
+ "role",
39
+ "written",
40
+ "part",
41
+ "of",
42
+ "matched",
43
+ "text",
44
+ "kind"
45
+ ],
46
+ "properties": {
47
+ "id": {
52
48
  "type": "string",
53
- "const": "guide"
49
+ "description": "Names the document, to cite it or read it on."
54
50
  },
55
- {
51
+ "title": {
56
52
  "type": "string",
57
- "const": "tutorial"
53
+ "description": "Calls the document this when citing it."
54
+ },
55
+ "from": {
56
+ "type": "string",
57
+ "pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
58
+ "maxLength": 255,
59
+ "description": "Reads the node the document is written for."
60
+ },
61
+ "role": {
62
+ "anyOf": [
63
+ {
64
+ "type": "string",
65
+ "const": "root"
66
+ },
67
+ {
68
+ "type": "string",
69
+ "const": "top"
70
+ },
71
+ {
72
+ "type": "string",
73
+ "const": "domain"
74
+ },
75
+ {
76
+ "type": "string",
77
+ "const": "shelf"
78
+ },
79
+ {
80
+ "type": "string",
81
+ "const": "kind"
82
+ },
83
+ {
84
+ "type": "string",
85
+ "const": "leaf"
86
+ }
87
+ ],
88
+ "description": "Reads what that node is."
58
89
  },
59
- {
90
+ "written": {
60
91
  "type": "string",
61
- "const": "faq"
92
+ "format": "date",
93
+ "description": "Dates sil’s copy of the document."
62
94
  },
63
- {
95
+ "heading": {
64
96
  "type": "string",
65
- "const": "glossary"
97
+ "description": "Reads the heading the passage sits under."
66
98
  },
67
- {
99
+ "part": {
100
+ "type": "integer",
101
+ "minimum": 1,
102
+ "description": "Reads where the passage sits, to read on from it."
103
+ },
104
+ "of": {
105
+ "type": "integer",
106
+ "minimum": 1,
107
+ "description": "Reads how many parts its document has."
108
+ },
109
+ "matched": {
110
+ "type": "array",
111
+ "items": {
112
+ "type": "string"
113
+ },
114
+ "description": "Reads which asked terms it holds; empty, none."
115
+ },
116
+ "text": {
68
117
  "type": "string",
69
- "const": "review"
118
+ "description": "Reads the passage whole, or cut where `truncated`."
119
+ },
120
+ "truncated": {
121
+ "type": "boolean",
122
+ "const": true,
123
+ "description": "Reads that the budget cut it here."
124
+ },
125
+ "kind": {
126
+ "anyOf": [
127
+ {
128
+ "type": "string",
129
+ "const": "guide"
130
+ },
131
+ {
132
+ "type": "string",
133
+ "const": "tutorial"
134
+ },
135
+ {
136
+ "type": "string",
137
+ "const": "faq"
138
+ },
139
+ {
140
+ "type": "string",
141
+ "const": "glossary"
142
+ },
143
+ {
144
+ "type": "string",
145
+ "const": "comparison"
146
+ }
147
+ ],
148
+ "description": "Reads what the document is."
70
149
  },
71
- {
150
+ "author": {
72
151
  "type": "string",
73
- "const": "comparison"
152
+ "description": "Cites them; absent, sil wrote it."
74
153
  },
75
- {
154
+ "url": {
76
155
  "type": "string",
77
- "const": "news"
156
+ "description": "Hands the buyer the source."
78
157
  }
79
- ],
80
- "description": "Reads what the document is: a guide, a tutorial, an FAQ, a glossary …"
81
- },
82
- "title": {
83
- "type": "string",
84
- "description": "Calls the document this when citing it."
85
- },
86
- "author": {
87
- "type": "string",
88
- "description": "Reads who wrote these words, quoted verbatim from a source sil read: cite them, never as sil's own. Absent, sil wrote them."
89
- },
90
- "url": {
91
- "type": "string",
92
- "description": "Reads where the author's text was read, to hand the buyer."
93
- },
94
- "from": {
95
- "type": "string",
96
- "pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
97
- "maxLength": 255,
98
- "description": "Reads the node the document is written for."
158
+ },
159
+ "additionalProperties": false
99
160
  },
100
- "role": {
101
- "anyOf": [
102
- {
161
+ {
162
+ "type": "object",
163
+ "required": [
164
+ "id",
165
+ "title",
166
+ "from",
167
+ "role",
168
+ "written",
169
+ "part",
170
+ "of",
171
+ "matched",
172
+ "text",
173
+ "kind",
174
+ "author",
175
+ "url",
176
+ "published"
177
+ ],
178
+ "properties": {
179
+ "id": {
180
+ "type": "string",
181
+ "description": "Names the document, to cite it or read it on."
182
+ },
183
+ "title": {
103
184
  "type": "string",
104
- "const": "root"
185
+ "description": "Calls the document this when citing it."
105
186
  },
106
- {
187
+ "from": {
107
188
  "type": "string",
108
- "const": "top"
189
+ "pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
190
+ "maxLength": 255,
191
+ "description": "Reads the node the document is written for."
109
192
  },
110
- {
193
+ "role": {
194
+ "anyOf": [
195
+ {
196
+ "type": "string",
197
+ "const": "root"
198
+ },
199
+ {
200
+ "type": "string",
201
+ "const": "top"
202
+ },
203
+ {
204
+ "type": "string",
205
+ "const": "domain"
206
+ },
207
+ {
208
+ "type": "string",
209
+ "const": "shelf"
210
+ },
211
+ {
212
+ "type": "string",
213
+ "const": "kind"
214
+ },
215
+ {
216
+ "type": "string",
217
+ "const": "leaf"
218
+ }
219
+ ],
220
+ "description": "Reads what that node is."
221
+ },
222
+ "written": {
223
+ "type": "string",
224
+ "format": "date",
225
+ "description": "Dates sil’s copy of the document."
226
+ },
227
+ "heading": {
228
+ "type": "string",
229
+ "description": "Reads the heading the passage sits under."
230
+ },
231
+ "part": {
232
+ "type": "integer",
233
+ "minimum": 1,
234
+ "description": "Reads where the passage sits, to read on from it."
235
+ },
236
+ "of": {
237
+ "type": "integer",
238
+ "minimum": 1,
239
+ "description": "Reads how many parts its document has."
240
+ },
241
+ "matched": {
242
+ "type": "array",
243
+ "items": {
244
+ "type": "string"
245
+ },
246
+ "description": "Reads which asked terms it holds; empty, none."
247
+ },
248
+ "text": {
111
249
  "type": "string",
112
- "const": "domain"
250
+ "description": "Reads the passage whole, or cut where `truncated`."
251
+ },
252
+ "truncated": {
253
+ "type": "boolean",
254
+ "const": true,
255
+ "description": "Reads that the budget cut it here."
256
+ },
257
+ "kind": {
258
+ "anyOf": [
259
+ {
260
+ "type": "string",
261
+ "const": "review"
262
+ },
263
+ {
264
+ "type": "string",
265
+ "const": "news"
266
+ }
267
+ ],
268
+ "description": "Reads a dated review or a dated report."
113
269
  },
114
- {
270
+ "author": {
115
271
  "type": "string",
116
- "const": "shelf"
272
+ "description": "Cites who wrote or measured it, never as sil."
117
273
  },
118
- {
274
+ "url": {
119
275
  "type": "string",
120
- "const": "kind"
276
+ "description": "Hands the buyer the source."
121
277
  },
122
- {
278
+ "published": {
123
279
  "type": "string",
124
- "const": "leaf"
280
+ "format": "date",
281
+ "description": "Says when, every time it is cited."
282
+ },
283
+ "rumour": {
284
+ "type": "boolean",
285
+ "const": true,
286
+ "description": "Says it is a rumour, every time it is cited."
125
287
  }
126
- ],
127
- "description": "Reads what that node is: the root, a top, a domain, a shelf, a kind or a leaf."
128
- },
129
- "written": {
130
- "type": "string",
131
- "format": "date",
132
- "description": "Dates the document."
133
- },
134
- "heading": {
135
- "type": "string",
136
- "description": "Reads the heading the passage sits under; absent, it has none."
137
- },
138
- "part": {
139
- "type": "integer",
140
- "minimum": 1,
141
- "description": "Reads where the passage sits in its document, to read on from it."
142
- },
143
- "of": {
144
- "type": "integer",
145
- "minimum": 1,
146
- "description": "Reads how many parts its document has."
147
- },
148
- "matched": {
149
- "type": "array",
150
- "items": {
151
- "type": "string"
152
288
  },
153
- "description": "Reads which of the asked terms the passage holds. Empty: none — it fills the minimum from the nearest documents and answers no word of the ask."
154
- },
155
- "text": {
156
- "type": "string",
157
- "description": "Reads the passage whole, or cut where `truncated`."
158
- },
159
- "truncated": {
160
- "type": "boolean",
161
- "const": true,
162
- "description": "Reads that the budget cut the passage short here."
289
+ "additionalProperties": false
163
290
  }
164
- },
165
- "additionalProperties": false
291
+ ]
166
292
  },
167
293
  "maxItems": 20,
168
- "description": "Reads sil's passages for the terms, best first: every term, then more terms, then the densest, the nearer node breaking a tie. Empty: nothing sil holds here answers; say so, never the open web."
294
+ "description": "Reads sil’s passages, best first. Empty: say so, never the open web."
169
295
  }
170
296
  },
171
297
  "additionalProperties": false
@@ -12,6 +12,24 @@
12
12
  "pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
13
13
  "maxLength": 255,
14
14
  "description": "Sends a leaf `shopping_domain_search` answered, or a kind to list its leaves. One that does not stand answers `not_found`; a shelf, domain or top answers `not_a_leaf` naming leaves under it; an area sil does not carry yet answers `not_carried`."
15
+ },
16
+ "keys": {
17
+ "type": "array",
18
+ "items": {
19
+ "type": "string",
20
+ "minLength": 1,
21
+ "maxLength": 64
22
+ },
23
+ "minItems": 1,
24
+ "maxItems": 6,
25
+ "uniqueItems": true,
26
+ "description": "Sends keys of this place, from its index, to read only those whole — each with its `description` and `step`. Absent: the index of every key. A key the place has no spec for is refused. Not with `after`."
27
+ },
28
+ "after": {
29
+ "type": "string",
30
+ "minLength": 1,
31
+ "maxLength": 64,
32
+ "description": "Sends the `next` of the page just read, to read the index on from that key; a key the place has no spec for is refused."
15
33
  }
16
34
  },
17
35
  "additionalProperties": false