sil-openclaw 0.7.0 → 0.8.1

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 (42) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/EXAMPLES.md +93 -0
  3. package/README.md +50 -113
  4. package/SECURITY.md +9 -6
  5. package/assets/banner-dark.svg +15 -0
  6. package/assets/banner.svg +15 -0
  7. package/dist/gateway/screen.js +174 -0
  8. package/dist/index.js +5 -9
  9. package/dist/lib/answers.js +59 -0
  10. package/dist/lib/screen-log.js +13 -0
  11. package/dist/lib/shopping-call.js +23 -28
  12. package/dist/lib/sil-client.js +19 -8
  13. package/dist/tools/catalog.js +69 -72
  14. package/dist/tools/identity.js +10 -6
  15. package/openclaw.plugin.json +2 -2
  16. package/package.json +4 -2
  17. package/schema/PROVENANCE.md +1 -1
  18. package/schema/shopping-brief-read-request.schema.json +2 -1
  19. package/schema/shopping-brief-read-response.schema.json +98 -50
  20. package/schema/shopping-brief-write-request.schema.json +202 -105
  21. package/schema/shopping-content-request.schema.json +12 -28
  22. package/schema/shopping-content-response.schema.json +49 -256
  23. package/schema/shopping-domain-get-request.schema.json +16 -11
  24. package/schema/shopping-domain-get-response.schema.json +24 -460
  25. package/schema/shopping-domain-search-request.schema.json +3 -3
  26. package/schema/shopping-domain-search-response.schema.json +3 -56
  27. package/schema/shopping-offers-request.schema.json +28 -174
  28. package/schema/shopping-offers-response.schema.json +369 -102
  29. package/schema/shopping-product-get-request.schema.json +3 -2
  30. package/schema/shopping-product-get-response.schema.json +332 -128
  31. package/schema/shopping-search-request.schema.json +41 -19
  32. package/schema/shopping-search-response.schema.json +405 -187
  33. package/schema/shopping-seller-get-request.schema.json +13 -1
  34. package/schema/shopping-seller-get-response.schema.json +488 -147
  35. package/schema/shopping-user-read-request.schema.json +2 -1
  36. package/schema/shopping-user-read-response.schema.json +2 -2
  37. package/schema/shopping-user-remember-request.schema.json +9 -8
  38. package/schema/sil-whoami-response.schema.json +37 -28
  39. package/sil-shopping/SKILL.md +132 -137
  40. package/dist/gateway/search-results.js +0 -99
  41. package/dist/lib/search-results-log.js +0 -23
  42. package/dist/lib/search-results-store.js +0 -116
@@ -5,8 +5,6 @@
5
5
  "type": "object",
6
6
  "required": [
7
7
  "status",
8
- "tokens",
9
- "total",
10
8
  "passages"
11
9
  ],
12
10
  "properties": {
@@ -15,282 +13,77 @@
15
13
  "const": "ok",
16
14
  "description": "Reads the answer. Every other status arrives as an error body carrying recovery."
17
15
  },
18
- "tokens": {
19
- "type": "integer",
20
- "minimum": 0,
21
- "description": "Reads what the passages cost, in tokens."
22
- },
23
- "total": {
24
- "type": "integer",
25
- "minimum": 0,
26
- "description": "Reads how many passages hold a term before the cut."
27
- },
28
16
  "passages": {
29
17
  "type": "array",
30
18
  "items": {
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": {
19
+ "type": "object",
20
+ "required": [
21
+ "kind",
22
+ "title",
23
+ "text"
24
+ ],
25
+ "properties": {
26
+ "kind": {
27
+ "anyOf": [
28
+ {
48
29
  "type": "string",
49
- "description": "Names the document, to cite it or read it on."
30
+ "const": "guide"
50
31
  },
51
- "title": {
32
+ {
52
33
  "type": "string",
53
- "description": "Calls the document this when citing it."
34
+ "const": "tutorial"
54
35
  },
55
- "from": {
36
+ {
56
37
  "type": "string",
57
- "pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
58
- "maxLength": 255,
59
- "description": "Reads the node the document is written for."
38
+ "const": "faq"
60
39
  },
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."
89
- },
90
- "written": {
40
+ {
91
41
  "type": "string",
92
- "format": "date",
93
- "description": "Dates sil’s copy of the document."
42
+ "const": "glossary"
94
43
  },
95
- "heading": {
44
+ {
96
45
  "type": "string",
97
- "description": "Reads the heading the passage sits under."
98
- },
99
- "part": {
100
- "type": "integer",
101
- "minimum": 1,
102
- "description": "Reads where the passage sits, to read on from it."
46
+ "const": "review"
103
47
  },
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": {
48
+ {
117
49
  "type": "string",
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."
50
+ "const": "comparison"
124
51
  },
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."
149
- },
150
- "author": {
52
+ {
151
53
  "type": "string",
152
- "description": "Cites them; absent, sil wrote it."
54
+ "const": "news"
153
55
  },
154
- "url": {
56
+ {
155
57
  "type": "string",
156
- "description": "Hands the buyer the source."
58
+ "const": "discussion"
157
59
  }
158
- },
159
- "additionalProperties": false
160
- },
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
60
  ],
178
- "properties": {
179
- "id": {
180
- "type": "string",
181
- "description": "Names the document, to cite it or read it on."
182
- },
183
- "title": {
184
- "type": "string",
185
- "description": "Calls the document this when citing it."
186
- },
187
- "from": {
188
- "type": "string",
189
- "pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
190
- "maxLength": 255,
191
- "description": "Reads the node the document is written for."
192
- },
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": {
249
- "type": "string",
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."
269
- },
270
- "author": {
271
- "type": "string",
272
- "description": "Cites who wrote or measured it, never as sil."
273
- },
274
- "url": {
275
- "type": "string",
276
- "description": "Hands the buyer the source."
277
- },
278
- "published": {
279
- "type": "string",
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."
287
- }
288
- },
289
- "additionalProperties": false
61
+ "description": "Reads what the document is."
62
+ },
63
+ "title": {
64
+ "type": "string",
65
+ "description": "Cites the document by it."
66
+ },
67
+ "author": {
68
+ "type": "string",
69
+ "description": "Cites who wrote it; absent, sil did."
70
+ },
71
+ "text": {
72
+ "type": "string",
73
+ "description": "Reads the passage."
74
+ },
75
+ "url": {
76
+ "type": "string",
77
+ "description": "Hands the buyer the source."
78
+ },
79
+ "publish_date": {
80
+ "type": "string",
81
+ "format": "date",
82
+ "description": "Says when it was published, every time it is cited."
290
83
  }
291
- ]
84
+ },
85
+ "additionalProperties": false
292
86
  },
293
- "maxItems": 20,
294
87
  "description": "Reads sil’s passages, best first. Empty: say so, never the open web."
295
88
  }
296
89
  },
@@ -11,25 +11,30 @@
11
11
  "type": "string",
12
12
  "pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
13
13
  "maxLength": 255,
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`."
14
+ "description": "Sends the leaf `shopping_domain_search` answered, or the kind above its leaves. A shelf, domain or top answers `not_a_leaf` naming leaves; an area sil does not carry yet `not_carried`."
15
15
  },
16
- "keys": {
16
+ "query": {
17
+ "type": "string",
18
+ "minLength": 1,
19
+ "maxLength": 200,
20
+ "description": "Sends what the buyer wants, in English — \"quiet, small counter, about €100\" — so the specs it reaches come first."
21
+ },
22
+ "spec_keywords": {
17
23
  "type": "array",
18
24
  "items": {
19
25
  "type": "string",
20
26
  "minLength": 1,
21
- "maxLength": 64
27
+ "maxLength": 64,
28
+ "description": "A word for a spec: \"noise\", \"depth\", \"burr\"."
22
29
  },
23
30
  "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`."
31
+ "maxItems": 32,
32
+ "description": "Sends the specs the agent is looking for, in a word each; the specs they name rank first."
27
33
  },
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."
34
+ "page": {
35
+ "type": "integer",
36
+ "minimum": 2,
37
+ "description": "Reads on: the `next_page` the last answer gave."
33
38
  }
34
39
  },
35
40
  "additionalProperties": false