sil-openclaw 0.3.5 → 0.3.7

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,60 @@ release (`clawhub package publish --changelog`). See [README](./README.md#releas
10
10
 
11
11
  ## [Unreleased]
12
12
 
13
+ ## [0.3.7] - 2026-06-29
14
+
15
+ ### Fixed
16
+
17
+ - **README narrative realigned to the single multi-domain shopper.** The "Turn your
18
+ OpenClaw into a shopping expert" section still pitched the **retired per-niche-expert
19
+ model** — minting a **dedicated** agent that shops a **single niche** (*"make me a
20
+ shopping expert for road-cycling gear"* → a standalone "Road-Cycling Buyer" you open
21
+ and shop "inside"). It now describes the shipped model: you create **one** persistent
22
+ shopper once (a light persona + cross-niche interview, **no niche research up front**),
23
+ then shop **any** niche — it classifies, researches, and mints a reusable **domain** on
24
+ first shop, reuses learned domains after, and keeps your facts/taste **across all of
25
+ them** (a second shopper is refused). The "Today the plugin covers …" line drops
26
+ "dedicated shopping experts" (plural) for "a personal multi-domain shopper". Docs-only;
27
+ the tool surface, Tools table, and Skills section were already correct.
28
+
29
+ ## [0.3.6] - 2026-06-29
30
+
31
+ ### Changed
32
+
33
+ - **Profile tool surface consolidated to the singleton — 9 tools → 8.** `sil_profile_list`
34
+ is **deleted**, folded into `sil_profile_get`: called with **no arguments**, `sil_profile_get`
35
+ now returns the shopper overview (the shared `userSpec` + the domains index + any degraded
36
+ directory in `unreadable[]`), and an empty store reads back `ok` (empty-is-healthy), never
37
+ `not_found`. The caller-supplied **`agentId` is dropped** from all four profile tools
38
+ (`sil_profile_materialize`, `sil_profile_get`, `sil_remember`, `sil_profile_remove`): the
39
+ product is a **singleton** shopper, so the artefact store re-scopes from the per-agent
40
+ `$SIL_DATA_DIR/agents/<agentId>/` to a fixed `$SIL_DATA_DIR/shopper/` — the keying segment
41
+ is now a compile-time constant (un-spoofable), and the only caller-supplied path segment is
42
+ the domain `slug`, still guarded (lower-kebab, not `main`) before any join. Slimmer
43
+ signatures: `sil_profile_get(domainSlug?)`, `sil_profile_materialize(name, userSpec, domain?)`,
44
+ `sil_remember(kind, text, domain?, hard?)`, `sil_profile_remove(domainSlug)`. `sil_remember`
45
+ and `sil_profile_materialize` stay two distinct tools (the #39 cheap-append / whole-doc split);
46
+ `sil_profile_remove` stays standalone, destructive, confirm-gated. No backwards-compat path —
47
+ old `agents/<id>/` data is orphaned, not migrated. Manifest `contracts.tools` + skill bundle +
48
+ every exact-set drift mirror updated to the 8-tool floor.
49
+ - **`sil-shopping` skill rewritten for the single multi-domain shopper.** The skill
50
+ bundle now drives the model shipped by Slice 1 (#38): **one** persistent shopper (a
51
+ generalist created once) that learns **domains** (niches) on first shop, replacing
52
+ the retired per-niche-expert flow with **no backwards-compat path**. Onboarding
53
+ collapses to a two-touchpoint create (persona + the shared cross-niche user spec —
54
+ no niche research at create); the shop loop classifies the niche, **reuses a learned
55
+ domain or mints a new one on the fly** (announced + correctable, with semantic slug
56
+ dedup to avoid fragmentation), layers intent over the active domain's taste over the
57
+ shared facts over the domain mechanics, and learns every query via the cheap
58
+ `sil_remember` append (a person fact carries across niches; a niche taste stays in
59
+ that domain). A second create is refused — the shopper is a singleton. The
60
+ `tools.alsoAllow` admission step (#37) and the `sil_remember` per-query persist (#39)
61
+ are preserved. Four references were renamed to match the vocabulary:
62
+ `expert_shopping.md`→`shop_loop.md`, `manage_experts.md`→`manage_domains.md`,
63
+ `refine_expert.md`→`refine_shopper.md`,
64
+ `road_cycling_expert_walkthrough.md`→`multi_domain_shopper_walkthrough.md`. Skill
65
+ prose + tests only — no plugin code or manifest change.
66
+
13
67
  ## [0.3.5] - 2026-06-27
14
68
 
15
69
  ### Changed
package/README.md CHANGED
@@ -57,7 +57,7 @@ The agent loads the bundled skill on first commerce intent and takes it from the
57
57
 
58
58
  sil is a [UCP](https://github.com/universal-commerce-protocol/ucp) (Universal Commerce Protocol) commerce service, and `sil-openclaw` wires it into your OpenClaw agent — so it can find products, compare prices and availability, pull up full detail, and surface a checkout link the moment you say *buy*. Powered by [4GPTs](https://4gpts.com).
59
59
 
60
- Today the plugin covers **identity, catalog, and dedicated shopping experts**. The rest of the UCP journey (cart, checkout, order, fulfillment) lands as those domains ship, and the same plugin grows with them.
60
+ Today the plugin covers **identity, catalog, and a personal multi-domain shopper**. The rest of the UCP journey (cart, checkout, order, fulfillment) lands as those domains ship, and the same plugin grows with them.
61
61
 
62
62
  ---
63
63
 
@@ -93,48 +93,49 @@ agent done — here's your checkout link, ready to pay:
93
93
 
94
94
  ---
95
95
 
96
- ## Turn your OpenClaw into a shopping expert
96
+ ## Turn your OpenClaw into your personal shopping expert
97
97
 
98
- So far your *general* agent did the shopping. Go one step further: mint a **dedicated** OpenClaw agent that shops a single niche like a true specialist — it **researches how to buy well in that niche itself**, then fits *you* the way an expert would.
98
+ So far your *general* agent did the shopping. Go one step further: create **one** persistent shopper that learns *you* once, then shops **any** niche like a specialist — it researches how to buy well in each niche the first time you shop it, and gets sharper every session.
99
99
 
100
- **Spec-Driven Shopping (SDS).** Say *"make me a shopping expert for road-cycling gear"* and the plugin runs a **light** interview (≤10 questions) to narrow the niche and shape the persona — then **researches the niche deeply on its own** (the full how-to-buy-well: fit, gearing, geometry, the trade-offs) and derives the **dimensions** every request should be decomposed along. Open it later and on **every query** it refreshes that knowledge from the web, decomposes what you asked, and **learns your facts and taste as it goes** (your measurements, your budget, the rules it must never break) — captured once, never re-asked. It recommends with a "why" that cites *what you asked*, *a fact it remembered*, and *a niche mechanic you'd never have named*. **Nothing is created until you say "create it"** — and building one is local and offline, no sign-in required.
100
+ **Spec-Driven Shopping (SDS).** Say *"set up my shopper"* and the plugin runs a **light** interview (≤10 questions) to shape how it should behave (the persona) and capture your **cross-niche** facts and the rules it must never break — and that's the whole setup. **No niche is researched up front.** From then on you just shop. The first time you ask for something in a new niche it **classifies** what you're buying, **researches that niche deeply on the spot** (the full how-to-buy-well: fit, gearing, geometry, the trade-offs — announced, so you can correct it), and derives the **dimensions** every request in that niche is decomposed along — minting a reusable **domain**. Ask for that niche again and it reuses what it learned; ask for a new one and it learns that too, keeping *you* the same across all of them. On **every query** it refreshes the domain knowledge from the web, decomposes what you asked, and **learns your facts and taste as it goes** (your measurements, your budget, a brand you won't touch) — captured once, never re-asked. It recommends with a "why" that cites *what you asked*, *a fact it remembered*, and *a niche mechanic you'd never have named*. **Nothing is created until you say so**, and a second shopper is refused — there is exactly one of you. Creating and running it is local and offline, no sign-in required.
101
101
 
102
- **1 — One light conversation builds the expert (it does the deep research itself):**
102
+ **1 — One light conversation creates your shopper (no niche research yet):**
103
103
 
104
104
  ```text
105
- you make me a shopping expert for road-cycling gear
105
+ you set up my shopper
106
106
 
107
- agent Love it — let's shape it lightly. A complete bike, or
108
- components and apparel?
107
+ agent Love it — let's shape it lightly. Should it shop patient and
108
+ thorough, or fast and decisive? Anything it must always do,
109
+ or never do?
109
110
 
110
- you a complete road bike, my first proper one
111
+ you thorough, and never recommend anything I can't return
111
112
 
112
- agent Got it. I've researched how to buy a first road bike well —
113
- fit (size from height AND inseam, stack/reach, saddle setback),
114
- endurance-vs-race geometry, gearing theory, the comfort/speed
115
- trade-offs. I'll decompose every request along use-case, terrain,
116
- budget, your fit envelope, timeline, and priorities.
113
+ agent Got it — I'll keep your cross-niche rules (free returns only)
114
+ and learn each niche the first time you shop it. Nothing to
115
+ research up front.
117
116
 
118
- Road-Cycling Buyer — a patient first-bike advisor
119
- · always explains fit · never carbon bars
117
+ Your Shopper — a thorough, returns-first buyer
118
+ · learns any niche on first shop · keeps your facts across all of them
120
119
 
121
120
  shall I create it?
122
121
 
123
122
  you yes, create it
124
123
 
125
- agent done — "Road-Cycling Buyer" is live. Open it anytime;
126
- it shops your niche with no further setup.
124
+ agent done — your shopper is live. Just tell it what you want;
125
+ it learns the niche on the fly.
127
126
  ```
128
127
 
129
- **2 — The expert shops like a specialist, learning you as it goes:**
128
+ **2 — It learns a niche the first time you shop it, and keeps *you* across all of them:**
130
129
 
131
130
  ```text
132
- you (inside Road-Cycling Buyer) find me a road bike, ~€1500
131
+ you find me a road bike, ~€1500
133
132
 
134
- agent Before I search — two numbers I'll keep so I never re-ask:
135
- your height and inseam. Any brand you won't touch?
133
+ agent New niche for us — road cycling. Let me learn how to buy one
134
+ well (fit from height AND inseam, endurance-vs-race geometry,
135
+ gearing, the comfort/speed trade-offs) — and two numbers I'll
136
+ keep so I never re-ask: your height and inseam.
136
137
 
137
- you 178cm, 81cm inseam. No strong feelings, secondhand is fine
138
+ you 178cm, 81cm inseam. Secondhand is fine
138
139
 
139
140
  agent searched sil — endurance, 54cm for your fit, ~€1500:
140
141
 
@@ -142,13 +143,19 @@ agent searched sil — endurance, 54cm for your fit, ~€1500:
142
143
  2. Carbon endurance bike, 54cm, 105 (used) €1610
143
144
 
144
145
  Why #1: for your 178/81 fit a 54cm endurance frame sits where a
145
- first buyer wants it — fit and comfort outrank outright speed on a
146
- first bike — and it's inside your budget. Want detail or a link?
146
+ first buyer wants it — and it honours your "free returns only"
147
+ rule. Want detail or a link?
148
+
149
+ you later — find me a backpacking tent for two, under €250
150
+
151
+ agent Different niche — camping. Learning how to buy a backpacking
152
+ tent (season rating, packed weight, floor area)… and your
153
+ returns rule carries straight over, no need to re-ask.
147
154
  ```
148
155
 
149
- > **You teach it once; it stays an expert.** It keeps your facts and taste, web-refreshes its niche knowledge each visit, and never re-asks what it already knows. List the experts you've made, look at how one is set up, retire one you're done with — or **refine** one from what it watched you reject, so it gets sharper every session.
156
+ > **You teach it once; it stays sharp.** It keeps your facts and taste, web-refreshes its niche knowledge each visit, and never re-asks what it already knows. See what your shopper knows and which domains it has learned, look at how a domain is set up, forget one you're done with — or **refine** the shopper or a domain from what it watched you reject, so it gets sharper every session.
150
157
 
151
- **What it remembers, and where it lives.** A dedicated expert learns your shopping-relevant facts as it goes — measurements, budget band, the rules it must never break, brand likes/dislikes — captured **only when a request actually needs them** (never a big up-front form) so it doesn't re-ask. All of it is stored **locally on your machine** (`$SIL_DATA_DIR/agents/<id>/`, owner-only `0600`), **per-user and per-expert**. It is **never pooled across users and never sent to a server** for training or aggregation — creating and running an expert is local and offline. The niche web-refresh reads public sources to keep the *domain* knowledge current; it does not upload anything about you. Inspect exactly what an expert holds with `sil_profile_get`, and delete an expert and everything it remembered with `sil_profile_remove`.
158
+ **What it remembers, and where it lives.** Your shopper learns your shopping-relevant facts as it goes — measurements, budget band, the rules it must never break, brand likes/dislikes — captured **only when a request actually needs them** (never a big up-front form) so it doesn't re-ask. All of it is stored **locally on your machine** (`$SIL_DATA_DIR/shopper/`, owner-only `0600`), **per-user (one shopper, many domains)**. It is **never pooled across users and never sent to a server** for training or aggregation — creating and running your shopper is local and offline. The niche web-refresh reads public sources to keep the *domain* knowledge current; it does not upload anything about you. Inspect exactly what your shopper holds with `sil_profile_get`, and forget one domain it learned with `sil_profile_remove`.
152
159
 
153
160
  ---
154
161
 
@@ -170,14 +177,13 @@ Namespaced `sil_*` so they never collide with other plugins. Your agent calls th
170
177
  | `sil_search` | Search for purchasable products. A free-text `query` plus optional filters: `category`, `price_min`/`price_max`, `ship_to` (delivery destination — leave empty to ship to your registered address), `condition` (`new` / `secondhand`), `available`, and `local_merchants` (best-effort bias toward shops in the user's own country). Results are **localized** to the shopper; when they ask for local shops you can *optionally* issue the `query` in that country's language to surface more of them (e.g. a French query surfaces French stores) — a tactic, not a requirement, and never an override of a language the user deliberately chose. Returns a ranked list of variants — each with `id`, `title`, `price`, `availability`, `checkout_url`, `source`, plus (where the source provides them) evaluate-before-buy detail: a product/variant `url` to view, a `description`, `media`, the product `options`, and the `seller`'s **shipping & return policy links** — and a pagination `cursor`. Location filters take ISO codes (`US`, `CA`), not place names. |
171
178
  | `sil_product_get` | Resolve `ids` you already hold to full products in UCP shape — `description`, `options`, `media`, the `seller`'s shipping & return policy links, and the featured purchasable variant with fresh `price`, `availability`, `url` (the page to view), and `checkout_url` (the link that buys). Re-fetch right before buying; those values are point-in-time, not guarantees. Ids that no longer resolve come back in `not_found`. |
172
179
 
173
- **Experts** — create and manage dedicated shopping agents
180
+ **Your shopper** — create one shopper, then manage the domains it learns
174
181
 
175
182
  | Tool | What it does |
176
183
  |---|---|
177
- | `sil_profile_materialize` | Persist a created expert's SDS behaviour artefacts — `domain_spec.md` (deep researched niche expertise) + `intent_spec.md` (the decomposition-dimension schema) + `user_spec.md` (your facts + hard constraints) + `playbook.md` (your buying taste), all four required and present from creation, plus a `profile.json` manifest — under `$SIL_DATA_DIR/agents/<id>/`. (The persona is the agent's host workspace `SOUL.md`, not a sil artefact.) Driven by the skill's creation engine once you endorse the draft, and again per-query to web-refresh the domain and augment your facts/taste; validate-first and fail-closed, it never clobbers an existing expert. |
178
- | `sil_profile_list` | List the experts you've created, most-recently-made first. Takes no arguments. |
179
- | `sil_profile_get` | Show one expert in full — `name`, its `domainSpec` + `intentSpec` + `userSpec` + `playbook` (all four present), manifest path, and `createdAt`. |
180
- | `sil_profile_remove` | Delete one expert's behaviour artefacts. Scoped and idempotent; the agent confirms with you before removing. |
184
+ | `sil_profile_materialize` | Write your shopper's behaviour artefacts under `$SIL_DATA_DIR/shopper/`. One tool, two modes: **create** your shopper (the shared, cross-niche `user_spec.md` + a `profile.json` manifest, no niche pack), or **mint/refresh a domain** the first time you shop a niche (that niche's `domain_spec.md` (deep researched niche expertise) + `intent_spec.md` (the decomposition-dimension schema) + `playbook.md` (your niche shopping taste), alongside the shared `user_spec.md`). (The persona is the agent's host workspace `SOUL.md`, not a sil artefact.) Validate-first and fail-closed; it never clobbers an existing domain, and a second shopper is refused. |
185
+ | `sil_profile_get` | Show your shopper — with **no arguments**, the overview (`name`, the shared `userSpec`, the domain index of everything it has learned; an empty store is healthy); pass a `domainSlug` for one domain's `domainSpec` + `intentSpec` + `playbook`. |
186
+ | `sil_profile_remove` | Forget ONE domain — pass its `domainSlug`; your shopper, your shared facts, and every other domain survive. Scoped and idempotent; the agent confirms with you before removing. |
181
187
 
182
188
  ---
183
189
 
@@ -185,8 +191,8 @@ Namespaced `sil_*` so they never collide with other plugins. Your agent calls th
185
191
 
186
192
  The plugin ships one bundled skill — **`sil-shopping`** 🛒 — that your agent loads automatically the first time you express a shopping intent. You don't invoke it; it's the playbook that makes the tools work well together:
187
193
 
188
- - **Routes intent to the right tool.** *"find me a keyboard"* → `sil_search`, *"look these up"* → `sil_product_get`, *"who am I?"* → `sil_whoami`, *"sign me up"* → `sil_register`, *"make me an expert for X"* → the create flow, *"list / show / remove my experts"* → the `sil_profile_*` tools.
189
- - **Interviews lightly, then researches deeply.** Asked for a shopping expert, it runs a light interview (≤10 questions) to shape the niche and persona *with* you, then researches the niche itself and derives how to decompose every request — and creates nothing until you explicitly endorse the assembled draft.
194
+ - **Routes intent to the right tool.** *"find me a keyboard"* → `sil_search`, *"look these up"* → `sil_product_get`, *"who am I?"* → `sil_whoami`, *"sign me up"* → `sil_register`, *"set up my shopper"* → the create flow, *"what does my shopper know / forget the grocery domain"* → the `sil_profile_*` tools.
195
+ - **One shopper, many niches — minted on the fly.** Asked to set up shopping, it runs a short two-touchpoint onboarding (how your shopper should behave + your cross-niche facts and hard rules) and creates **one** shopper — creating nothing until you explicitly endorse the draft. From then on it shops *any* niche: it classifies what you're buying, reuses a niche it has already learned or **researches a new one on the spot** (announced, so you can correct it), and derives how to decompose every request — learning your facts and taste as it goes.
190
196
  - **Recovers the right way.** Every tool reports a status; the skill follows that tool's own recovery hint — re-register, fix the query, or retry — instead of guessing a fix that won't work.
191
197
  - **Keeps prices honest.** It treats price, availability, and checkout links as point-in-time and re-checks an item right before you buy, so the link you get is the link you pay.
192
198