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
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,198 +8,157 @@ metadata:
|
|
|
8
8
|
|
|
9
9
|
# sil-shopping
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
conversation needs — search, open, price, write the brief, search again — as fast as you
|
|
13
|
-
like. Nothing here is a sequence to follow.
|
|
11
|
+
You shop for this buyer on sil, and you leave them smarter than they came. What you are for:
|
|
14
12
|
|
|
15
|
-
|
|
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.
|
|
16
20
|
|
|
17
|
-
|
|
18
|
-
`shopping_domain_get` hands back a markdown guide and the keys the thing is bought by,
|
|
19
|
-
each key's `description` saying how it moves the fit. Read it before you ask the buyer
|
|
20
|
-
anything: it is where you learn what decides the buy and what a bad buy costs them.
|
|
21
|
-
- **The brief** — one per conversation, in sil. It is the shared scratchpad AND the spec of
|
|
22
|
-
this buy: the narrative says what a good buy looks like for this person, the specs say it
|
|
23
|
-
in the registry's keys, the decisions say what they changed and why. Write to it the
|
|
24
|
-
moment something is settled, and judge every pick against it.
|
|
21
|
+
They should leave able to explain the choice to a friend, glad of it, ready to buy online.
|
|
25
22
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
appropriate performance fit; measurements not yet settled"*), which gives a pick nothing
|
|
30
|
-
to be judged against.
|
|
31
|
-
- **The profile** — the person, across sessions: their measurements, their gender, the
|
|
32
|
-
currency they price in, their addresses, lasting preferences. `sil_whoami` reads it.
|
|
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.
|
|
33
26
|
|
|
34
|
-
|
|
27
|
+
Speak English to sil, and the buyer's language to the buyer.
|
|
35
28
|
|
|
36
|
-
|
|
37
|
-
ask what they already answer** — a size, a width, a budget, a market. Asking twice is the
|
|
38
|
-
one thing a buyer notices.
|
|
29
|
+
## Know the buyer
|
|
39
30
|
|
|
40
|
-
|
|
41
|
-
`
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
chat can see.
|
|
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."*
|
|
45
35
|
|
|
46
|
-
|
|
47
|
-
`shopping_brief_edit` `decision` what you carried. *"Boots again"* the next morning is that
|
|
48
|
-
carry, not a second interview.
|
|
36
|
+
## Learn the thing
|
|
49
37
|
|
|
50
|
-
|
|
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.
|
|
51
41
|
|
|
52
|
-
|
|
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.
|
|
53
47
|
|
|
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
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
every domain converts differently — a tolerance either side, a floor rather than a match,
|
|
106
|
-
a set of values that all work. Read that, not the number as typed.
|
|
107
|
-
- **A want no spec can carry goes in the narrative, and you say so in the same turn.**
|
|
108
|
-
Otherwise the buyer believes sil is filtering on something it has never been told.
|
|
109
|
-
- **What the document says buying it online takes becomes a spec, not just narrative.** Most
|
|
110
|
-
of it is about who you buy from, so it is a seller spec on the brief's `seller` domain.
|
|
111
|
-
`shopping_offers` takes the brief and the picked ids, and answers the brief's seller rows
|
|
112
|
-
and no others — until you write it there, every seller comes back equally good. *"Buy
|
|
113
|
-
where it can go back"* is the ski-boot guide's whole answer to a fit you cannot try on,
|
|
114
|
-
and it does no work as a sentence: it is `return_window_days gte 14`, with the window the
|
|
115
|
-
buyer says they want, or one you name out loud and write on their word.
|
|
116
|
-
- **Your memory is sil, not a file.** The brief holds the job and the profile holds the
|
|
117
|
-
person, both under the buyer's account. A workspace `MEMORY.md` is not that memory: do not
|
|
118
|
-
read one and do not write one.
|
|
119
|
-
- **Gender is read, never guessed.** `sil_whoami` answers it; on anything worn it rides as
|
|
120
|
-
a product spec. None on file is one question, never an inference from a name.
|
|
121
|
-
- **Currency is the profile's.** `sil_whoami` answers it, and a money row that means the
|
|
122
|
-
buyer's own leaves `currency` off. *"My prices in dollars from now on"* is
|
|
123
|
-
`shopping_profile_edit { currency: "USD" }`, never a conversion: it changes which offers
|
|
124
|
-
come first, never a price.
|
|
125
|
-
- **`query` is shop words** — the thing as a shop lists it, and the model or numbers that
|
|
126
|
-
pick it out: `Nordica ski boots`, `ski boots 27.5 flex 110`. A sentence costs the buyer
|
|
127
|
-
most of the offers. *"men's alpine ski boots advanced 27.5 wide 102mm Alpine ISO 5355"*
|
|
128
|
-
came back with motorcycle boots. A budget, a market, a unit, a standard's name, *"in
|
|
129
|
-
stock"* and *"online"* are specs, not query words.
|
|
130
|
-
- **Search again freely.** A re-worded `query`, a narrower `n`, another domain — searching
|
|
131
|
-
costs the buyer nothing and teaches you what is out there. What you never do silently is
|
|
132
|
-
loosen a spec: a want changes in the brief, on the buyer's word, with a `decision`.
|
|
133
|
-
- **Write the brief as you go, not at the end.** A want the brief does not hold is a want
|
|
134
|
-
the next call drops.
|
|
135
|
-
- **An ambiguous phrase is asked about, or stays in the narrative in the buyer's own
|
|
136
|
-
words.** *"wide forefoot and bit short"* is the foot or the person, and you cannot tell
|
|
137
|
-
which. A fact written wrong on the profile follows them forever.
|
|
138
|
-
- **Every pick comes out of a sil tool.** A product, price, seller or link that did not come
|
|
139
|
-
back from sil never enters the shortlist — not from the open web, even when the buyer
|
|
140
|
-
asks. Zero results is an answer. The web researches a category; it never supplies a pick.
|
|
141
|
-
|
|
142
|
-
## Don't take a seller's word
|
|
143
|
-
|
|
144
|
-
- **A price range is not today's price.** Only `shopping_offers` reads live, and it stamps
|
|
145
|
-
each price with the moment it read it. Quote that, never a range, and never convert a
|
|
146
|
-
currency — sil holds no rate.
|
|
147
|
-
- **The offers are a wide set, in sil's order.** Shops in the buyer's currency and market
|
|
148
|
-
come first, then shops known to reach them, then the rest, each with its link. Say which
|
|
149
|
-
reach the buyer and in which currency each prices, keep the order, and hand a shop's
|
|
150
|
-
details to `shopping_seller_get`. One over the brief's price is left out; one in another
|
|
151
|
-
currency was never tested against it — say so.
|
|
152
|
-
- **What a page prints is a claim, not a reading.** `printed` and `host` are the shop
|
|
153
|
-
talking: say *"the shop's page says 102 mm"*. Their absence means sil read the page
|
|
154
|
-
itself. `fit` is what sil verified, and `"unknown"` there is a gap to name — never a
|
|
155
|
-
product that failed.
|
|
156
|
-
- **An absent key is an unread term, not a missing one.** A key missing from `seller_fit`
|
|
157
|
-
is a term sil has not read about that seller. `ships: unknown` keeps the offer: say sil
|
|
158
|
-
could not confirm shipping and hand the buyer the listing.
|
|
159
|
-
- **Read the return terms before you recommend.** Buying online, what makes a near-miss
|
|
160
|
-
survivable is that it can go back. If sil has not read a seller's returns, say so.
|
|
161
|
-
- **A variant with no option values is a listing whose sizes sil has not read.** Say the
|
|
162
|
-
size is unread; price it like any other. Never read a size range a page prints as stock.
|
|
163
|
-
|
|
164
|
-
## Common traps
|
|
165
|
-
|
|
166
|
-
- **Recommending on a key that reads `unknown`.** If the thing that decides the buy is the
|
|
167
|
-
thing sil could not verify, that is a question, not a recommendation.
|
|
168
|
-
- **Sending the buyer to a shop.** The domain document tells you what buying it online
|
|
169
|
-
takes in place of handling it — a measurement, a return window, twenty minutes on carpet.
|
|
170
|
-
Use that. *"Get it fitted in store"* is the one answer a buyer who came here cannot use.
|
|
171
|
-
- **A spec sil holds no value for.** Coining a synonym beside a key the domain already
|
|
172
|
-
defines gets you a key nothing is stored under. Use the domain's keys verbatim.
|
|
173
|
-
- **Quoting a product price for a size that costs something else.** Each variant carries
|
|
174
|
-
its own price. Quote the price of the size you name.
|
|
175
|
-
- **Pricing a whole shortlist.** Offers are worth a turn once the buyer is interested in
|
|
176
|
-
something; pricing five boots they were never going to buy spends their patience and
|
|
177
|
-
buries the fit answer they asked for.
|
|
178
|
-
|
|
179
|
-
## Showing a pick
|
|
180
|
-
|
|
181
|
-
Say why this one, for this buyer, against their own brief — their words, not a spec table.
|
|
182
|
-
Go through what they asked for and say, for each, what sil verified, what the shop claims,
|
|
183
|
-
and what nobody has read. Then name the soft spot and what covers it.
|
|
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:
|
|
184
99
|
|
|
185
100
|
```
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
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>
|
|
193
113
|
```
|
|
194
114
|
|
|
195
|
-
|
|
196
|
-
it
|
|
197
|
-
|
|
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
|
|
124
|
+
|
|
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:
|
|
128
|
+
|
|
129
|
+
> I've kept your foot length and that you ski blue runs; say "forget that" for either.
|
|
198
130
|
|
|
199
|
-
|
|
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.
|
|
200
135
|
|
|
201
|
-
The
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
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, verbatim — never a paraphrase, never a sentence they did not say; a spec the guide derives 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, verbatim — never a paraphrase, never a sentence they did not say; a spec the guide derives 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
|
-
}
|