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.
- package/CHANGELOG.md +36 -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
|
@@ -2,181 +2,35 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://schemas.sil.com/shopping-offers-request.schema.json",
|
|
4
4
|
"title": "sil shopping_offers — request",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"maxLength": 256,
|
|
18
|
-
"description": "An id sil minted, passed back verbatim."
|
|
19
|
-
},
|
|
20
|
-
"minItems": 1,
|
|
21
|
-
"maxItems": 10,
|
|
22
|
-
"description": "Sends the picked variant ids."
|
|
23
|
-
},
|
|
24
|
-
"confirm": {
|
|
25
|
-
"type": "boolean",
|
|
26
|
-
"description": "Re-reads the listing of up to three ids now, for the link the buyer is sent to."
|
|
27
|
-
},
|
|
28
|
-
"seller_specs": {
|
|
29
|
-
"type": "array",
|
|
30
|
-
"items": {
|
|
31
|
-
"type": "object",
|
|
32
|
-
"required": [
|
|
33
|
-
"key",
|
|
34
|
-
"op",
|
|
35
|
-
"value"
|
|
36
|
-
],
|
|
37
|
-
"properties": {
|
|
38
|
-
"key": {
|
|
39
|
-
"type": "string",
|
|
40
|
-
"minLength": 1,
|
|
41
|
-
"maxLength": 64,
|
|
42
|
-
"description": "Names the key from the domain read; `price` is a key every domain has."
|
|
43
|
-
},
|
|
44
|
-
"op": {
|
|
45
|
-
"anyOf": [
|
|
46
|
-
{
|
|
47
|
-
"type": "string",
|
|
48
|
-
"const": "eq"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"type": "string",
|
|
52
|
-
"const": "neq"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"type": "string",
|
|
56
|
-
"const": "gte"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"type": "string",
|
|
60
|
-
"const": "lte"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"type": "string",
|
|
64
|
-
"const": "in"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"type": "string",
|
|
68
|
-
"const": "nin"
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
"description": "Sends the operator the domain read listed for this key."
|
|
72
|
-
},
|
|
73
|
-
"value": {
|
|
74
|
-
"description": "Sends the desired value, typed by the key's type."
|
|
75
|
-
},
|
|
76
|
-
"currency": {
|
|
77
|
-
"type": "string",
|
|
78
|
-
"pattern": "^[A-Z]{3}$",
|
|
79
|
-
"minLength": 3,
|
|
80
|
-
"maxLength": 3,
|
|
81
|
-
"description": "On money, the currency the bound is tested in: sil holds no exchange rate, so it is tested against offers in this currency only. Leave it out to mean the buyer's own currency, as `sil_whoami` answers it."
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
"additionalProperties": false
|
|
85
|
-
},
|
|
86
|
-
"maxItems": 32,
|
|
87
|
-
"description": "Sends the seller terms the buyer settled; each offer answers them in `seller_fit`."
|
|
88
|
-
},
|
|
89
|
-
"brief": {
|
|
90
|
-
"type": "string",
|
|
91
|
-
"minLength": 1,
|
|
92
|
-
"maxLength": 256,
|
|
93
|
-
"description": "Ties the call to a brief in sil’s record; never required."
|
|
94
|
-
}
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"ids"
|
|
8
|
+
],
|
|
9
|
+
"properties": {
|
|
10
|
+
"ids": {
|
|
11
|
+
"type": "array",
|
|
12
|
+
"items": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"minLength": 1,
|
|
15
|
+
"maxLength": 256,
|
|
16
|
+
"description": "An id sil minted, passed back verbatim."
|
|
95
17
|
},
|
|
96
|
-
"
|
|
18
|
+
"minItems": 1,
|
|
19
|
+
"maxItems": 10,
|
|
20
|
+
"description": "Sends the variant ids to buy, from the product read."
|
|
97
21
|
},
|
|
98
|
-
{
|
|
99
|
-
"type": "
|
|
100
|
-
"
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
"description": "Sends a product’s name for a price check: maker, model, the size if named."
|
|
109
|
-
},
|
|
110
|
-
"seller_specs": {
|
|
111
|
-
"type": "array",
|
|
112
|
-
"items": {
|
|
113
|
-
"type": "object",
|
|
114
|
-
"required": [
|
|
115
|
-
"key",
|
|
116
|
-
"op",
|
|
117
|
-
"value"
|
|
118
|
-
],
|
|
119
|
-
"properties": {
|
|
120
|
-
"key": {
|
|
121
|
-
"type": "string",
|
|
122
|
-
"minLength": 1,
|
|
123
|
-
"maxLength": 64,
|
|
124
|
-
"description": "Names the key from the domain read; `price` is a key every domain has."
|
|
125
|
-
},
|
|
126
|
-
"op": {
|
|
127
|
-
"anyOf": [
|
|
128
|
-
{
|
|
129
|
-
"type": "string",
|
|
130
|
-
"const": "eq"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"type": "string",
|
|
134
|
-
"const": "neq"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"type": "string",
|
|
138
|
-
"const": "gte"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"type": "string",
|
|
142
|
-
"const": "lte"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"type": "string",
|
|
146
|
-
"const": "in"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"type": "string",
|
|
150
|
-
"const": "nin"
|
|
151
|
-
}
|
|
152
|
-
],
|
|
153
|
-
"description": "Sends the operator the domain read listed for this key."
|
|
154
|
-
},
|
|
155
|
-
"value": {
|
|
156
|
-
"description": "Sends the desired value, typed by the key's type."
|
|
157
|
-
},
|
|
158
|
-
"currency": {
|
|
159
|
-
"type": "string",
|
|
160
|
-
"pattern": "^[A-Z]{3}$",
|
|
161
|
-
"minLength": 3,
|
|
162
|
-
"maxLength": 3,
|
|
163
|
-
"description": "On money, the currency the bound is tested in: sil holds no exchange rate, so it is tested against offers in this currency only. Leave it out to mean the buyer's own currency, as `sil_whoami` answers it."
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
"additionalProperties": false
|
|
167
|
-
},
|
|
168
|
-
"maxItems": 32,
|
|
169
|
-
"description": "Sends the seller terms the buyer settled; each offer answers them in `seller_fit`."
|
|
170
|
-
},
|
|
171
|
-
"brief": {
|
|
172
|
-
"type": "string",
|
|
173
|
-
"minLength": 1,
|
|
174
|
-
"maxLength": 256,
|
|
175
|
-
"description": "Ties the call to a brief in sil’s record; never required."
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
"additionalProperties": false
|
|
22
|
+
"ship_to": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"minLength": 1,
|
|
25
|
+
"maxLength": 128,
|
|
26
|
+
"description": "Names one of the buyer’s addresses from `sil_whoami`, by label or town; the default when absent."
|
|
27
|
+
},
|
|
28
|
+
"page": {
|
|
29
|
+
"type": "integer",
|
|
30
|
+
"minimum": 2,
|
|
31
|
+
"description": "Reads on: the `next_page` the last answer gave."
|
|
179
32
|
}
|
|
180
|
-
|
|
181
|
-
"
|
|
33
|
+
},
|
|
34
|
+
"additionalProperties": false,
|
|
35
|
+
"description": "Money is in the minor unit: €130 is 13000."
|
|
182
36
|
}
|