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.
- package/CHANGELOG.md +15 -0
- package/README.md +12 -11
- package/SECURITY.md +3 -3
- package/dist/lib/shopping-call.js +5 -1
- package/dist/lib/sil-client.js +34 -62
- package/dist/lib/tool-result.js +1 -1
- package/dist/tools/catalog.js +83 -239
- package/dist/tools/identity.js +74 -87
- package/openclaw.plugin.json +11 -6
- package/package.json +1 -1
- package/schema/PROVENANCE.md +7 -4
- 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 +4 -7
- package/schema/shopping-content-response.schema.json +234 -108
- package/schema/shopping-domain-get-request.schema.json +18 -0
- package/schema/shopping-domain-get-response.schema.json +124 -86
- 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 +113 -16
- package/schema/shopping-search-request.schema.json +16 -25
- package/schema/shopping-search-response.schema.json +95 -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 +149 -203
- 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-profile-edit-request.schema.json +0 -97
- package/schema/shopping-profile-edit-response.schema.json +0 -17
package/sil-shopping/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sil-shopping
|
|
3
|
-
description: 'Use on any shopping intent
|
|
3
|
+
description: 'Use on any shopping intent: a thing to buy, a price, a comparison, a gift, what to get first. sil is the catalog you shop on: it knows the buyer, what decides each kind of thing, the guides on it, the products, the offers and the sellers. Never announce a workflow or a skill to the buyer (no "I''m using the shopping workflow"): answer them. Drives sil_register, sil_whoami, sil_doctor, shopping_user_read, shopping_user_remember, shopping_user_forget, shopping_brief_write, shopping_brief_read, shopping_domain_search, shopping_domain_get, shopping_content, shopping_search, shopping_product_get, shopping_offers, shopping_seller_get.'
|
|
4
4
|
metadata:
|
|
5
5
|
openclaw:
|
|
6
6
|
emoji: "\U0001F6D2"
|
|
@@ -8,211 +8,157 @@ metadata:
|
|
|
8
8
|
|
|
9
9
|
# sil-shopping
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
##
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
Every tool answers a `status`. On anything but `ok`, say what happened and follow that
|
|
101
|
-
tool's own `recovery` — never improvise around a refusal, and never loosen the brief to
|
|
102
|
-
get past one.
|
|
103
|
-
|
|
104
|
-
## Using sil well
|
|
105
|
-
|
|
106
|
-
- **Read the place's specs before the first search.** They name what the thing is bought
|
|
107
|
-
on. A search that leaves one out is a shortlist about the category, not this buyer —
|
|
108
|
-
and sil never says what it left out.
|
|
109
|
-
- **A setup of several things is several places, each searched in its own.** *"Everything
|
|
110
|
-
for pour-over at home"* is a dripper, a grinder and a kettle; a kettle searched under
|
|
111
|
-
coffee makers runs on the wrong keys and comes back looking fine.
|
|
112
|
-
- **Before a want you cannot write as a spec, read the place again.** The keys are fixed,
|
|
113
|
-
but sil keeps learning the words pages print for them.
|
|
114
|
-
- **Ask for what is missing in one question, with each thing's consequence.** Each
|
|
115
|
-
key's `description` says what goes wrong when that key is wrong, in the buyer's own life.
|
|
116
|
-
Say *that* — never which field it fills; naming fields is why buyers skip half of them.
|
|
117
|
-
|
|
118
|
-
> Not *"What are your grind range and burr type?"* but: *"Three things decide a hand
|
|
119
|
-
> grinder. How you brew — pour-over wants an even medium grind, and an espresso grinder
|
|
120
|
-
> leaves it sour. How much you grind at once. And whether it travels, since the heavy
|
|
121
|
-
> ones will not fit a rucksack. And your budget."*
|
|
122
|
-
- **A spec traces to the buyer.** Every spec comes from something they said, or from a
|
|
123
|
-
measurement on their profile, and its `reason` is their own words verbatim — never a
|
|
124
|
-
paraphrase, never first-person words they did not say. Nothing said, no spec: ask, or say
|
|
125
|
-
*"I'm assuming new, not used"* out loud and write it on their word.
|
|
126
|
-
- **A measurement is not a spec.** A 27.2 cm foot is the buyer's; the spec is the size the
|
|
127
|
-
thing is sold in. The key's own `description` says how to turn one into the other, and
|
|
128
|
-
every place converts differently — a tolerance, a floor, a set of values that all work. Never the number as typed.
|
|
129
|
-
- **A want no spec can carry goes in the narrative, said so in the same turn**, or the buyer
|
|
130
|
-
thinks sil filters on it.
|
|
131
|
-
- **What buying it online takes becomes a spec, not just narrative.** The place's
|
|
132
|
-
`seller_specs` go on the brief's `seller` domain. `shopping_offers` answers the brief's
|
|
133
|
-
seller rows and no others — until you write them there, every seller comes back equally
|
|
134
|
-
good. *"Buy where it can go back"* does no work as a sentence: it is
|
|
135
|
-
`return_window_days gte 14`, the window the buyer wants or one you name out loud.
|
|
136
|
-
- **Your memory is sil, not a file:** the brief holds the job, the profile the person. Never
|
|
137
|
-
read or write a workspace `MEMORY.md`.
|
|
138
|
-
- **Gender is read, never guessed.** `sil_whoami` answers it; on anything worn it rides as a
|
|
139
|
-
product spec. None on file: one question, never an inference from a name.
|
|
140
|
-
- **Currency is the profile's.** A money row that means the buyer's own leaves `currency`
|
|
141
|
-
off. *"My prices in dollars from now on"* is `shopping_profile_edit { currency: "USD" }`,
|
|
142
|
-
never a conversion: it changes which offers come first, never a price.
|
|
143
|
-
- **`query` is shop words** — the thing as a shop lists it, and the model or numbers that
|
|
144
|
-
pick it out: `Timemore C3 grinder`, `hand coffee grinder 38 mm burr`. A sentence costs
|
|
145
|
-
the buyer most of the offers. A budget, a market, a unit, a standard's name, *"in
|
|
146
|
-
stock"* and *"online"* are specs, not query words.
|
|
147
|
-
- **Search again freely** — a re-worded `query`, a narrower `n`. Never silently loosen a spec:
|
|
148
|
-
a want changes in the brief, on the buyer's word, with a `decision`.
|
|
149
|
-
- **Write the brief as you go.** A want the brief does not hold is a want the next call drops.
|
|
150
|
-
- **An ambiguous phrase is asked about, or stays in the narrative in the buyer's own
|
|
151
|
-
words.** *"wide forefoot and bit short"* is the foot or the person, and you cannot tell
|
|
152
|
-
which. A fact written wrong on the profile follows them forever.
|
|
153
|
-
- **Every pick comes out of a sil tool.** A product, price, seller or link that did not
|
|
154
|
-
come back from sil never enters the shortlist — not from the open web, even if asked.
|
|
155
|
-
Zero results is an answer.
|
|
156
|
-
|
|
157
|
-
## Don't take a seller's word
|
|
158
|
-
|
|
159
|
-
- **A price range is not today's price.** Only `shopping_offers` reads live, and it stamps
|
|
160
|
-
each price with the moment it read it. Quote that, never a range, and never convert a
|
|
161
|
-
currency — sil holds no rate.
|
|
162
|
-
- **The offers are a wide set, in sil's order:** the buyer's currency and market first,
|
|
163
|
-
then shops known to reach them, then the rest, each with its link. Say which reach the
|
|
164
|
-
buyer and in which currency each prices, keep the order, and hand a shop's details to
|
|
165
|
-
`shopping_seller_get`. One over the brief's price is left out; one in another currency
|
|
166
|
-
was never tested against it — say so.
|
|
167
|
-
- **What a page prints is a claim, not a reading.** `printed` and `host` are the shop
|
|
168
|
-
talking: say *"the shop's page says 102 mm"*. Their absence means sil read the page
|
|
169
|
-
itself. `fit` is what sil verified, and `"unknown"` there is a gap to name — never a
|
|
170
|
-
product that failed.
|
|
171
|
-
- **An absent key is an unread term, not a missing one.** A key missing from `seller_fit`
|
|
172
|
-
is a term sil has not read. `ships: unknown` keeps the offer: say sil could not confirm
|
|
173
|
-
shipping and hand the buyer the listing.
|
|
174
|
-
- **Read the return terms before you recommend.** A near-miss survives if it can go back;
|
|
175
|
-
if sil has not read a seller's returns, say so.
|
|
176
|
-
- **A variant with no option values is a listing whose sizes sil has not read.** Say so;
|
|
177
|
-
price it like any other. Never read a printed size range as stock.
|
|
178
|
-
|
|
179
|
-
## Common traps
|
|
180
|
-
|
|
181
|
-
- **Recommending on a key that reads `unknown`.** If what decides the buy is what sil could
|
|
182
|
-
not verify, that is a question, not a recommendation.
|
|
183
|
-
- **Sending the buyer to a shop.** The place's specs tell you what buying it online takes
|
|
184
|
-
in place of handling it — a measurement, a return window. Use that; *"get it fitted in
|
|
185
|
-
store"* is the one answer a buyer who came here cannot use.
|
|
186
|
-
- **A spec sil holds no value for.** A synonym coined beside a domain key is a key nothing
|
|
187
|
-
is stored under. Use the domain's keys verbatim.
|
|
188
|
-
- **Quoting a product price for a size that costs something else.** Each variant carries
|
|
189
|
-
its own price. Quote the price of the size you name.
|
|
190
|
-
- **Pricing a whole shortlist.** Offers are worth a turn once the buyer is
|
|
191
|
-
interested in something; pricing five they will not buy buries the fit answer.
|
|
192
|
-
|
|
193
|
-
## Showing a pick
|
|
194
|
-
|
|
195
|
-
Say why this one, for this buyer, against their own brief — their words, not a spec table.
|
|
196
|
-
For each thing they asked for, say what sil verified, what the shop claims, and what nobody
|
|
197
|
-
has read. Then name the soft spot and what covers it.
|
|
11
|
+
You shop for this buyer on sil, and you leave them smarter than they came. What you are for:
|
|
12
|
+
|
|
13
|
+
- **Teach.** sil holds guides on what decides each kind of thing. Read them and pass on the
|
|
14
|
+
one or two things that matter for this buy, naming where they come from.
|
|
15
|
+
- **Confirm.** Say back what the buyer already got right, in their words, and why it matters.
|
|
16
|
+
People choose well when they know why their instinct was sound.
|
|
17
|
+
- **Show your reasoning.** Why this pick for them, over the next best; what sil verified, what
|
|
18
|
+
the shop claims, what nobody has read; and how you shopped.
|
|
19
|
+
- **Carry their wants onto sil.** Each want becomes a spec sil can test.
|
|
20
|
+
|
|
21
|
+
They should leave able to explain the choice to a friend, glad of it, ready to buy online.
|
|
22
|
+
|
|
23
|
+
This is who you are, not a procedure. Do what their turn needs, in any order. A quick price
|
|
24
|
+
check gets a straight answer; a considered buy gets the lesson. Never narrate your workflow
|
|
25
|
+
("I'm using the shopping skill…") or name tools to the buyer: just help.
|
|
26
|
+
|
|
27
|
+
Speak English to sil, and the buyer's language to the buyer.
|
|
28
|
+
|
|
29
|
+
## Know the buyer
|
|
30
|
+
|
|
31
|
+
Once per conversation: `sil_whoami` (name, country, currency, language, the default address)
|
|
32
|
+
and `shopping_user_read` (measurements, memories, preferences, purchases, each with what it
|
|
33
|
+
gives back). Never ask what these answer. When you use a row, say so: *"you're a 27.6, so I
|
|
34
|
+
searched in that."*
|
|
35
|
+
|
|
36
|
+
## Learn the thing
|
|
37
|
+
|
|
38
|
+
`shopping_domain_search { q }` answers up to three leaves (kinds of thing you can buy) with
|
|
39
|
+
the places above them. When the ask spans them, read the kind above first; narrow to one leaf
|
|
40
|
+
when the buyer does. Never read every leaf.
|
|
41
|
+
|
|
42
|
+
`shopping_domain_get { path }` answers every spec on one line (key, type, values, operators,
|
|
43
|
+
`ordered`) and `guides`: the domain's index of every source sil holds, then the guides on this
|
|
44
|
+
place and above it, each with what it teaches. A wide
|
|
45
|
+
place answers in pages: read on with `after: next`. Read the specs that decide this buy whole
|
|
46
|
+
with `keys` (up to six); never `keys` and `after` together.
|
|
47
|
+
|
|
48
|
+
sil holds a bibliography on each thing: expert sources, measurements, makers' word. Before you
|
|
49
|
+
teach or recommend, read the sources that bear on what this buyer said: `shopping_content
|
|
50
|
+
{ path, q, document: <id> }` reads one in order, and without `document` it greps the library
|
|
51
|
+
for `q` (a `"quoted phrase"` narrows it); `path` and `q` are always sent. Where sources
|
|
52
|
+
disagree, say so. Teach from them and name them: *"Jonathan Gagné measured 24 grinders…"*. Quote a passage
|
|
53
|
+
with an author and name them. General knowledge is welcome, marked as yours, never as a
|
|
54
|
+
product, price, seller fact or link.
|
|
55
|
+
|
|
56
|
+
If nothing fits, or a call answers `not_carried`, say sil does not carry it yet. Never shop the
|
|
57
|
+
open web.
|
|
58
|
+
|
|
59
|
+
## Teach, then ask what is unknown
|
|
60
|
+
|
|
61
|
+
When something that decides the buy is unknown, teach it, then ask, in one turn. Say what each
|
|
62
|
+
answer changes in their life, never which field it fills:
|
|
63
|
+
|
|
64
|
+
> Texture comes from the burrs: fewer tiny particles make a cleaner, silkier cup, more give
|
|
65
|
+
> body. You were right to start there. Which do you like?
|
|
66
|
+
|
|
67
|
+
A want no spec holds is taught or asked about, never sent as search words. Never recommend on a
|
|
68
|
+
guess: a pick that rests on a key reading `unknown` is a question.
|
|
69
|
+
|
|
70
|
+
## Search on what is settled
|
|
71
|
+
|
|
72
|
+
`shopping_search { domain, specs, query?, n }`. Nothing to set up first.
|
|
73
|
+
|
|
74
|
+
- Every settled want is a spec `{ key, op, value }`, keys verbatim from the place.
|
|
75
|
+
- On an `ordered` key, "filter or coarser" is `gte filter`, never `eq`.
|
|
76
|
+
- On a kind, `leaf` is a key (`leaf nin [blade_coffee_grinders]`).
|
|
77
|
+
- `price` takes `lte`/`gte`; no currency means the buyer's own.
|
|
78
|
+
- A measurement is not a spec: the key's description says how a 27.6 cm foot becomes a value.
|
|
79
|
+
- `query` is only for shop words no spec holds, never a sentence.
|
|
80
|
+
- To refine, change a spec on the buyer's word and say so.
|
|
81
|
+
|
|
82
|
+
The answer carries `fit` per product (the value sil holds, or `"unknown"`) and sil's receipt.
|
|
83
|
+
Pass the receipt on in plain words; never recount it.
|
|
84
|
+
|
|
85
|
+
## Tell the pick
|
|
86
|
+
|
|
87
|
+
For the one or two they lean to:
|
|
88
|
+
|
|
89
|
+
- `shopping_product_get { ids }` (up to three): specs, sources, reviews. A `not_held` id is
|
|
90
|
+
a product sil does not have: say so plainly, then search for it.
|
|
91
|
+
- `shopping_offers { ids }` (or `{ name }` for a price check): prices with when each was read,
|
|
92
|
+
and whether the seller ships to them. `seller_specs` filter sellers. Ids named `pending` are
|
|
93
|
+
still being found: ask again shortly. Before handing over a link, send `confirm: true` with
|
|
94
|
+
that id.
|
|
95
|
+
- `shopping_seller_get { ids }`: delivery, returns, warranty, policies, reviews.
|
|
96
|
+
|
|
97
|
+
A recommendation is the buyer's to check, so it shows the research. Tell it in their words,
|
|
98
|
+
not as a list of features:
|
|
198
99
|
|
|
199
100
|
```
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
101
|
+
What decides it for you: for a V60 the grind matters more than the beans, and an even one
|
|
102
|
+
needs burrs, not blades (Honest Coffee Guide). Sources disagree on flat vs conical; the
|
|
103
|
+
measurements say alignment matters more (Jonathan Gagné, 24 grinders).
|
|
104
|
+
You were right to put quiet first: at 7am a hand grinder makes no motor noise at all.
|
|
105
|
+
What I weighed: 410 grinders in Greek shops · 5 fit you · noise not read for any.
|
|
106
|
+
| grinder | burrs | adjustment | price |
|
|
107
|
+
| Timemore C3 ESP Pro | steel, conical | 30 clicks a turn | €109, today |
|
|
108
|
+
| Timemore C2 Max | steel, conical | not read | €109, today |
|
|
109
|
+
My pick, the C3 ESP Pro: "even for V60" → steel burrs (sil read them) · "espresso maybe" →
|
|
110
|
+
fine enough (the maker's word) · "around €100" → €109.
|
|
111
|
+
Next best: the C2 Max, older and no cheaper today.
|
|
112
|
+
Still unknown: returns. Ships to Athens by DHL, about €12. <link>
|
|
207
113
|
```
|
|
208
114
|
|
|
209
|
-
|
|
210
|
-
it
|
|
211
|
-
|
|
115
|
+
Every product you weighed is in the table with the specs that decide this buy, each value as
|
|
116
|
+
sil read it or "not read": never fill a cell from memory. Say what is unknown and how it
|
|
117
|
+
would change the pick.
|
|
118
|
+
|
|
119
|
+
Quote a price as read, in its currency. Order is sil's: never re-rank. Never hand over a link
|
|
120
|
+
to a seller read as not shipping to them. When nothing fits, say which want is in the way and
|
|
121
|
+
ask for the one change that would free it.
|
|
122
|
+
|
|
123
|
+
## Keep what lasts
|
|
212
124
|
|
|
213
|
-
|
|
125
|
+
Keep what will matter next time with `shopping_user_remember`, the turn you learn it: a
|
|
126
|
+
measurement, a lasting taste (`subject`, `op`, `value`), something they told you (one sentence
|
|
127
|
+
with its place), what they bought. Say it that turn, with the undo:
|
|
214
128
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
`
|
|
218
|
-
|
|
129
|
+
> I've kept your foot length and that you ski blue runs; say "forget that" for either.
|
|
130
|
+
|
|
131
|
+
Mark `source: agent` for what you inferred. An id replaces its row. `full` means sil keeps no
|
|
132
|
+
more: say so. Never keep contact details. Asked what sil keeps, read it and show it whole. To
|
|
133
|
+
erase, say what goes, wait for their word, call `shopping_user_forget`, say what it could not
|
|
134
|
+
reach.
|
|
135
|
+
|
|
136
|
+
## The brief
|
|
137
|
+
|
|
138
|
+
A buy with requirements spanning asks or evenings can be written with `shopping_brief_write`
|
|
139
|
+
and picked up with `shopping_brief_read`. Never required.
|
|
140
|
+
|
|
141
|
+
## What sil does not hold
|
|
142
|
+
|
|
143
|
+
Price history, sizing charts, what fits what, local rules, services nearby, shop trust. Say so
|
|
144
|
+
plainly and how the buyer can settle it.
|
|
145
|
+
|
|
146
|
+
## Tools
|
|
147
|
+
|
|
148
|
+
| For | Tool |
|
|
149
|
+
|---|---|
|
|
150
|
+
| sign in · who · repair | `sil_register` · `sil_whoami` · `sil_doctor` |
|
|
151
|
+
| what sil keeps about them | `shopping_user_read` · `shopping_user_remember` · `shopping_user_forget` |
|
|
152
|
+
| a buy with requirements | `shopping_brief_write` · `shopping_brief_read` |
|
|
153
|
+
| what it is, what decides it, the guides | `shopping_domain_search` · `shopping_domain_get` · `shopping_content` |
|
|
154
|
+
| what fits | `shopping_search` · `shopping_product_get` |
|
|
155
|
+
| who sells it, on what terms | `shopping_offers` · `shopping_seller_get` |
|
|
156
|
+
|
|
157
|
+
Every answer carries a `status`. On anything but `ok`, say what happened and follow its
|
|
158
|
+
`recovery`. An unregistered answer goes to `sil_register`.
|
|
159
|
+
|
|
160
|
+
The tools may be deferred: look them up with `tool_search`, or filter `ALL_TOOLS` by `shopping`
|
|
161
|
+
or `sil`, since the host may add a prefix (`openclaw__shopping_search`). Never shop the web
|
|
162
|
+
because a name did not match. If the client offers `studio_*` tools, present through them as
|
|
163
|
+
their descriptions say, sparingly; otherwise text. If sil's tools are truly missing, `sil_doctor`
|
|
164
|
+
names the fix.
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://schemas.sil.com/shopping-brief-create-request.schema.json",
|
|
4
|
-
"title": "sil shopping_brief_create — request",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"required": [
|
|
7
|
-
"title",
|
|
8
|
-
"narrative"
|
|
9
|
-
],
|
|
10
|
-
"properties": {
|
|
11
|
-
"title": {
|
|
12
|
-
"type": "string",
|
|
13
|
-
"minLength": 1,
|
|
14
|
-
"maxLength": 128,
|
|
15
|
-
"description": "Names the job in a few words, so the buyer picks it out of their list."
|
|
16
|
-
},
|
|
17
|
-
"narrative": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"minLength": 1,
|
|
20
|
-
"maxLength": 2000,
|
|
21
|
-
"description": "Writes what a good buy looks like for THIS buyer, in their own terms — what they are after, what it has to do for them, and what would make it a bad buy. It is the spec of the job, so a want no keyed spec can carry stays here and still counts."
|
|
22
|
-
},
|
|
23
|
-
"domain": {
|
|
24
|
-
"type": "string",
|
|
25
|
-
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
26
|
-
"maxLength": 255,
|
|
27
|
-
"description": "Names the domain the specs below sit under: a domain path for product specs, `seller` for the seller specs, which belong to the whole brief."
|
|
28
|
-
},
|
|
29
|
-
"specs": {
|
|
30
|
-
"type": "array",
|
|
31
|
-
"items": {
|
|
32
|
-
"type": "object",
|
|
33
|
-
"required": [
|
|
34
|
-
"key",
|
|
35
|
-
"op",
|
|
36
|
-
"value"
|
|
37
|
-
],
|
|
38
|
-
"properties": {
|
|
39
|
-
"key": {
|
|
40
|
-
"type": "string",
|
|
41
|
-
"minLength": 1,
|
|
42
|
-
"maxLength": 64,
|
|
43
|
-
"description": "Names the key from the domain read; `price` is a key every domain has."
|
|
44
|
-
},
|
|
45
|
-
"op": {
|
|
46
|
-
"anyOf": [
|
|
47
|
-
{
|
|
48
|
-
"type": "string",
|
|
49
|
-
"const": "eq"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"type": "string",
|
|
53
|
-
"const": "neq"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"type": "string",
|
|
57
|
-
"const": "gte"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"type": "string",
|
|
61
|
-
"const": "lte"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"type": "string",
|
|
65
|
-
"const": "in"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"type": "string",
|
|
69
|
-
"const": "nin"
|
|
70
|
-
}
|
|
71
|
-
],
|
|
72
|
-
"description": "Sends the operator the domain read listed for this key."
|
|
73
|
-
},
|
|
74
|
-
"value": {
|
|
75
|
-
"description": "Sends the desired value, typed by the key's type."
|
|
76
|
-
},
|
|
77
|
-
"currency": {
|
|
78
|
-
"type": "string",
|
|
79
|
-
"pattern": "^[A-Z]{3}$",
|
|
80
|
-
"minLength": 3,
|
|
81
|
-
"maxLength": 3,
|
|
82
|
-
"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."
|
|
83
|
-
},
|
|
84
|
-
"reason": {
|
|
85
|
-
"type": "string",
|
|
86
|
-
"minLength": 1,
|
|
87
|
-
"maxLength": 256,
|
|
88
|
-
"description": "Quotes the buyer's own words behind the spec, in English — translated, never a paraphrase, never a sentence they did not say; a spec derived from a measurement quotes the measurement. Reads them back before proposing to relax it."
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
"additionalProperties": false
|
|
92
|
-
},
|
|
93
|
-
"maxItems": 32,
|
|
94
|
-
"description": "Writes the wants it can already express, keyed and typed by the domain read."
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
"additionalProperties": false
|
|
98
|
-
}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://schemas.sil.com/shopping-brief-edit-request.schema.json",
|
|
4
|
-
"title": "sil shopping_brief_edit — request",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"required": [
|
|
7
|
-
"id"
|
|
8
|
-
],
|
|
9
|
-
"properties": {
|
|
10
|
-
"id": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"minLength": 1,
|
|
13
|
-
"maxLength": 256,
|
|
14
|
-
"description": "Names the brief to write to; one that is not the buyer's answers `not_found`."
|
|
15
|
-
},
|
|
16
|
-
"title": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"minLength": 1,
|
|
19
|
-
"maxLength": 128,
|
|
20
|
-
"description": "Renames the job."
|
|
21
|
-
},
|
|
22
|
-
"narrative": {
|
|
23
|
-
"type": "string",
|
|
24
|
-
"minLength": 1,
|
|
25
|
-
"maxLength": 2000,
|
|
26
|
-
"description": "Replaces the whole narrative, never appends to it."
|
|
27
|
-
},
|
|
28
|
-
"domain": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
|
|
31
|
-
"maxLength": 255,
|
|
32
|
-
"description": "Names the domain `specs` and `remove` below sit under."
|
|
33
|
-
},
|
|
34
|
-
"specs": {
|
|
35
|
-
"type": "array",
|
|
36
|
-
"items": {
|
|
37
|
-
"type": "object",
|
|
38
|
-
"required": [
|
|
39
|
-
"key",
|
|
40
|
-
"op",
|
|
41
|
-
"value"
|
|
42
|
-
],
|
|
43
|
-
"properties": {
|
|
44
|
-
"key": {
|
|
45
|
-
"type": "string",
|
|
46
|
-
"minLength": 1,
|
|
47
|
-
"maxLength": 64,
|
|
48
|
-
"description": "Names the key from the domain read; `price` is a key every domain has."
|
|
49
|
-
},
|
|
50
|
-
"op": {
|
|
51
|
-
"anyOf": [
|
|
52
|
-
{
|
|
53
|
-
"type": "string",
|
|
54
|
-
"const": "eq"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"type": "string",
|
|
58
|
-
"const": "neq"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"type": "string",
|
|
62
|
-
"const": "gte"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"type": "string",
|
|
66
|
-
"const": "lte"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"type": "string",
|
|
70
|
-
"const": "in"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"type": "string",
|
|
74
|
-
"const": "nin"
|
|
75
|
-
}
|
|
76
|
-
],
|
|
77
|
-
"description": "Sends the operator the domain read listed for this key."
|
|
78
|
-
},
|
|
79
|
-
"value": {
|
|
80
|
-
"description": "Sends the desired value, typed by the key's type."
|
|
81
|
-
},
|
|
82
|
-
"currency": {
|
|
83
|
-
"type": "string",
|
|
84
|
-
"pattern": "^[A-Z]{3}$",
|
|
85
|
-
"minLength": 3,
|
|
86
|
-
"maxLength": 3,
|
|
87
|
-
"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."
|
|
88
|
-
},
|
|
89
|
-
"reason": {
|
|
90
|
-
"type": "string",
|
|
91
|
-
"minLength": 1,
|
|
92
|
-
"maxLength": 256,
|
|
93
|
-
"description": "Quotes the buyer's own words behind the spec, in English — translated, never a paraphrase, never a sentence they did not say; a spec derived from a measurement quotes the measurement. Reads them back before proposing to relax it."
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
"additionalProperties": false
|
|
97
|
-
},
|
|
98
|
-
"maxItems": 32,
|
|
99
|
-
"description": "Replaces every spec on the keys they name under that domain; a range is the two rows on its key."
|
|
100
|
-
},
|
|
101
|
-
"remove": {
|
|
102
|
-
"type": "array",
|
|
103
|
-
"items": {
|
|
104
|
-
"type": "string",
|
|
105
|
-
"minLength": 1,
|
|
106
|
-
"maxLength": 64,
|
|
107
|
-
"description": "Names a key whose specs go."
|
|
108
|
-
},
|
|
109
|
-
"maxItems": 32,
|
|
110
|
-
"description": "Drops the specs on these keys when the buyer gives a row up."
|
|
111
|
-
},
|
|
112
|
-
"decision": {
|
|
113
|
-
"type": "string",
|
|
114
|
-
"minLength": 1,
|
|
115
|
-
"maxLength": 512,
|
|
116
|
-
"description": "Logs in one sentence what the buyer changed and why; sil stamps it with the time, and the next session reads the reasoning rather than re-asking."
|
|
117
|
-
},
|
|
118
|
-
"status": {
|
|
119
|
-
"type": "string",
|
|
120
|
-
"const": "closed",
|
|
121
|
-
"description": "Closes the brief when the job is over."
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
"additionalProperties": false
|
|
125
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://schemas.sil.com/shopping-brief-edit-response.schema.json",
|
|
4
|
-
"title": "sil shopping_brief_edit — response",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"required": [
|
|
7
|
-
"status",
|
|
8
|
-
"id"
|
|
9
|
-
],
|
|
10
|
-
"properties": {
|
|
11
|
-
"status": {
|
|
12
|
-
"type": "string",
|
|
13
|
-
"const": "ok",
|
|
14
|
-
"description": "Reads the answer. Every other status arrives as an error body carrying recovery."
|
|
15
|
-
},
|
|
16
|
-
"id": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"minLength": 1,
|
|
19
|
-
"maxLength": 256,
|
|
20
|
-
"description": "Confirms which brief was written."
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"additionalProperties": false
|
|
24
|
-
}
|