sil-openclaw 0.7.0 → 0.8.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 +29 -0
- package/EXAMPLES.md +93 -0
- package/README.md +50 -113
- package/SECURITY.md +9 -6
- package/assets/banner-dark.svg +15 -0
- package/assets/banner.svg +15 -0
- package/dist/gateway/screen.js +174 -0
- package/dist/index.js +5 -9
- package/dist/lib/answers.js +59 -0
- package/dist/lib/screen-log.js +13 -0
- package/dist/lib/shopping-call.js +23 -28
- package/dist/lib/sil-client.js +19 -8
- package/dist/tools/catalog.js +69 -72
- package/dist/tools/identity.js +10 -6
- package/openclaw.plugin.json +2 -2
- package/package.json +4 -2
- package/schema/PROVENANCE.md +1 -1
- package/schema/shopping-brief-read-request.schema.json +2 -1
- package/schema/shopping-brief-read-response.schema.json +98 -50
- package/schema/shopping-brief-write-request.schema.json +202 -105
- package/schema/shopping-content-request.schema.json +12 -28
- package/schema/shopping-content-response.schema.json +49 -256
- package/schema/shopping-domain-get-request.schema.json +16 -11
- package/schema/shopping-domain-get-response.schema.json +24 -460
- package/schema/shopping-domain-search-request.schema.json +3 -3
- package/schema/shopping-domain-search-response.schema.json +3 -56
- package/schema/shopping-offers-request.schema.json +28 -174
- package/schema/shopping-offers-response.schema.json +369 -102
- package/schema/shopping-product-get-request.schema.json +3 -2
- package/schema/shopping-product-get-response.schema.json +332 -128
- package/schema/shopping-search-request.schema.json +41 -19
- package/schema/shopping-search-response.schema.json +405 -187
- package/schema/shopping-seller-get-request.schema.json +13 -1
- package/schema/shopping-seller-get-response.schema.json +488 -147
- package/schema/shopping-user-read-request.schema.json +2 -1
- package/schema/shopping-user-read-response.schema.json +2 -2
- package/schema/shopping-user-remember-request.schema.json +9 -8
- package/schema/sil-whoami-response.schema.json +37 -28
- package/sil-shopping/SKILL.md +132 -137
- package/dist/gateway/search-results.js +0 -99
- package/dist/lib/search-results-log.js +0 -23
- 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
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
"
|
|
30
|
+
"const": "guide"
|
|
50
31
|
},
|
|
51
|
-
|
|
32
|
+
{
|
|
52
33
|
"type": "string",
|
|
53
|
-
"
|
|
34
|
+
"const": "tutorial"
|
|
54
35
|
},
|
|
55
|
-
|
|
36
|
+
{
|
|
56
37
|
"type": "string",
|
|
57
|
-
"
|
|
58
|
-
"maxLength": 255,
|
|
59
|
-
"description": "Reads the node the document is written for."
|
|
38
|
+
"const": "faq"
|
|
60
39
|
},
|
|
61
|
-
|
|
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
|
-
"
|
|
93
|
-
"description": "Dates sil’s copy of the document."
|
|
42
|
+
"const": "glossary"
|
|
94
43
|
},
|
|
95
|
-
|
|
44
|
+
{
|
|
96
45
|
"type": "string",
|
|
97
|
-
"
|
|
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
|
-
|
|
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
|
-
"
|
|
119
|
-
},
|
|
120
|
-
"truncated": {
|
|
121
|
-
"type": "boolean",
|
|
122
|
-
"const": true,
|
|
123
|
-
"description": "Reads that the budget cut it here."
|
|
50
|
+
"const": "comparison"
|
|
124
51
|
},
|
|
125
|
-
|
|
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
|
-
"
|
|
54
|
+
"const": "news"
|
|
153
55
|
},
|
|
154
|
-
|
|
56
|
+
{
|
|
155
57
|
"type": "string",
|
|
156
|
-
"
|
|
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
|
-
"
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
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
|
|
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
|
-
"
|
|
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":
|
|
25
|
-
"
|
|
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
|
-
"
|
|
29
|
-
"type": "
|
|
30
|
-
"
|
|
31
|
-
"
|
|
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
|