sil-openclaw 0.6.0 → 0.8.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 +44 -0
- package/EXAMPLES.md +93 -0
- package/README.md +58 -120
- package/SECURITY.md +12 -9
- package/assets/banner-dark.svg +15 -0
- package/assets/banner.svg +15 -0
- package/dist/gateway/screen.js +174 -0
- package/dist/index.js +5 -9
- package/dist/lib/answers.js +59 -0
- package/dist/lib/screen-log.js +13 -0
- package/dist/lib/shopping-call.js +27 -28
- package/dist/lib/sil-client.js +49 -66
- package/dist/lib/tool-result.js +1 -1
- package/dist/tools/catalog.js +113 -272
- package/dist/tools/identity.js +79 -88
- package/openclaw.plugin.json +12 -7
- package/package.json +4 -2
- package/schema/PROVENANCE.md +7 -4
- package/schema/shopping-brief-read-request.schema.json +2 -1
- package/schema/shopping-brief-read-response.schema.json +98 -50
- package/schema/shopping-brief-write-request.schema.json +322 -0
- package/schema/{shopping-brief-create-response.schema.json → shopping-brief-write-response.schema.json} +3 -3
- package/schema/shopping-content-request.schema.json +12 -31
- package/schema/shopping-content-response.schema.json +14 -95
- package/schema/shopping-domain-get-request.schema.json +24 -1
- package/schema/shopping-domain-get-response.schema.json +23 -421
- package/schema/shopping-domain-search-request.schema.json +3 -3
- package/schema/shopping-domain-search-response.schema.json +3 -56
- package/schema/shopping-offers-request.schema.json +14 -9
- package/schema/shopping-offers-response.schema.json +368 -91
- package/schema/shopping-product-get-request.schema.json +4 -3
- package/schema/shopping-product-get-response.schema.json +347 -46
- package/schema/shopping-search-request.schema.json +53 -40
- package/schema/shopping-search-response.schema.json +408 -116
- package/schema/shopping-seller-get-request.schema.json +13 -1
- package/schema/shopping-seller-get-response.schema.json +594 -225
- 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 +37 -0
- package/schema/shopping-user-read-response.schema.json +372 -0
- package/schema/shopping-user-remember-request.schema.json +341 -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 +99 -0
- package/sil-shopping/SKILL.md +149 -208
- package/dist/gateway/search-results.js +0 -99
- package/dist/lib/search-results-log.js +0 -23
- package/dist/lib/search-results-store.js +0 -116
- package/schema/shopping-brief-create-request.schema.json +0 -98
- package/schema/shopping-brief-edit-request.schema.json +0 -125
- package/schema/shopping-brief-edit-response.schema.json +0 -24
- package/schema/shopping-profile-edit-request.schema.json +0 -97
- package/schema/shopping-profile-edit-response.schema.json +0 -17
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,50 @@ release (`clawhub package publish --changelog`). See [README](./README.md#releas
|
|
|
10
10
|
|
|
11
11
|
## [Unreleased]
|
|
12
12
|
|
|
13
|
+
## [0.8.0] - 2026-10-30
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- **The README says what SIL is.** The Shopping Interface Layer for personal AI agents: why an
|
|
18
|
+
interface beats a search box or a product feed, and what a turn looks like. `EXAMPLES.md` holds
|
|
19
|
+
the buyer conversations. The keyboard, bike and tent examples, the checkout link and the UCP
|
|
20
|
+
lines are gone; a banner under `assets/`; the npm and ClawHub description says the same.
|
|
21
|
+
- **The Ask-to-Offer Journey contract.** Money is `{ amount, currency }` in integer minor units
|
|
22
|
+
(€130 is 13000), a range `{ min?, max?, currency }`; spec rows are `spec`, not `key`, and
|
|
23
|
+
the search's `price` is the range. `shopping_domain_get` answers `name`, `reached` and
|
|
24
|
+
`decides`/`why` on deciding specs. `shopping_search` answers `asked` numbered,
|
|
25
|
+
`search_stats`, `holds`/`misses`/`unknown` as ask numbers in place of `fit`, up to five
|
|
26
|
+
`images` and `variants` with one `recommended`. `shopping_offers` and `shopping_seller_get`
|
|
27
|
+
take `page` and answer `next_page`. Descriptions and the skill are re-cut to the journey.
|
|
28
|
+
- **`sil.answer` and `sil.call` replace `sil.search_results`.** A paired screen reads back any
|
|
29
|
+
sil answer the agent got (15 minutes, the last 64), and runs a read, or a forget of the rows it names, as the buyer.
|
|
30
|
+
- **A variant quotes its `price_range`, and an offer carries its shop's terms.** A variant's
|
|
31
|
+
`starting_from` is gone: it answers `price_range`, its offers' one-off prices, cheapest to
|
|
32
|
+
dearest. An offer's `seller` carries its `name`, `delivery` to `ship_to`, `returns_days` and
|
|
33
|
+
its own `promotions`; `shopping_seller_get` is for warranty, policies, reviews and other
|
|
34
|
+
terms. The skill quotes a promotion only on its own shop's offer.
|
|
35
|
+
|
|
36
|
+
### Removed
|
|
37
|
+
|
|
38
|
+
- **Nothing to wait for or re-read.** The search receipt's `finding`, and `shopping_offers`'
|
|
39
|
+
`pending` answer and `confirm` request field, are gone: sil answers every call from what it
|
|
40
|
+
holds. The skill no longer tells the agent to ask again or confirm before a hand-off.
|
|
41
|
+
|
|
42
|
+
## [0.7.0] - 2026-10-12
|
|
43
|
+
|
|
44
|
+
### Changed
|
|
45
|
+
|
|
46
|
+
- **Fifteen tools on sil's signed contract.** `shopping_brief_create`, `shopping_brief_edit` and
|
|
47
|
+
`shopping_profile_edit` are gone; `shopping_brief_write`, `shopping_user_read`,
|
|
48
|
+
`shopping_user_remember` and `shopping_user_forget` replace them. `sil_whoami` answers the
|
|
49
|
+
lean shape (name, country, currency, gender, language, one default address). Replies are
|
|
50
|
+
compact JSON. `shopping_domain_get` pages with `keys` and `after`; `shopping_product_get`
|
|
51
|
+
takes at most three ids and an optional `page`. The skill is rewritten to match.
|
|
52
|
+
- **`sil_whoami` answers flat**, exactly the contract's shape: no `identity` wrapper, no
|
|
53
|
+
`web_origin` fields. `shopping_product_get` names ids sil does not hold in `not_held`.
|
|
54
|
+
- **sil refuses a plugin older than 0.7.0** (HTTP 426); its message reaches the agent as it
|
|
55
|
+
stands.
|
|
56
|
+
|
|
13
57
|
## [0.6.0] - 2026-10-08
|
|
14
58
|
|
|
15
59
|
### Added
|
package/EXAMPLES.md
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# What to ask SIL
|
|
2
|
+
|
|
3
|
+
Everything here is coffee: beans, grinders, espresso machines and the gear around them. That is what SIL carries today, in the US, the UK and Greece. Ask for anything else and your agent says so; nothing is made up to fill the gap.
|
|
4
|
+
|
|
5
|
+
Your agent's words will differ. The facts come from SIL: the products, the specs, the shops, the prices, the guides. A price is what SIL read on the shop's page, dated; the agent re-reads it before you buy.
|
|
6
|
+
|
|
7
|
+
## Start
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
you register me on sil
|
|
11
|
+
agent Opens a browser sign-in. Done once.
|
|
12
|
+
|
|
13
|
+
you who am I on sil?
|
|
14
|
+
agent Ioanna, in Greece, prices in EUR, one address on file.
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## It asks what decides the buy
|
|
18
|
+
|
|
19
|
+
```text
|
|
20
|
+
you I'm getting into espresso. What grinder should I start with?
|
|
21
|
+
|
|
22
|
+
agent For espresso the grinder matters more than the machine. Three things
|
|
23
|
+
decide it: how fine it goes and in what small steps, because espresso
|
|
24
|
+
needs tiny adjustments; the burr set, which sets how even the grind
|
|
25
|
+
is; and whether you'll also brew filter, which needs a coarse setting
|
|
26
|
+
too. Two questions: hand or electric, and will it do both?
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## It teaches from real guides
|
|
30
|
+
|
|
31
|
+
```text
|
|
32
|
+
you is the grinder really more important than the machine?
|
|
33
|
+
|
|
34
|
+
agent From a guide SIL holds, Kev's 2026 burr grinder review: "the grinder
|
|
35
|
+
is more responsible for coffee quality than the espresso machine. If
|
|
36
|
+
you are focused on espresso quality you should spend just as much, if
|
|
37
|
+
not more, on the grinder." The guide, if you want the long read: <link>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## It says what it doesn't know
|
|
41
|
+
|
|
42
|
+
```text
|
|
43
|
+
you a hand grinder for travel, under €300, espresso and pour-over
|
|
44
|
+
|
|
45
|
+
agent Three hand grinders under €300, against what you asked:
|
|
46
|
+
1Zpresso K-Ultra espresso and pour-over · 20 µm steps · 0.7 kg meets all
|
|
47
|
+
1Zpresso J-Ultra espresso only · 8 µm steps · 0.67 kg misses pour-over
|
|
48
|
+
1Zpresso ZP6 pour-over only · 48 mm burrs misses espresso;
|
|
49
|
+
SIL holds no step size for it, so I can't compare that.
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## The shops, side by side
|
|
53
|
+
|
|
54
|
+
```text
|
|
55
|
+
you where can I buy the J-Ultra in Greece?
|
|
56
|
+
|
|
57
|
+
agent Shops SIL has read that deliver to you:
|
|
58
|
+
Barista och Espresso barista-espresso.gr €226.95, down from €238.95 (5% off) in stock
|
|
59
|
+
That's the one Greek shop SIL holds for it today. Price as read on
|
|
60
|
+
30 Oct; I'll check again before you buy. Their page: <link>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Where SIL holds several shops, they come cheapest first among those that reach you. Nobody pays to be first.
|
|
64
|
+
|
|
65
|
+
## It remembers you, if you want it to
|
|
66
|
+
|
|
67
|
+
```text
|
|
68
|
+
you remember that I brew pour-over at home and I never buy from marketplaces
|
|
69
|
+
agent Kept both. I'll search and sort with them from now on.
|
|
70
|
+
|
|
71
|
+
you forget the marketplace rule
|
|
72
|
+
agent Gone.
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Kept in your SIL account, never shared with other users, never used for training.
|
|
76
|
+
|
|
77
|
+
## A buy that takes a few days
|
|
78
|
+
|
|
79
|
+
```text
|
|
80
|
+
you keep this as a job: a first espresso setup, machine and grinder, under €800
|
|
81
|
+
|
|
82
|
+
agent Opened "First espresso setup, under €800". I'll keep what we decide in it.
|
|
83
|
+
Pick up any time with "where was I on the espresso setup?"
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Something SIL doesn't carry yet
|
|
87
|
+
|
|
88
|
+
```text
|
|
89
|
+
you find me a road bike around €1500
|
|
90
|
+
|
|
91
|
+
agent SIL doesn't carry bikes yet, so I have nothing honest to show you there.
|
|
92
|
+
Coffee is what it holds today.
|
|
93
|
+
```
|
package/README.md
CHANGED
|
@@ -1,141 +1,78 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
╚════██║██║██║
|
|
6
|
-
███████║██║███████╗
|
|
7
|
-
╚══════╝╚═╝╚══════╝
|
|
8
|
-
|
|
9
|
-
Shop like you code
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
**The shopping layer your agent runs for you.**
|
|
1
|
+
<picture>
|
|
2
|
+
<source media="(prefers-color-scheme: dark)" srcset="./assets/banner-dark.svg">
|
|
3
|
+
<img alt="SIL. Shop like you code. The Shopping Interface Layer for personal AI agents. Open beta." src="./assets/banner.svg" width="880">
|
|
4
|
+
</picture>
|
|
13
5
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
[](https://github.com/Context4GPTs/sil-openclaw/blob/main/LICENSE)
|
|
6
|
+
[](https://github.com/Context4GPTs/sil-openclaw/blob/main/LICENSE)
|
|
17
7
|
[](https://www.npmjs.com/package/sil-openclaw)
|
|
18
8
|
[](https://clawhub.com)
|
|
19
|
-
[](https://4gpts.com/en/sil)
|
|
20
10
|
[](https://github.com/Context4GPTs/sil-openclaw/commits/main)
|
|
21
11
|
|
|
22
|
-
**[Website](https://4gpts.com)** · **[Changelog](
|
|
12
|
+
**[Website](https://4gpts.com)** · **[Examples](./EXAMPLES.md)** · **[Changelog](./CHANGELOG.md)** · **[Security](./SECURITY.md)** · **[Follow on X](https://x.com/4gpts)**
|
|
23
13
|
|
|
24
14
|
---
|
|
25
15
|
|
|
26
16
|
## Install
|
|
27
17
|
|
|
28
|
-
`sil-openclaw` is the [OpenClaw](https://openclaw.ai) plugin for **sil**. One install and your agent can shop the sil catalog on your behalf.
|
|
29
|
-
|
|
30
18
|
```bash
|
|
31
|
-
# ClawHub (recommended)
|
|
32
|
-
openclaw plugins install
|
|
33
|
-
|
|
34
|
-
# npm
|
|
35
|
-
openclaw plugins install sil-openclaw
|
|
36
|
-
|
|
37
|
-
# Local checkout (dev / e2e)
|
|
38
|
-
openclaw plugins install /path/to/sil-openclaw
|
|
19
|
+
openclaw plugins install clawhub:@4gpts/sil # ClawHub (recommended)
|
|
20
|
+
openclaw plugins install sil-openclaw # npm
|
|
21
|
+
openclaw plugins install /path/to/sil-openclaw # local checkout
|
|
39
22
|
```
|
|
40
23
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
```text
|
|
46
|
-
1. Tell your agent: "register me on sil" (one browser sign-in, done)
|
|
47
|
-
2. Tell your agent: "find me a mechanical keyboard under $100"
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
The agent loads the bundled skill on first commerce intent and takes it from there — searching, comparing, pulling up product detail, and handing back ready-to-buy links.
|
|
51
|
-
|
|
52
|
-
---
|
|
53
|
-
|
|
54
|
-
## What sil is
|
|
55
|
-
|
|
56
|
-
**A commerce catalog built for agents, not browsers.** That's sil.
|
|
57
|
-
|
|
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
|
-
|
|
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.
|
|
24
|
+
> [!TIP]
|
|
25
|
+
> Then tell your agent **register me on sil** (one browser sign-in, done) and ask for something:
|
|
26
|
+
> *"I'm getting into espresso. What grinder should I start with?"*
|
|
27
|
+
> The bundled skill takes it from there. More to try in [EXAMPLES.md](./EXAMPLES.md).
|
|
61
28
|
|
|
62
29
|
---
|
|
63
30
|
|
|
64
|
-
##
|
|
31
|
+
## Why an interface, not a search box
|
|
65
32
|
|
|
66
|
-
|
|
33
|
+
An agent that shops for you needs what a knowledgeable friend has: what decides the buy, the products as they are, the craft, the whole market, you, and the honesty to say "I don't know". A search engine gives it pages. A product feed gives it a shelf. SIL gives it the rest.
|
|
67
34
|
|
|
68
|
-
|
|
69
|
-
|
|
35
|
+
| Your agent needs | Search engine | Product feed | SIL |
|
|
36
|
+
|---|---|---|---|
|
|
37
|
+
| What decides the buy | — | — | the deciding specs of each kind of thing, with why |
|
|
38
|
+
| Product facts | pages to scrape, each shop's own words | the seller's fields | one record per product, same keys, one unit, read from the makers' and shops' own pages |
|
|
39
|
+
| The craft | ten links | — | guides with their author and source |
|
|
40
|
+
| The shops | whoever ranks, whoever paid | whoever joined | every shop SIL has read: price, delivery to you, returns, promotions, dated. Nobody pays to be first |
|
|
41
|
+
| You | an ad profile | — | your facts and rules, in your account, across agents, never pooled or trained on |
|
|
42
|
+
| What it doesn't know | filled in | silent | met · missed · unknown; "not carried" is an answer |
|
|
43
|
+
| A turn | fetch, parse, normalise, judge | read a shelf | a few typed, paged calls; seconds |
|
|
70
44
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
1. Keychron V3 (Brown) $89 in stock
|
|
74
|
-
2. NuPhy Air75 V2 $99 in stock
|
|
75
|
-
3. Akko 3068B $72 low stock
|
|
76
|
-
|
|
77
|
-
want detail on any of these, or a checkout link?
|
|
78
|
-
|
|
79
|
-
you tell me about the keychron
|
|
80
|
-
|
|
81
|
-
agent Keychron V3 — QMK/VIA, hot-swappable, Brown tactile.
|
|
82
|
-
options: ABS / PBT keycaps · US / ISO layout
|
|
83
|
-
featured: PBT keycaps, US layout — $89, ships in 2 days
|
|
84
|
-
→ checkout: sil.4gpts.com/c/kc-v3-pbt-us
|
|
85
|
-
|
|
86
|
-
you perfect, send it
|
|
87
|
-
|
|
88
|
-
agent done — here's your checkout link, ready to pay:
|
|
89
|
-
sil.4gpts.com/c/kc-v3-pbt-us
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
> **You said three things. The agent did the shopping** — searched, compared, fetched the detail, and handed you a ready-to-buy link. No browser, no forms, no fourteen open tabs.
|
|
45
|
+
That is **Spec Driven Shopping**: you say what you need, the agent holds every product to it and tells you what meets it, what misses, and where nobody knows.
|
|
93
46
|
|
|
94
47
|
---
|
|
95
48
|
|
|
96
|
-
##
|
|
97
|
-
|
|
98
|
-
So far your *general* agent did the shopping. Go one step further, with **nothing to set up**: install the plugin and the agent you already have shops **any** niche like a specialist, getting sharper about *you* every session.
|
|
49
|
+
## What a turn looks like
|
|
99
50
|
|
|
100
|
-
|
|
51
|
+
Whatever you ask to buy, your agent:
|
|
101
52
|
|
|
102
|
-
**
|
|
53
|
+
1. **Knows you first.** Reads what SIL already keeps about you: country, currency, address, your facts and your rules. Nothing you've said is asked twice.
|
|
54
|
+
2. **Places the ask.** Finds the kind of thing you're buying and how it is bought: which specs decide it, and why. It asks you only what decides.
|
|
55
|
+
3. **Teaches while it asks.** Pulls the guide passage behind the trade-off, with its author and source, so you learn the thing as you buy it.
|
|
56
|
+
4. **Gets all the facts, and what's missing.** Searches with every want as a spec. Every product comes back held to your asks, and a blank stays a blank:
|
|
103
57
|
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
vs race geometry, and gearing. Two numbers I'll keep so I never
|
|
110
|
-
re-ask: your height and inseam.
|
|
111
|
-
|
|
112
|
-
you 178cm, 81cm inseam. Secondhand is fine
|
|
113
|
-
|
|
114
|
-
agent searched sil — endurance, 54cm for your fit, ~€1500:
|
|
115
|
-
|
|
116
|
-
1. Alloy endurance bike, 54cm, 105 (used) €1420
|
|
117
|
-
2. Carbon endurance bike, 54cm, 105 (used) €1610
|
|
118
|
-
|
|
119
|
-
Why #1: for your 178/81 fit a 54cm endurance frame sits where a
|
|
120
|
-
first buyer wants it — and it honours your "free returns only"
|
|
121
|
-
rule. Want detail or a link?
|
|
122
|
-
|
|
123
|
-
you later — find me a backpacking tent for two, under €250
|
|
124
|
-
|
|
125
|
-
agent [shopping_domain_search "backpacking tent" → shopping_domain_get]
|
|
126
|
-
Tents are bought on season rating, packed weight and floor
|
|
127
|
-
area… and your returns rule carries straight over.
|
|
128
|
-
```
|
|
58
|
+
```diff
|
|
59
|
+
+ 1Zpresso K-Ultra espresso and pour-over · 20 µm steps · 0.7 kg meets all
|
|
60
|
+
- 1Zpresso J-Ultra espresso only · 8 µm steps · 0.67 kg misses pour-over
|
|
61
|
+
# 1Zpresso ZP6 pour-over only · 48 mm burrs step size unknown
|
|
62
|
+
```
|
|
129
63
|
|
|
130
|
-
|
|
64
|
+
5. **Shows the whole market.** For the pick, every shop SIL has read: price in its currency, delivery to your address, returns, the shop's own promotions, and the day it was read. Re-read before you buy.
|
|
65
|
+
6. **Says why.** At the shortlist, the pick and the offer: what you asked, what it remembered about you, and the mechanic of the thing you'd never have named.
|
|
66
|
+
7. **Keeps what matters.** A measurement, a rule, a brand you won't buy, a buy that takes days: kept in your SIL account for next time, on your word. *"Forget that"* undoes it.
|
|
67
|
+
8. **Hands you the shop's own page.** SIL has no checkout of its own. You buy where the shop sells.
|
|
131
68
|
|
|
132
|
-
**
|
|
69
|
+
**Sil Studio**, the screen beside your agent that shows what it found, is in closed beta: ask for a place with *Join the SIL beta* on [4gpts.com](https://4gpts.com/en/sil).
|
|
133
70
|
|
|
134
71
|
---
|
|
135
72
|
|
|
136
73
|
## Tools
|
|
137
74
|
|
|
138
|
-
|
|
75
|
+
Fifteen tools. The twelve the shopping loop calls are named `shopping_*` — for what
|
|
139
76
|
they do for you — and the three account tools keep the `sil_` name. Your agent calls them
|
|
140
77
|
for you; you just say what you want.
|
|
141
78
|
|
|
@@ -144,29 +81,30 @@ for you; you just say what you want.
|
|
|
144
81
|
| Tool | What it does |
|
|
145
82
|
|---|---|
|
|
146
83
|
| `sil_register` | Start a browser sign-in and link your agent to your sil identity. Takes no arguments. |
|
|
147
|
-
| `sil_whoami` | Read your sil identity — name, country, the currency you price in,
|
|
84
|
+
| `sil_whoami` | Read your sil identity — name, country, the currency you price in, language, gender and your default address — as the agent sees it. Takes no arguments. |
|
|
148
85
|
| `sil_doctor` | Check the install: file modes, credential health, host wiring, and whether a newer plugin is published. Reports; repairs only what is safe. |
|
|
149
86
|
|
|
150
|
-
**
|
|
87
|
+
**What sil keeps about you, and your briefs**
|
|
151
88
|
|
|
152
89
|
| Tool | What it does |
|
|
153
90
|
|---|---|
|
|
154
|
-
| `
|
|
155
|
-
| `
|
|
156
|
-
| `
|
|
157
|
-
| `
|
|
91
|
+
| `shopping_user_read` | Everything sil keeps about you — measurements, memories, preferences, purchases — each with what it gives you back. |
|
|
92
|
+
| `shopping_user_remember` | Keep what lasts, in the turn you say it, with "forget that" as the undo. |
|
|
93
|
+
| `shopping_user_forget` | Erase rows you name, or everything, on your word. |
|
|
94
|
+
| `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. |
|
|
95
|
+
| `shopping_brief_read` | With no arguments, your shopping jobs, newest first. With an `id`, that whole brief. |
|
|
158
96
|
|
|
159
97
|
**Shopping**
|
|
160
98
|
|
|
161
99
|
| Tool | What it does |
|
|
162
100
|
|---|---|
|
|
163
|
-
| `shopping_domain_search` | Say what the thing is called, in
|
|
164
|
-
| `shopping_content` |
|
|
165
|
-
| `shopping_domain_get` |
|
|
166
|
-
| `shopping_search` | Search
|
|
167
|
-
| `shopping_product_get` |
|
|
168
|
-
| `shopping_offers` |
|
|
169
|
-
| `shopping_seller_get` |
|
|
101
|
+
| `shopping_domain_search` | Say what the thing is called, in English, and get back up to three leaves (buyable kinds of thing), each its `path` and `name`. Empty when sil holds no such leaf. |
|
|
102
|
+
| `shopping_content` | The passages sil holds that bear on what you said, read on the line through a place — the place, its kinds, beneath it and above it — by words, within a token budget. Each is one shape: kind, title, author, text, url, date. |
|
|
103
|
+
| `shopping_domain_get` | How to search a leaf, or the kind above its leaves: send what you want and a word for each spec you are after, and get the place's `name` and one line per spec a search takes — `spec`, `type`, `unit`, `values`, `operators`, and on a spec that decides the buy `decides` with its `why` — the `reached` lines your words reach first, then the most held, a page at a time (`page` reads on). A shelf or domain is refused as `not_a_leaf`; an area sil does not carry yet as `not_carried`. |
|
|
104
|
+
| `shopping_search` | Search a leaf, or the kind above its leaves, on every want settled — specs, a `price` range, words only for what no spec holds. Answers the ask numbered (`asked`), how many products and shops were weighed and how many hold every ask (`search_stats`), and product cards in sil's order: title, brand, up to five pictures, `holds` · `misses` · `unknown` as ask numbers, the price range, how many shops sell it, and its variants with one `recommended`. Money is an integer in the currency's minor unit: €130 is 13000. |
|
|
105
|
+
| `shopping_product_get` | Up to three products whole: the values their variants share, once; the page's description, pros and cons; reviews; and each variant with what sets it apart, the range its offers are priced over and its pictures. Pick the variants to buy here. |
|
|
106
|
+
| `shopping_offers` | Every offer of 1–10 picked variants: the shop by name, whether it ships to you, its delivery there, its returns window and its own promotions; the price in its own currency, a struck price, availability, a plan or bundle where it is one, the listing URL and the day sil read it. Shops reaching you first, cheapest first; nothing marks a best. A long list ends with `next_page` (`page` reads on). |
|
|
107
|
+
| `shopping_seller_get` | The shops whole, for 1–10 of them: the delivery, returns and promotions the offers carry, and warranty, every other term sil holds, policy links and reviews; `page` reads on. |
|
|
170
108
|
|
|
171
109
|
**The wire is a contract, not a convention.** Each shopping tool's input schema IS the
|
|
172
110
|
artifact under [`schema/`](./schema), copied verbatim from sil-services, and each answer
|
|
@@ -178,7 +116,7 @@ is the API's own 200 body handed over untouched.
|
|
|
178
116
|
|
|
179
117
|
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:
|
|
180
118
|
|
|
181
|
-
- **Routes intent to the right tool.** *"find me a keyboard"* → `shopping_search`, *"what does it cost?"* → `shopping_offers`, *"
|
|
119
|
+
- **Routes intent to the right tool.** *"find me a keyboard"* → `shopping_search`, *"what does it cost?"* → `shopping_offers`, *"what's the warranty?"* → `shopping_seller_get`, *"what was I shopping for?"* → `shopping_brief_read`, *"who am I?"* → `sil_whoami`, *"sign me up"* → `sil_register`.
|
|
182
120
|
- **Many niches, with no preparation.** A shopping intent runs the loop on whatever agent holds the plugin: it finds the place sil shelves what you're buying (`shopping_domain_search`), reads the specs it is bought along (`shopping_domain_get`), and decomposes every request along them — learning your facts and taste as it goes.
|
|
183
121
|
- **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.
|
|
184
122
|
- **Keeps prices honest.** A price is dated only where sil dated it, so the skill re-reads an item's offers right before you buy and quotes the moment they were read.
|
package/SECURITY.md
CHANGED
|
@@ -31,9 +31,9 @@ The plugin talks to these hosts and no others:
|
|
|
31
31
|
the published `@4gpts/sil` version: no token, no PII, bounded timeout, redirects
|
|
32
32
|
refused, silent on any failure.
|
|
33
33
|
|
|
34
|
-
The `shopping_*` tools are read-only, except `
|
|
35
|
-
`
|
|
36
|
-
|
|
34
|
+
The `shopping_*` tools are read-only, except `shopping_brief_write` /
|
|
35
|
+
`shopping_user_remember` / `shopping_user_forget` (write or erase the buyer's own brief
|
|
36
|
+
and rows under their sil account). On a `401`, every sil call refreshes once and retries once. A second
|
|
37
37
|
`401` or a dead refresh token clears `tokens.json`.
|
|
38
38
|
|
|
39
39
|
### Filesystem and credentials
|
|
@@ -68,9 +68,12 @@ tools.
|
|
|
68
68
|
|
|
69
69
|
### Gateway method
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
`callId` it saw.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
Two methods, scope `operator.read`, authorized by the host before the handler runs.
|
|
72
|
+
`sil.answer` lets a paired screen read back any sil answer the agent got, by the
|
|
73
|
+
`callId` it saw. Answers live in an in-memory buffer: at most 64, each dropped 15
|
|
74
|
+
minutes after its call, never written to disk, served only to the sil account that
|
|
75
|
+
produced it. `sil.call` runs one read — products, offers, shops, a domain, content,
|
|
76
|
+
what sil keeps — or a forget of the rows it names, never everything, as the
|
|
77
|
+
signed-in buyer, recorded by sil as the buyer's own (`studio/buyer`). An unknown,
|
|
78
|
+
expired or foreign reference, and a signed-out plugin, get one identical
|
|
79
|
+
not-found body.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="880" height="230" viewBox="0 0 880 230" role="img" aria-label="SIL. Shop like you code.">
|
|
2
|
+
<rect width="880" height="230" rx="10" fill="#1c1714"/>
|
|
3
|
+
<g font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'DejaVu Sans Mono', monospace" font-size="21" fill="#e09a68" xml:space="preserve">
|
|
4
|
+
<text x="44" y="60">███████╗██╗██╗</text>
|
|
5
|
+
<text x="44" y="84">██╔════╝██║██║</text>
|
|
6
|
+
<text x="44" y="108">███████╗██║██║</text>
|
|
7
|
+
<text x="44" y="132">╚════██║██║██║</text>
|
|
8
|
+
<text x="44" y="156">███████║██║███████╗</text>
|
|
9
|
+
<text x="44" y="180">╚══════╝╚═╝╚══════╝</text>
|
|
10
|
+
</g>
|
|
11
|
+
<text x="340" y="104" font-family="Georgia, 'Times New Roman', serif" font-style="italic" font-size="42" fill="#efe6de">Shop like you code.</text>
|
|
12
|
+
<text x="342" y="142" font-family="-apple-system, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="19" fill="#ad9c90">The Shopping Interface Layer for personal AI agents</text>
|
|
13
|
+
<rect x="342" y="162" width="92" height="26" rx="4" fill="none" stroke="#e09a68"/>
|
|
14
|
+
<text x="388" y="180" text-anchor="middle" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="12" font-weight="600" fill="#e09a68">OPEN BETA</text>
|
|
15
|
+
</svg>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="880" height="230" viewBox="0 0 880 230" role="img" aria-label="SIL. Shop like you code.">
|
|
2
|
+
<rect width="880" height="230" rx="10" fill="#fbf8f5"/>
|
|
3
|
+
<g font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, 'DejaVu Sans Mono', monospace" font-size="21" fill="#8a4b22" xml:space="preserve">
|
|
4
|
+
<text x="44" y="60">███████╗██╗██╗</text>
|
|
5
|
+
<text x="44" y="84">██╔════╝██║██║</text>
|
|
6
|
+
<text x="44" y="108">███████╗██║██║</text>
|
|
7
|
+
<text x="44" y="132">╚════██║██║██║</text>
|
|
8
|
+
<text x="44" y="156">███████║██║███████╗</text>
|
|
9
|
+
<text x="44" y="180">╚══════╝╚═╝╚══════╝</text>
|
|
10
|
+
</g>
|
|
11
|
+
<text x="340" y="104" font-family="Georgia, 'Times New Roman', serif" font-style="italic" font-size="42" fill="#2a211c">Shop like you code.</text>
|
|
12
|
+
<text x="342" y="142" font-family="-apple-system, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="19" fill="#76665c">The Shopping Interface Layer for personal AI agents</text>
|
|
13
|
+
<rect x="342" y="162" width="92" height="26" rx="4" fill="none" stroke="#8a4b22"/>
|
|
14
|
+
<text x="388" y="180" text-anchor="middle" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="12" font-weight="600" fill="#8a4b22">OPEN BETA</text>
|
|
15
|
+
</svg>
|