sil-openclaw 0.8.3 → 0.8.4

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 CHANGED
@@ -10,6 +10,24 @@ release (`clawhub package publish --changelog`). See [README](./README.md#releas
10
10
 
11
11
  ## [Unreleased]
12
12
 
13
+ ## [0.8.4] - 2026-11-27
14
+
15
+ ### Changed
16
+
17
+ - **What sil keeps about the buyer is four kinds, and a memory's place is its reach.** The persona
18
+ kind is gone: who the buyer is and how they like to be served is a memory placed at `product`,
19
+ read on every ask; a memory placed in a domain is its context there. A purchase is now `owned`:
20
+ had `now` or `before`, linked to sil's product when a search gave its id, started from and never
21
+ offered again unless the buyer is replacing it.
22
+ - **The skill is rebuilt around one order of a turn, by kind of ask.** A quick answer, a browse,
23
+ a decided buy and a considered buy each get their own turn. On a considered buy the agent
24
+ says where it stands before asking, the route and the search before searching, and what came
25
+ back after the products: the guide named, sil's own counts, what sil has not verified, and
26
+ where to buy.
27
+ - **Each tool's description carries the sentence for its own moment.** `shopping_user_remember`
28
+ shows a whole row to keep; `shopping_search` sends only the search the buyer was told;
29
+ `shopping_content` asks for the guide's name; `shopping_offers` for where to buy and why there.
30
+
13
31
  ## [0.8.3] - 2026-11-11
14
32
 
15
33
  ### Fixed
package/README.md CHANGED
@@ -96,7 +96,7 @@ for you; you just say what you want.
96
96
 
97
97
  | Tool | What it does |
98
98
  |---|---|
99
- | `shopping_user_read` | Everything sil keeps about you — measurements, memories, preferences, purchases — each with what it gives you back. |
99
+ | `shopping_user_read` | Everything sil keeps about you — what you told it, your measurements and preferences, what you own — each with what it gives you back. |
100
100
  | `shopping_user_remember` | Keep what lasts, in the turn you say it, with "forget that" as the undo. |
101
101
  | `shopping_user_forget` | Erase rows you name, or everything, on your word. |
102
102
  | `shopping_brief_write` | Open a brief for a buy with requirements, or update one: a title, what you are after in your own words, specs by domain, decisions and the end of the job. |
@@ -15,9 +15,19 @@ export const SHOPPING_TOOLS = [
15
15
  method: "POST",
16
16
  path: "/user/read",
17
17
  label: "Read what sil keeps about the buyer",
18
- description: "Know the buyer: everything kept about them is here, never in your own memory files."
19
- + " Read once per conversation before asking anything, when they ask what you keep, and"
20
- + " before a forget. A price row is `value` with `unit` its currency; money is in the"
18
+ description: "Know the buyer: everything kept about them is here, never in your own memory files. At"
19
+ + " the start of a conversation read with no `place`: the rows for everywhere, who they are"
20
+ + " and how they like to be served. Once the domain read gives the ask's path, read again"
21
+ + " with it as `place`: the rows for everywhere, then the rows at or under it, elsewhere in"
22
+ + " its domain and above it, nearest first; `held` counts by domain what the answer left"
23
+ + " out. `all: true` reads every row, newest first, as far as one answer holds: when they"
24
+ + " ask what sil keeps, show what it answers and say what `held` counts. What it answers is"
25
+ + " never asked again; say a row when you use it. A row on how they like to be served"
26
+ + " overrides the usual flow: ask nothing the pick can be made without; pick, say in a"
27
+ + " clause the one thing it assumes, give the shop. What they own `now` is where you start"
28
+ + " (read a linked `product` for its specs) and is never offered unless they are replacing"
29
+ + " it. A `likes` row is a lean on the search, never a want, and its `from` names what"
30
+ + " it was read from. A price row is `value` with `unit` its currency; money is in the"
21
31
  + " minor unit: €130 is 13000.",
22
32
  },
23
33
  {
@@ -25,20 +35,61 @@ export const SHOPPING_TOOLS = [
25
35
  method: "POST",
26
36
  path: "/user/remember",
27
37
  label: "Keep what lasts about the buyer",
28
- description: "Keep what will matter next time about the buyer (how they use it, what they value, a"
29
- + " cap for this kind of thing, a measurement) in the turn you learn it, before any"
30
- + " search, and say so with the undo. This is the only place the buyer is kept: \"remember"
31
- + " this\" means this call, not a note or memory file. A one-off wish for this buy rides on"
32
- + " its calls instead. Each row's `place` is the `name` of the kind you are shopping, from"
33
- + " the domain read. A price is `value` with `unit` its currency; money is in the minor"
34
- + " unit: €130 is 13000.",
38
+ description: "Keep what will matter next time about the buyer in the turn you learn it, the first"
39
+ + " included, before any search, even mid-ask and even when the ask's own terms use it"
40
+ + " too. This is the only place the buyer is kept: \"remember this\" means this call,"
41
+ + " not a note or memory file. A one-off wish for this buy rides on its calls instead."
42
+ + " What they tell about themselves is a memory row: as they said it, with what it means"
43
+ + " for their buys, one to three sentences, never labelled, a health condition too."
44
+ + " Every row is read alone, weeks later, by a conversation that never saw this one: its"
45
+ + " words name the products and the thing in full (\"Loves the 1Zpresso K-Ultra and the"
46
+ + " Timemore C5 ESP Pro hand grinders because both grind consistently.\", at the"
47
+ + " grinders' own path), never"
48
+ + " \"both\", \"it\" or \"they\" for something the row does not name. Its"
49
+ + " place is its reach: what they value, how they spend and how they like to be served"
50
+ + " hold on every ask, at `product`; their experience or situation in one domain is"
51
+ + " placed at that domain's path, read first even when nothing is being bought: never"
52
+ + " `product` for what concerns one domain. Send whole rows: `{ rows: [{ kind:"
53
+ + " \"memory\", text: \"Would rather spend"
54
+ + " less than get something fancy, so value comes before features.\", place:"
55
+ + " \"product\", gives_back: \"the cheaper good pick comes first\", source: \"told\" }]"
56
+ + " }`. The other kinds, same row: `kind: \"owned\"` for what they have or had, with"
57
+ + " `name`, `has` (\"now\", or \"before\" once they no longer have it), `since` or"
58
+ + " `until` when said (a year, month or day), and `product`, sil's id: search it by name"
59
+ + " first and link the one that is it, else keep it by `name` (the answer's `tips` says"
60
+ + " how to resend it); `kind: \"preference\"`"
61
+ + " with `subject`, `op`, `value` and"
62
+ + " `reason`, a limit a search can hold, on a spec or the price (a price in the minor"
63
+ + " unit with `unit` its currency: €130 is 13000), or a liking: `op: \"likes\"` only when"
64
+ + " they say they like it (owning is not liking), its `subject` a spec the domain read"
65
+ + " listed, by its key, `brand`, `price`, or `product` for the products themselves,"
66
+ + " `reason`,"
67
+ + " what made them like it in their words, and `from`, sil's ids of what they own and"
68
+ + " like. A product they say they love is three rows in one keep, each at the path its"
69
+ + " search gave: its `owned` row, one liking with `subject: \"product\"`, `value` the"
70
+ + " products' names and `from` their ids, and a memory of why."
71
+ + " A keep naming two or more products answers `shared`, what they all hold: only if"
72
+ + " they like them, keep what explains why as a liking, `from` all, source \"agent\","
73
+ + " and say it back;"
74
+ + " a quality no spec holds (consistent, sturdy) is a memory, never a liking: sil refuses"
75
+ + " a liking on one; `kind: \"measurement\"` with `what`,"
76
+ + " `value` and `unit`. `place` is the path the domain read gave, a wider node for a wider"
77
+ + " place, `product` for everywhere; `source` on every row: \"told\", or \"agent\" for"
78
+ + " what you inferred. A place that is no node is refused with the nearest sil holds and"
79
+ + " those beneath it: keep at one of them. A `product` sil does not hold is refused: keep"
80
+ + " the row by its `name` alone. `full` (300 rows) names the oldest to forget first: say"
81
+ + " so and ask. A refused keep: fix what the refusal names and resend every row of that"
82
+ + " keep, never a subset. Never \"got it\" before it answers `ok`. Once sil answers `ok`,"
83
+ + " say in one line what you kept, what it gives them next time (its `gives_back`), and"
84
+ + " that \"forget that\" undoes it; a keep is never silent.",
35
85
  },
36
86
  {
37
87
  name: "shopping_user_forget",
38
88
  method: "POST",
39
89
  path: "/user/forget",
40
90
  label: "Erase what sil keeps, on the buyer's word",
41
- description: "Erase what sil keeps, only after saying what goes and the buyer saying yes.",
91
+ description: "Erase what sil keeps, only after saying what goes and the buyer saying yes: \"forget"
92
+ + " that\" is its row's `ids`, \"forget everything\" is `all: true`.",
42
93
  },
43
94
  {
44
95
  name: "shopping_brief_write",
@@ -63,7 +114,9 @@ export const SHOPPING_TOOLS = [
63
114
  path: "/catalog/domains",
64
115
  query: ["query"],
65
116
  label: "Place the thing",
66
- description: "Place the thing the buyer named: the leaves sil holds for it.",
117
+ description: "Place the thing the buyer named: the leaves sil holds for it. Send the kind of thing"
118
+ + " (\"trail shoes\"), never a brand or a model. Search the leaf; while the buyer has not"
119
+ + " chosen between leaves of one kind, read and search the kind above them.",
67
120
  },
68
121
  {
69
122
  name: "shopping_domain_get",
@@ -84,10 +137,14 @@ export const SHOPPING_TOOLS = [
84
137
  path: "/catalog/content",
85
138
  label: "Read what sil holds about it",
86
139
  recovery: { not_found: "shopping_domain_search" },
87
- description: "Teach before you ask: the passages sil holds on a place that bear on `about`. Send the"
88
- + " buyer's own taste words as `about` (clarity, texture, quiet), then turn the passage"
89
- + " into specs from the domain read or into the question that decides. A question's why"
90
- + " comes from here or from a spec's `why`.",
140
+ description: "Read sil's guides before you teach or ask: the passages sil holds on a place that bear"
141
+ + " on `about`. Send the buyer's own words as `about` (clarity, texture, quiet). Each"
142
+ + " passage carries its `title`, `author`, `heading`, `publish_date` and `url`: when you"
143
+ + " teach from one, name it by its `title` or `author`, its `heading` when it has one,"
144
+ + " never \"the guide\" alone, and its date when it has one. A taste the buyer gives"
145
+ + " (springy, grippy) goes through here before you search: the passage gives the route;"
146
+ + " a taste is no spec. A question's why comes from"
147
+ + " here or from a spec's `why`. Nothing held: say so, never fill it from the web.",
91
148
  },
92
149
  {
93
150
  name: "shopping_search",
@@ -95,17 +152,38 @@ export const SHOPPING_TOOLS = [
95
152
  path: "/catalog/search",
96
153
  label: "Search sil's products",
97
154
  recovery: { not_found: "shopping_brief_read" },
98
- description: "Search once per settled ask: `specs` `{ spec, op, value }` from the domain read and"
99
- + " `price` the range `{ min?, max?, currency }`, each a want the buyer said or sil keeps;"
100
- + " money is in the minor unit: €130 is 13000. `query` holds only the buyer's own words"
101
- + " for what no spec holds, and no brand, model or product they did not name: good `query:"
102
- + " \"clarity\"` when no spec holds clarity, bad `query: \"Eureka Mignon\"` when the buyer"
103
- + " never said it. Back come `asked` numbered, `search_stats` to explain the shortlist,"
104
- + " and the closest cards with `holds`, `misses` and `unknown` as ask numbers,"
105
- + " `price_range` and `variants`, each with its own `price_range`, one `recommended`. When"
106
- + " few fit or many are unknown, tell the buyer what came back and ask the one question"
107
- + " that would change it, or ask before relaxing a want, rather than searching again in"
108
- + " other words.",
155
+ description: "Search once per settled ask. On a considered buy, first say the route you think best"
156
+ + " and why, then the search, part by part, each with its why; send exactly what you said."
157
+ + " `domain` is the leaf, or the kind above while the buyer has not chosen between its"
158
+ + " leaves: your own route is a lean until they take it, so the search still covers the"
159
+ + " other kind. `specs` `{ spec, op, value }` from the domain read, each a want the buyer"
160
+ + " said or sil keeps and none of your own. Filter only on what they measured or named (a"
161
+ + " size, a width, what it is for, a cap): a quality word (springy, grippy, light) is never"
162
+ + " a filter, even where a spec exists for it, since every product whose maker says nothing"
163
+ + " about it would drop off the page. A brand they named is the `brand` spec on"
164
+ + " every kind, never the `query`; on a kind, `leaf` with `in` or `nin` rules a leaf in or"
165
+ + " out. `price` is the range `{ min?, max?, currency }`;"
166
+ + " money is in the minor unit: €130 is 13000; \"around\" a sum is up to a fifth over it,"
167
+ + " never a floor under it, and you say so; a kept cap is their figure, not the wider one."
168
+ + " `query` holds only the buyer's own word for what no spec holds, a name, a model or a use:"
169
+ + " good `query: \"Speedgoat\"` when they named it,"
170
+ + " bad `query: \"light grippy trail shoe\"`, which is a sentence of yours. `n`: 8 to weigh a"
171
+ + " kind or show a range, 1 to 3 for a product they named; the product a `query` names"
172
+ + " comes first. `leans` `{ spec, op, value }` are their kept likings, the row's `subject`"
173
+ + " as `spec`, `likes` as `eq`, `dislikes` as `neq`: those holding them come first among"
174
+ + " products that fit alike, others keep a third of the seats, and a liking is never in"
175
+ + " `specs`; a pick that follows one says so, in their reason. Back come `asked` numbered,"
176
+ + " `search_stats`, and the closest cards with `holds`, `misses` and `unknown` as ask"
177
+ + " numbers, `price_range` and `variants`, each with its own `price_range`, one"
178
+ + " `recommended`. After it, say what came back: how wide you looked, by sil's own counts"
179
+ + " (`search_stats`: the products and shops sil weighed in this kind; per ask in `asks`,"
180
+ + " how many held a value for it, passed and failed, so a brand ask's `passed` is how many"
181
+ + " of that brand sil holds in this kind; `with_all_specs` is testable, not passing; a page"
182
+ + " of eight is the eight you asked for). A quality word few products hold a value for"
183
+ + " hides the rest: drop it, say which and why, and search once more. When few fit or many"
184
+ + " are unknown, say what came back and ask the one question that would change it, or ask"
185
+ + " before relaxing a want they measured or named, rather than searching again in other"
186
+ + " words.",
109
187
  },
110
188
  {
111
189
  name: "shopping_product_get",
@@ -114,7 +192,8 @@ export const SHOPPING_TOOLS = [
114
192
  label: "Read shortlisted products whole",
115
193
  description: "Read the products the buyer leans to whole: values once, reviews, every picture, and"
116
194
  + " each variant with what sets it apart and its `price_range`, cheapest to dearest offer."
117
- + " Pick the variants to buy here; money is in the minor unit: €130 is 13000.",
195
+ + " Pick the variant here, then read its offers before you name the pick; money is in the"
196
+ + " minor unit: €130 is 13000.",
118
197
  },
119
198
  {
120
199
  name: "shopping_offers",
@@ -126,10 +205,16 @@ export const SHOPPING_TOOLS = [
126
205
  + " `ship_to`, one of the buyer's addresses by name (the default when absent). Every"
127
206
  + " offer, shops shipping there first, each with its shop's `name`, whether it `ships`, its"
128
207
  + " `delivery` there, `returns_days` and own `promotions`, then `price`, `was`, `pack` or"
129
- + " `plan`, and its stock; nothing marks a best. A promotion is its shop's alone: quote it"
130
- + " on that shop's offers only. Money is in the minor unit: €130 is 13000. Send `page` ="
131
- + " `next_page` only when a shop the buyer needs may be past it. Warranty, policies,"
132
- + " reviews and other terms come from `shopping_seller_get`.",
208
+ + " `plan`, its stock, its `url` and `read_on`, the day sil read it; nothing marks a best."
209
+ + " Tell the buyer where to buy and why there, with one link, the offer's `url`; when"
210
+ + " they choose, hand over in that turn, even if you linked it before. `ships:"
211
+ + " unknown` is sil not having read that shop's delivery: say so, never \"delivers\";"
212
+ + " when a date decides, such a shop does not count as reaching them. Never hand over to"
213
+ + " a shop that does not ship to them. A promotion is its shop's alone:"
214
+ + " quote it on that shop's offers only. A `was`: say it was higher, judge on the price. A"
215
+ + " bundle (`pack.with`) is one offer; a `plan` price is the plan's. Money is in the minor"
216
+ + " unit: €130 is 13000. Send `page` = `next_page` only when a shop the buyer needs may be"
217
+ + " past it. Warranty, policies, reviews and other terms come from `shopping_seller_get`.",
133
218
  },
134
219
  {
135
220
  name: "shopping_seller_get",
@@ -2,7 +2,7 @@
2
2
  "id": "sil",
3
3
  "name": "sil",
4
4
  "description": "The Shopping Interface Layer for personal AI agents. Turn your OpenClaw into an expert shopping agent.",
5
- "version": "0.8.3",
5
+ "version": "0.8.4",
6
6
  "skills": [
7
7
  "./sil-shopping"
8
8
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sil-openclaw",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "description": "The Shopping Interface Layer for personal AI agents. Turn your OpenClaw into an expert shopping agent.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -1,7 +1,8 @@
1
1
  # Where these twenty-six files come from
2
2
 
3
3
  Copied verbatim from `sil-services` `packages/schemas/schema/`, commit
4
- `fd37ffed3c04ef12c81b3490a91d6dfd290105c3`. One request and one response artifact per
4
+ `fd37ffed3c04ef12c81b3490a91d6dfd290105c3`; the six `shopping-user-*` files and the two `shopping-search-*`
5
+ files from its branch `iter/sil-leaves-you-smarter/8` at `46028607`. One request and one response artifact per
5
6
  `shopping_*` tool, plus `sil-whoami-*`; each is `JSON.stringify` of the TypeBox object the
6
7
  API serialises against.
7
8
 
@@ -68,6 +68,10 @@
68
68
  "type": "string",
69
69
  "description": "Cites who wrote it; absent, sil did."
70
70
  },
71
+ "heading": {
72
+ "type": "string",
73
+ "description": "Reads the heading it sits under; absent before the document’s first."
74
+ },
71
75
  "text": {
72
76
  "type": "string",
73
77
  "description": "Reads the passage."
@@ -84,7 +88,7 @@
84
88
  },
85
89
  "additionalProperties": false
86
90
  },
87
- "description": "Reads sil’s passages, best first. Empty: say so, never the open web."
91
+ "description": "Reads sil’s passages, best first, at most two of one document. Empty: say so, never the open web."
88
92
  }
89
93
  },
90
94
  "additionalProperties": false
@@ -432,6 +432,30 @@
432
432
  "type": "string",
433
433
  "format": "date",
434
434
  "description": "Dates the price: the day sil read it."
435
+ },
436
+ "images": {
437
+ "type": "array",
438
+ "items": {
439
+ "type": "object",
440
+ "required": [
441
+ "card",
442
+ "full"
443
+ ],
444
+ "properties": {
445
+ "card": {
446
+ "type": "string",
447
+ "description": "Hands the photo at card size, for a thumbnail."
448
+ },
449
+ "full": {
450
+ "type": "string",
451
+ "description": "Hands the photo at full size."
452
+ }
453
+ },
454
+ "additionalProperties": false,
455
+ "description": "One photo of the set, at two sizes."
456
+ },
457
+ "minItems": 1,
458
+ "description": "Shows a set the offer sells together, several products at once: its own photos, never a variant’s."
435
459
  }
436
460
  },
437
461
  "additionalProperties": false,
@@ -96,11 +96,65 @@
96
96
  "additionalProperties": false,
97
97
  "description": "Keeps variants with an offer in this currency within one or both ends; sil converts nothing."
98
98
  },
99
+ "leans": {
100
+ "type": "array",
101
+ "items": {
102
+ "type": "object",
103
+ "required": [
104
+ "spec",
105
+ "op",
106
+ "value"
107
+ ],
108
+ "properties": {
109
+ "spec": {
110
+ "type": "string",
111
+ "minLength": 1,
112
+ "maxLength": 64,
113
+ "description": "Sends a spec the domain read listed, unchanged: a part’s by its path (`boiler.boilerVolume`)."
114
+ },
115
+ "op": {
116
+ "anyOf": [
117
+ {
118
+ "type": "string",
119
+ "const": "eq"
120
+ },
121
+ {
122
+ "type": "string",
123
+ "const": "neq"
124
+ },
125
+ {
126
+ "type": "string",
127
+ "const": "gte"
128
+ },
129
+ {
130
+ "type": "string",
131
+ "const": "lte"
132
+ },
133
+ {
134
+ "type": "string",
135
+ "const": "in"
136
+ },
137
+ {
138
+ "type": "string",
139
+ "const": "nin"
140
+ }
141
+ ],
142
+ "description": "Sends the operator the domain read listed for this spec."
143
+ },
144
+ "value": {
145
+ "description": "Sends the desired value, typed by the spec's type."
146
+ }
147
+ },
148
+ "additionalProperties": false
149
+ },
150
+ "maxItems": 4,
151
+ "description": "Sends what the buyer likes, as a spec row — a brand they like is `{ \"spec\": \"brand\", \"op\": \"eq\", \"value\": \"Baratza\" }`: ranks the products holding it first among those fitting the wants alike, and never narrows."
152
+ },
99
153
  "query": {
100
154
  "type": "string",
101
155
  "minLength": 1,
102
156
  "maxLength": 512,
103
- "description": "Sends the words the buyer used for what no spec holds — a name, a model, \"travel\" — matched against the products’ titles and words."
157
+ "description": "Sends the words the buyer used for what no spec holds — a name, a model, \"travel\": a product whose title holds every word, whole or as its start, ranks before the cheaper."
104
158
  },
105
159
  "n": {
106
160
  "type": "integer",
@@ -75,6 +75,11 @@
75
75
  "type": "string",
76
76
  "minLength": 1,
77
77
  "description": "Reads the value in this unit."
78
+ },
79
+ "lean": {
80
+ "type": "boolean",
81
+ "const": true,
82
+ "description": "Is a lean: it ranks the products, never narrows them."
78
83
  }
79
84
  },
80
85
  "additionalProperties": false
@@ -125,13 +130,14 @@
125
130
  }
126
131
  ]
127
132
  },
128
- "description": "Echoes the ask, numbered from 1: each spec with its unit, then the price."
133
+ "description": "Echoes the ask, numbered from 1: each spec with its unit, then the price, then the leans."
129
134
  },
130
135
  "search_stats": {
131
136
  "type": "object",
132
137
  "required": [
133
138
  "sellers",
134
- "products"
139
+ "products",
140
+ "asks"
135
141
  ],
136
142
  "properties": {
137
143
  "sellers": {
@@ -149,7 +155,7 @@
149
155
  "with_fit": {
150
156
  "type": "integer",
151
157
  "minimum": 0,
152
- "description": "Shops behind a product holding every ask."
158
+ "description": "Shops behind a product holding every want."
153
159
  }
154
160
  },
155
161
  "additionalProperties": false,
@@ -175,10 +181,46 @@
175
181
  },
176
182
  "additionalProperties": false,
177
183
  "description": "Counts the products."
184
+ },
185
+ "asks": {
186
+ "type": "array",
187
+ "items": {
188
+ "type": "object",
189
+ "required": [
190
+ "n",
191
+ "held",
192
+ "passed",
193
+ "failed"
194
+ ],
195
+ "properties": {
196
+ "n": {
197
+ "type": "integer",
198
+ "minimum": 1,
199
+ "description": "An ask by its number in `asked`."
200
+ },
201
+ "held": {
202
+ "type": "integer",
203
+ "minimum": 0,
204
+ "description": "Products holding a value for it; for the price, a price in its currency."
205
+ },
206
+ "passed": {
207
+ "type": "integer",
208
+ "minimum": 0,
209
+ "description": "Products holding it, as a card’s `holds` says; for a brand, those of the brand here."
210
+ },
211
+ "failed": {
212
+ "type": "integer",
213
+ "minimum": 0,
214
+ "description": "Products missing it, as a card’s `misses` says; the rest of `held` are unverified. Always 0 on a lean, which is in no card’s `misses`."
215
+ }
216
+ },
217
+ "additionalProperties": false
218
+ },
219
+ "description": "Counts each ask alone over every product weighed: say how the place splits on it."
178
220
  }
179
221
  },
180
222
  "additionalProperties": false,
181
- "description": "Explains the shortlist: how much was searched, and how much answers the whole ask."
223
+ "description": "Explains the shortlist: how much was searched, how much answers the whole ask, and each ask."
182
224
  },
183
225
  "products": {
184
226
  "type": "array",
@@ -239,7 +281,7 @@
239
281
  "minimum": 1,
240
282
  "description": "An ask by its number in `asked`."
241
283
  },
242
- "description": "Names the asks it holds a value for that fails on every variant."
284
+ "description": "Names the wants it holds a value for that fails on every variant; a lean it does not hold is in no list."
243
285
  },
244
286
  "unknown": {
245
287
  "type": "array",
@@ -248,7 +290,7 @@
248
290
  "minimum": 1,
249
291
  "description": "An ask by its number in `asked`."
250
292
  },
251
- "description": "Names the asks sil could not test on it: say them as unverified."
293
+ "description": "Names the wants sil could not test on it: say them as unverified."
252
294
  },
253
295
  "price_range": {
254
296
  "type": "object",
@@ -473,7 +515,7 @@
473
515
  },
474
516
  "additionalProperties": false
475
517
  },
476
- "description": "Shows the products closest to the ask: those holding most asks first."
518
+ "description": "Shows the products closest to the ask: those holding most wants first, then those the query names, then most leans, then the cheapest; with a lean, one seat in three (at least one) goes to the best holding no lean that answer the wants alike, on the last seats."
477
519
  }
478
520
  },
479
521
  "additionalProperties": false
@@ -33,7 +33,7 @@
33
33
  "all": {
34
34
  "type": "boolean",
35
35
  "const": true,
36
- "description": "Forgets everything the read lists and the buyer’s calls in sil’s record."
36
+ "description": "Forgets every row and the buyer’s calls in sil’s record."
37
37
  }
38
38
  },
39
39
  "additionalProperties": false
@@ -17,33 +17,33 @@
17
17
  "removed": {
18
18
  "type": "object",
19
19
  "required": [
20
- "measurement",
21
20
  "memory",
21
+ "measurement",
22
22
  "preference",
23
- "purchase",
23
+ "owned",
24
24
  "record",
25
25
  "brief"
26
26
  ],
27
27
  "properties": {
28
- "measurement": {
28
+ "memory": {
29
29
  "type": "integer",
30
30
  "minimum": 0,
31
- "description": "Measurements removed."
31
+ "description": "Memories removed."
32
32
  },
33
- "memory": {
33
+ "measurement": {
34
34
  "type": "integer",
35
35
  "minimum": 0,
36
- "description": "Memories removed."
36
+ "description": "Measurements removed."
37
37
  },
38
38
  "preference": {
39
39
  "type": "integer",
40
40
  "minimum": 0,
41
41
  "description": "Preferences removed."
42
42
  },
43
- "purchase": {
43
+ "owned": {
44
44
  "type": "integer",
45
45
  "minimum": 0,
46
- "description": "Purchases removed."
46
+ "description": "What they own or owned, removed."
47
47
  },
48
48
  "record": {
49
49
  "type": "integer",
@@ -2,36 +2,34 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://schemas.sil.com/shopping-user-read-request.schema.json",
4
4
  "title": "sil shopping_user_read — request",
5
- "type": "object",
6
- "properties": {
7
- "kinds": {
8
- "type": "array",
9
- "items": {
10
- "anyOf": [
11
- {
12
- "type": "string",
13
- "const": "measurement"
14
- },
15
- {
16
- "type": "string",
17
- "const": "memory"
18
- },
19
- {
20
- "type": "string",
21
- "const": "preference"
22
- },
23
- {
24
- "type": "string",
25
- "const": "purchase"
26
- }
27
- ],
28
- "description": "A kind of row."
5
+ "anyOf": [
6
+ {
7
+ "type": "object",
8
+ "properties": {
9
+ "place": {
10
+ "type": "string",
11
+ "pattern": "^[a-z0-9_]+(\\.[a-z0-9_]+)*$",
12
+ "maxLength": 255,
13
+ "description": "Reads by the ask’s place, the node the domain read gave: the rows placed everywhere, then the rows at or under it and elsewhere in its domain, nearest first, then above it. Absent, only the first — the read at a conversation’s start."
14
+ }
15
+ },
16
+ "additionalProperties": false
17
+ },
18
+ {
19
+ "type": "object",
20
+ "required": [
21
+ "all"
22
+ ],
23
+ "properties": {
24
+ "all": {
25
+ "type": "boolean",
26
+ "const": true,
27
+ "description": "Reads every row, newest first: for \"what do you keep about me?\"."
28
+ }
29
29
  },
30
- "minItems": 1,
31
- "uniqueItems": true,
32
- "description": "Reads only these kinds; absent, every row."
30
+ "additionalProperties": false
33
31
  }
34
- },
35
- "additionalProperties": false,
32
+ ],
33
+ "type": "object",
36
34
  "description": "Money is in the minor unit: €130 is 13000."
37
35
  }