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.
- package/CHANGELOG.md +47 -0
- package/README.md +27 -26
- package/SECURITY.md +3 -4
- package/dist/index.js +1 -1
- package/dist/lib/shopping-call.js +7 -4
- package/dist/lib/sil-client.js +36 -66
- package/dist/lib/tool-result.js +1 -1
- package/dist/tools/catalog.js +83 -242
- package/dist/tools/identity.js +74 -87
- package/openclaw.plugin.json +12 -7
- package/package.json +1 -1
- package/schema/PROVENANCE.md +7 -4
- package/schema/shopping-brief-read-response.schema.json +1 -1
- 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 +89 -0
- package/schema/shopping-content-response.schema.json +298 -0
- package/schema/shopping-domain-get-request.schema.json +19 -1
- package/schema/shopping-domain-get-response.schema.json +330 -66
- package/schema/shopping-domain-search-request.schema.json +1 -1
- package/schema/shopping-domain-search-response.schema.json +40 -35
- 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 +119 -16
- package/schema/shopping-search-request.schema.json +16 -25
- package/schema/shopping-search-response.schema.json +101 -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 +139 -180
- 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-domain-create-request.schema.json +0 -160
- package/schema/shopping-domain-create-response.schema.json +0 -60
- package/schema/shopping-profile-edit-request.schema.json +0 -97
- package/schema/shopping-profile-edit-response.schema.json +0 -17
- package/sil-shopping/references/mint.md +0 -190
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.sil.com/shopping-content-response.schema.json",
|
|
4
|
+
"title": "sil shopping_content — response",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"status",
|
|
8
|
+
"tokens",
|
|
9
|
+
"total",
|
|
10
|
+
"passages"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"status": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"const": "ok",
|
|
16
|
+
"description": "Reads the answer. Every other status arrives as an error body carrying recovery."
|
|
17
|
+
},
|
|
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
|
+
"passages": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"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": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"description": "Names the document, to cite it or read it on."
|
|
50
|
+
},
|
|
51
|
+
"title": {
|
|
52
|
+
"type": "string",
|
|
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."
|
|
89
|
+
},
|
|
90
|
+
"written": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"format": "date",
|
|
93
|
+
"description": "Dates sil’s copy of the document."
|
|
94
|
+
},
|
|
95
|
+
"heading": {
|
|
96
|
+
"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."
|
|
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": {
|
|
117
|
+
"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."
|
|
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."
|
|
149
|
+
},
|
|
150
|
+
"author": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"description": "Cites them; absent, sil wrote it."
|
|
153
|
+
},
|
|
154
|
+
"url": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"description": "Hands the buyer the source."
|
|
157
|
+
}
|
|
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
|
+
],
|
|
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
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
},
|
|
293
|
+
"maxItems": 20,
|
|
294
|
+
"description": "Reads sil’s passages, best first. Empty: say so, never the open web."
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"additionalProperties": false
|
|
298
|
+
}
|
|
@@ -11,7 +11,25 @@
|
|
|
11
11
|
"type": "string",
|
|
12
12
|
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
13
13
|
"maxLength": 255,
|
|
14
|
-
"description": "Sends
|
|
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
|