sil-openclaw 0.5.2 → 0.6.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.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: sil-shopping
3
- description: 'Use on any shopping intent, and to manage what sil holds for the buyer: register or check their sil account, read sil''s domain document for the thing they are buying, open and keep the session''s brief and the buyer''s profile, search for what fits, open a product, price a pick at every seller, and read a seller''s terms. Drives sil_register, sil_whoami, sil_doctor, shopping_domain_search, shopping_domain_get, shopping_domain_create, shopping_brief_create, shopping_brief_edit, shopping_brief_read, shopping_profile_edit, shopping_search, shopping_product_get, shopping_offers, shopping_seller_get.'
3
+ description: 'Use on any shopping intent, and to manage what sil holds for the buyer: register or check their sil account, find the place sil shelves the thing they are buying, read its specs and what sil has written about it, open and keep the session''s brief and the buyer''s profile, search for what fits, open a product, price a pick at every seller, and read a seller''s terms. Drives sil_register, sil_whoami, sil_doctor, shopping_domain_search, shopping_domain_get, shopping_content, shopping_brief_create, shopping_brief_edit, shopping_brief_read, shopping_profile_edit, shopping_search, shopping_product_get, shopping_offers, shopping_seller_get.'
4
4
  metadata:
5
5
  openclaw:
6
6
  emoji: "\U0001F6D2"
@@ -9,53 +9,86 @@ metadata:
9
9
  # sil-shopping
10
10
 
11
11
  sil is a catalog you shop on the buyer's behalf. You drive its tools in whatever order the
12
- conversation needs — search, open, price, write the brief, search again — as fast as you
13
- like. Nothing here is a sequence to follow.
12
+ conversation needs; only finding the place has a fixed order.
14
13
 
15
- Three things carry the job, and none of them live on this agent's disk:
14
+ **Speak English to sil, and the buyer's language to the buyer.** Everything you send sil — a
15
+ `q`, a value, a narrative, a quoted reason — is English, translated from what they said; what sil
16
+ answers you put back into their language.
16
17
 
17
- - **The domain document** — sil's own knowledge of how this thing is bought well.
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.
18
+ Three things carry the job, none on this agent's disk:
19
+
20
+ - **The place** — where sil shelves the thing, and sil's own knowledge of how it is bought
21
+ well. `shopping_domain_get` hands back the keys it is bought by, each key's `description`
22
+ saying how it moves the fit. Read it before you ask the buyer anything: it is where you
23
+ learn what decides the buy and what a bad buy costs them.
21
24
  - **The brief** — one per conversation, in sil. It is the shared scratchpad AND the spec of
22
25
  this buy: the narrative says what a good buy looks like for this person, the specs say it
23
26
  in the registry's keys, the decisions say what they changed and why. Write to it the
24
27
  moment something is settled, and judge every pick against it.
25
28
 
26
- Write the narrative as the buy succeeding, in their terms — *"a boot he can ski piste in
27
- all day without numb toes, that clicks into his GripWalk bindings, €450 at most, and can
28
- go back if the size is wrong"* — never a description of the shopping (*"needs an
29
- appropriate performance fit; measurements not yet settled"*), which gives a pick nothing
30
- to be judged against.
29
+ Write the narrative as the buy succeeding, in their terms — *"a hand grinder with an even
30
+ pour-over grind, fits a rucksack, €80 at most"* — never a description of the shopping
31
+ (*"needs a good grind; requirements not yet settled"*).
31
32
  - **The profile** — the person, across sessions: their measurements, their gender, the
32
33
  currency they price in, their addresses, lasting preferences. `sil_whoami` reads it.
33
34
 
34
35
  ## Start by reading
35
36
 
36
37
  `sil_whoami` and `shopping_brief_read {}` are the two reads a new chat opens with. **Never
37
- ask what they already answer** — a size, a width, a budget, a market. Asking twice is the
38
- one thing a buyer notices.
38
+ ask what they already answer** — a size, a width, a budget, a market.
39
39
 
40
40
  **Then open this session's brief, as soon as you know what they are shopping for** — with
41
- `shopping_brief_create`, before you ask them anything, not after they answer. It is the
42
- scratchpad: their answers, the assumptions you say out loud, and every decision land in it
43
- as they happen. A turn that ends with nothing written is a turn no later turn and no later
44
- chat can see.
41
+ `shopping_brief_create`, before you ask them anything. Their answers, the assumptions you
42
+ say out loud, and every decision land in it as they happen: a turn that ends with nothing
43
+ written is one no later turn can see.
45
44
 
46
45
  A past brief is read, never reused: carry forward what is still true, and say in the first
47
- `shopping_brief_edit` `decision` what you carried. *"Boots again"* the next morning is that
48
- carry, not a second interview.
49
-
50
- An unregistered answer from any call routes to `sil_register`. Nothing is set up in advance.
46
+ `shopping_brief_edit` `decision` what you carried — not a second interview.
47
+ An unregistered answer from any call routes to `sil_register`.
48
+
49
+ ## Find the place
50
+
51
+ 1. `shopping_domain_search { q }` — `q` is what the thing is called, in English.
52
+ Up to three leaves (buyable kinds of thing), best first, each with `matched` and
53
+ `under` — the places above it, outermost first down to its parent.
54
+ 2. **Choose the leaf that fits the ask.** `under` tells *"boot liners"* under Vehicles › Car
55
+ cargo from those under Skiing › Ski boot accessories. Ask nothing the ask already
56
+ answers — but when the three share one kind (three ski boots under "Ski boots"), ask
57
+ which. A leaf that does not fit (*"Hunting dog harnesses"* for a canicross harness) is
58
+ no fit: say so, never shop it.
59
+ 3. `shopping_domain_get { path }` — the specs: unit, allowed values, marks. `variant_spec` is
60
+ settled before searching if the buyer has not said it, its values under `variants[]`;
61
+ `product_spec` is written into the brief when the buyer names it, and two products
62
+ differing on it are never one; `several` is a list, `eq`/`in` meet any, `neq`/`nin` none.
63
+ `parts` are what it has, `kinds` what it is, `made_for` what a part fits. `record`:
64
+ `specs` — bought on measures alone; `full` — on measures plus purpose, story, pros and
65
+ cons, for and not for. A kind lists its `leaves`.
66
+ 4. `shopping_content { path, q }` on that leaf, **before your first question to the buyer**:
67
+ `q` is the thing and what the specs say decides it, in shop words (*"ski boot size width
68
+ flex"*). It greps sil's library on the leaf and every place above it — sil's guides, and
69
+ the sources sil read, verbatim. Let what it answers shape the question you ask.
70
+ 5. `shopping_search` there, the path as `domain`. A shelf or domain, in either call, is
71
+ refused `not_a_leaf`, naming leaves.
72
+
73
+ **When the buyer asks how or why** — how to measure a foot, what a grand cru is — grep the
74
+ leaf with their question in English, then work it like grep: narrow with a `"quoted phrase"` (*"premier
75
+ cru"*), read a promising document on with `document` and `from`, grep again in other words
76
+ when `total` says there is more. "what sil holds" answers a domain's whole library with each
77
+ document's `id`. Answer from the passages: a passage with `author` is quoted and named with its
78
+ `url`; one without is sil's. Nothing matches after a rephrase: say sil holds nothing on it, and
79
+ answer only what the specs say — never the open web.
80
+
81
+ **No leaf fits, `shopping_domain_search` answers empty, or a call answers `not carried`:** tell the buyer in
82
+ your own words that sil cannot sell that at the moment, it is in the pipeline. List nothing,
83
+ search nothing, never shop around.
51
84
 
52
85
  ## The tools
53
86
 
54
87
  | What you want | Tool |
55
88
  |---|---|
56
89
  | sign up / log in / who am I | `sil_register` · `sil_whoami` |
57
- | what sil knows about how this thing is bought | `shopping_domain_search` → `shopping_domain_get` |
58
- | a domain sil does not hold yet | `shopping_domain_create` — the fallback, and [`mint.md`](references/mint.md) is the guide to minting |
90
+ | where sil shelves this thing, and how it is bought | `shopping_domain_search` → `shopping_domain_get` |
91
+ | what sil has written on choosing it, measuring for it, using it | `shopping_content` |
59
92
  | open this session's brief, write a want, log a decision | `shopping_brief_create` · `shopping_brief_edit` |
60
93
  | what is already on file | `shopping_brief_read` · `sil_whoami` |
61
94
  | a measurement, a lasting taste, their currency | `shopping_profile_edit` |
@@ -65,141 +98,121 @@ An unregistered answer from any call routes to `sil_register`. Nothing is set up
65
98
  | sil looks broken | `sil_doctor` |
66
99
 
67
100
  Every tool answers a `status`. On anything but `ok`, say what happened and follow that
68
- tool's own `recovery` — never improvise around a refusal, and never loosen the brief to get
69
- past one. Each tool's parameters live in its own definition.
70
-
71
- **`references/mint.md` sits beside this file** — read it from the folder of the path your
72
- host listed for this skill, never a guessed path under the gateway home.
101
+ tool's own `recovery` — never improvise around a refusal, and never loosen the brief to
102
+ get past one.
73
103
 
74
104
  ## Using sil well
75
105
 
76
- - **Read the domain document before the first search.** It names what the thing is bought
77
- on. A search that leaves one of those out is a shortlist about the category, not about
78
- this buyer — and you will not know what you missed, because sil never says what it left
79
- out.
80
- - **A setup of several things is several domains, and a search runs in the domain of the
81
- thing it is for.** *"Everything for pour-over at home"* is a dripper, a grinder and a
82
- kettle: find or mint each one, then search each in its own. A kettle searched under coffee
83
- makers runs on the wrong keys and comes back looking fine.
84
- - **Before a want you cannot write as a spec, re-read the document with
85
- `shopping_domain_get`.** It grows as sil reads pages, so a value the enum lacked or a key
86
- the domain never had may be there now — read again before you decide it cannot be asked.
87
- - **Ask for what is missing in one question, and give each thing its consequence.** Each
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
88
115
  key's `description` says what goes wrong when that key is wrong, in the buyer's own life.
89
- Say *that* — never which field it fills. Naming the fields back answers a question nobody
90
- asked, and it is why buyers skip half of them.
91
-
92
- > Not: *"What are your foot length and forefoot width in mm, discipline, and binding sole
93
- > standard? These determine size, shell width and compatibility."*
94
- >
95
- > Instead: *"Four things decide a ski boot, and each one costs you the day if it's wrong.
96
- > Your foot length — a shell a size too long and your heel lifts on every turn. Your
97
- > forefoot width in mm — narrower than your foot and your toes are numb by the second run.
98
- > Which binding you own — the wrong sole won't click in at all. And your budget."*
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."*
99
122
  - **A spec traces to the buyer.** Every spec comes from something they said, or from a
100
123
  measurement on their profile, and its `reason` is their own words verbatim — never a
101
124
  paraphrase, never first-person words they did not say. Nothing said, no spec: ask, or say
102
125
  *"I'm assuming new, not used"* out loud and write it on their word.
103
- - **A measurement is not a spec.** 27.2 cm is the buyer's foot; the spec is the size the
126
+ - **A measurement is not a spec.** A 27.2 cm foot is the buyer's; the spec is the size the
104
127
  thing is sold in. The key's own `description` says how to turn one into the other, and
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.
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.
125
143
  - **`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
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
129
146
  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.
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.
135
150
  - **An ambiguous phrase is asked about, or stays in the narrative in the buyer's own
136
151
  words.** *"wide forefoot and bit short"* is the foot or the person, and you cannot tell
137
152
  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.
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.
141
156
 
142
157
  ## Don't take a seller's word
143
158
 
144
159
  - **A price range is not today's price.** Only `shopping_offers` reads live, and it stamps
145
160
  each price with the moment it read it. Quote that, never a range, and never convert a
146
161
  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.
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.
152
167
  - **What a page prints is a claim, not a reading.** `printed` and `host` are the shop
153
168
  talking: say *"the shop's page says 102 mm"*. Their absence means sil read the page
154
169
  itself. `fit` is what sil verified, and `"unknown"` there is a gap to name — never a
155
170
  product that failed.
156
171
  - **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.
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.
163
178
 
164
179
  ## Common traps
165
180
 
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.
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.
173
188
  - **Quoting a product price for a size that costs something else.** Each variant carries
174
189
  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.
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.
178
192
 
179
193
  ## Showing a pick
180
194
 
181
195
  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.
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.
184
198
 
185
199
  ```
186
- My pick: Nordica HF 110, size 27.5, €399 at freerider.gr.
187
- size 27–27.5 ........ 27.5 — sil read it
188
- width 100 or more ... 102 — the shop's page says so; sil has not checked it
189
- GripWalk ............ yes — sil read it
190
- €450 at most ........ €399, read a minute ago
191
- The soft spot is the width: it is the shop's word. freerider.gr takes returns for 14 days,
192
- so if the toes pinch, it goes back. Want the link?
200
+ My pick: Timemore C3, €64 at kafeshop.gr.
201
+ hand-cranked ........ yes — sil read it
202
+ burr 38 mm or more .. 38 — the shop's page says so; sil has not checked it
203
+ fits a rucksack ..... 520 g, 18 cm — sil read it
204
+ €80 at most ......... €64, read a minute ago
205
+ The soft spot is the burr size: it is the shop's word. kafeshop.gr takes returns for 14
206
+ days, so if the grind is uneven, it goes back. Want the link?
193
207
  ```
194
208
 
195
209
  When nothing fits, say which want is in the way and ask for the one change that would give
196
- it up — then write their answer into the brief with a `decision` and search again. Searching
197
- again with that want changed is the only way to learn what giving it up reaches.
210
+ it up — then write their answer into the brief with a `decision` and search again: that is
211
+ the only way to learn what giving it up reaches.
198
212
 
199
213
  ## When sil's tools are missing
200
214
 
201
- The host is filtering them — the shipped admission helper repairs it (additively admitting
202
- sil at `plugins.allow` + `tools.alsoAllow`), then reopen the session. If `sil_doctor` still
203
- runs, its `wiring.tools_not_admitted` finding names the exact command: a `node "<absolute
204
- path>"` invocation, never a bare bin name. If no sil tool runs at all, run `node
205
- scripts/allowlist-openclaw.mjs` from the sil plugin's install directory — an operator fix.
215
+ The host is filtering them: the admission helper repairs it (additively admitting sil at
216
+ `plugins.allow` + `tools.alsoAllow`); reopen the session. If `sil_doctor` still runs, its
217
+ `wiring.tools_not_admitted` finding names the exact `node "<absolute path>"` command. If no
218
+ sil tool runs, run `node scripts/allowlist-openclaw.mjs` from the plugin's install directory.
@@ -1,160 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://schemas.sil.com/shopping-domain-create-request.schema.json",
4
- "title": "sil shopping_domain_create — request",
5
- "type": "object",
6
- "required": [
7
- "path",
8
- "guide",
9
- "name",
10
- "specs"
11
- ],
12
- "properties": {
13
- "path": {
14
- "type": "string",
15
- "pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
16
- "maxLength": 255,
17
- "description": "Mints this path; only its root must already stand. A path directly under `product` is refused — name the family the thing is shelved in, as `product.sports.winter.ski.boots` does."
18
- },
19
- "guide": {
20
- "type": "string",
21
- "minLength": 1,
22
- "maxLength": 4096,
23
- "description": "Writes the domain document every later buyer inherits, in markdown: what the thing is bought on, what goes wrong and what that costs the buyer, what to trust and what not to, and what buying it online takes in place of handling it. A domain sil has curated already carries one — write one only for a domain the registry does not hold."
24
- },
25
- "name": {
26
- "type": "string",
27
- "minLength": 1,
28
- "maxLength": 64,
29
- "description": "Names the thing in English, and there is ONE. A name a standing domain already answers to is refused, naming that domain."
30
- },
31
- "labels": {
32
- "type": "array",
33
- "items": {
34
- "type": "string",
35
- "minLength": 1,
36
- "maxLength": 64
37
- },
38
- "minItems": 1,
39
- "maxItems": 20,
40
- "description": "Seeds the market's own words for the thing, in any language — `καφετιέρα φίλτρου`, `dripper`. sil asks the indexes in them and grows more from the titles it holds."
41
- },
42
- "specs": {
43
- "type": "array",
44
- "items": {
45
- "type": "object",
46
- "required": [
47
- "key",
48
- "display_name",
49
- "type"
50
- ],
51
- "properties": {
52
- "key": {
53
- "type": "string",
54
- "minLength": 1,
55
- "maxLength": 64,
56
- "description": "Coins the key here; naming one an ancestor defines redefines it for this subtree, or answers `inherited: true` when the declaration states nothing new."
57
- },
58
- "display_name": {
59
- "type": "string",
60
- "minLength": 1,
61
- "maxLength": 128,
62
- "description": "Names the key for a reader in the buyer's words."
63
- },
64
- "description": {
65
- "type": "string",
66
- "maxLength": 1024,
67
- "description": "Writes how this one key moves the fit, for every agent that reads this domain after you — what it decides, what goes wrong at either end of it, and how a measurement or a stated preference becomes a value for it."
68
- },
69
- "type": {
70
- "anyOf": [
71
- {
72
- "type": "string",
73
- "const": "number"
74
- },
75
- {
76
- "type": "string",
77
- "const": "boolean"
78
- },
79
- {
80
- "type": "string",
81
- "const": "enum"
82
- },
83
- {
84
- "type": "string",
85
- "const": "money"
86
- }
87
- ],
88
- "description": "Types the value the agent sends and reads for this key."
89
- },
90
- "unit": {
91
- "type": "string",
92
- "minLength": 1,
93
- "description": "Declares the unit every value of this key is in."
94
- },
95
- "allowed_values": {
96
- "type": "array",
97
- "items": {
98
- "type": "string",
99
- "minLength": 1
100
- },
101
- "minItems": 1,
102
- "description": "Declares the closed set an enum takes."
103
- },
104
- "step": {
105
- "type": "number",
106
- "exclusiveMinimum": 0,
107
- "description": "Declares the increment the maker prints this numeric axis in — 0.5 for a Mondopoint size. Only on a number."
108
- },
109
- "forms": {
110
- "type": "object",
111
- "patternProperties": {
112
- "^.*$": {
113
- "type": "string",
114
- "minLength": 1
115
- }
116
- },
117
- "maxProperties": 100,
118
- "description": "Declares what pages print for a value, mapped to the value — `{\"1-4 cups\": \"02\", \"43⅓\": \"43.3\"}` — so a page sil has never read keys it without a model."
119
- },
120
- "labels": {
121
- "type": "array",
122
- "items": {
123
- "type": "string",
124
- "minLength": 1,
125
- "maxLength": 60
126
- },
127
- "minItems": 1,
128
- "maxItems": 20,
129
- "description": "Maps the headings pages print this key under — `Flex`, `Flex Index`, `Ευρετήριο Flex` — so a page sil has never read keys the value without a model."
130
- },
131
- "aliases": {
132
- "type": "array",
133
- "items": {
134
- "type": "string",
135
- "minLength": 1,
136
- "maxLength": 60
137
- },
138
- "minItems": 1,
139
- "maxItems": 20,
140
- "description": "Maps the names another agent may send for this key — `mondopoint`, `mondo` — so a search naming one of them is answered on this key instead of refused."
141
- },
142
- "variant_spec": {
143
- "type": "boolean",
144
- "const": true,
145
- "description": "Marks a key that, alone or with the others so marked, identifies a purchasable variant."
146
- },
147
- "product_spec": {
148
- "type": "boolean",
149
- "const": true,
150
- "description": "Marks a key that, with the brand and the others so marked, tells one product from the next."
151
- }
152
- },
153
- "additionalProperties": false
154
- },
155
- "maxItems": 50,
156
- "description": "Coins the keys this domain is bought by; the registry derives the operators."
157
- }
158
- },
159
- "additionalProperties": false
160
- }
@@ -1,60 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://schemas.sil.com/shopping-domain-create-response.schema.json",
4
- "title": "sil shopping_domain_create — response",
5
- "type": "object",
6
- "required": [
7
- "status",
8
- "path",
9
- "specs"
10
- ],
11
- "properties": {
12
- "status": {
13
- "type": "string",
14
- "const": "ok",
15
- "description": "Reads the answer. Every other status arrives as an error body carrying recovery."
16
- },
17
- "path": {
18
- "type": "string",
19
- "description": "Searches it."
20
- },
21
- "specs": {
22
- "type": "array",
23
- "items": {
24
- "type": "object",
25
- "required": [
26
- "key"
27
- ],
28
- "properties": {
29
- "key": {
30
- "type": "string",
31
- "description": "Uses this key in the Brief and in `shopping_search`."
32
- },
33
- "variant_spec": {
34
- "type": "boolean",
35
- "const": true,
36
- "description": "Knows it must settle this key for a variant."
37
- },
38
- "product_spec": {
39
- "type": "boolean",
40
- "const": true,
41
- "description": "Knows this key tells one product from the next."
42
- },
43
- "inherited": {
44
- "type": "boolean",
45
- "const": true,
46
- "description": "Knows it may filter on this key without having minted it."
47
- },
48
- "bound_from": {
49
- "type": "string",
50
- "maxLength": 64,
51
- "description": "Reads the key it sent, which named a key that already stands: sil answers on the standing one and maps what was sent onto it. Uses `key`, never this."
52
- }
53
- },
54
- "additionalProperties": false
55
- },
56
- "description": "Reads back the keys the registry accepted, as it accepted them."
57
- }
58
- },
59
- "additionalProperties": false
60
- }