sil-openclaw 0.2.0 → 0.2.1
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 +20 -1
- package/README.md +25 -58
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
All notable changes to
|
|
3
|
+
All notable changes to the `sil-openclaw` plugin (npm `sil-openclaw`, ClawHub `sil`) are documented here. The format follows
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project adheres
|
|
5
5
|
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
@@ -10,6 +10,25 @@ release (`clawhub package publish --changelog`). See [README](./README.md#releas
|
|
|
10
10
|
|
|
11
11
|
## [Unreleased]
|
|
12
12
|
|
|
13
|
+
## [0.2.1] - 2026-06-11
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- README restructured to be usage-first. Dropped the internal "How it works",
|
|
18
|
+
"Configuration", and "Files on disk" sections and reduced "Security" to a
|
|
19
|
+
pointer to [SECURITY.md](./SECURITY.md). Expanded the tool surface into a
|
|
20
|
+
**Tools** section (Identity + Catalog, including the `sil_search` ship-to /
|
|
21
|
+
serviceability filters), and added an **Identity & authentication** section
|
|
22
|
+
(sil gives the agent an identity and the capability to transact with UCP
|
|
23
|
+
merchants) and a **Skills** section documenting the bundled `sil` skill.
|
|
24
|
+
Implementation and security internals now live solely in `SECURITY.md` and
|
|
25
|
+
`openclaw.plugin.json#security`.
|
|
26
|
+
- Fixed `pnpm release`’s ClawHub upload: it now re-packs the built tarball under
|
|
27
|
+
the scoped name `@4gpts/sil` (the bare plugin id `sil` is unclaimable — already
|
|
28
|
+
owned by that package) instead of the failing `--name sil`, so npm
|
|
29
|
+
(`sil-openclaw`) and ClawHub (`@4gpts/sil`) publish the same contents from one
|
|
30
|
+
build.
|
|
31
|
+
|
|
13
32
|
## [0.2.0] - 2026-06-11
|
|
14
33
|
|
|
15
34
|
### Changed
|
package/README.md
CHANGED
|
@@ -56,9 +56,9 @@ The agent loads the bundled skill on first commerce intent and takes it from the
|
|
|
56
56
|
|
|
57
57
|
**A commerce catalog built for agents, not browsers.** That's sil.
|
|
58
58
|
|
|
59
|
-
sil is a [UCP](https://github.com/universal-commerce-protocol/ucp) (Universal Commerce Protocol) commerce service
|
|
59
|
+
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).
|
|
60
60
|
|
|
61
|
-
Today
|
|
61
|
+
Today the plugin covers **identity and catalog** — registration plus search and product lookup. The rest of the UCP journey (cart, checkout, order, fulfillment) lands as those domains ship, and the same plugin grows with them.
|
|
62
62
|
|
|
63
63
|
---
|
|
64
64
|
|
|
@@ -94,82 +94,49 @@ agent done — here's your checkout link, ready to pay:
|
|
|
94
94
|
|
|
95
95
|
---
|
|
96
96
|
|
|
97
|
-
##
|
|
97
|
+
## Identity & authentication
|
|
98
98
|
|
|
99
|
-
sil
|
|
99
|
+
**sil gives your agent an identity — and the capability to use it.** One browser sign-in links your OpenClaw agent to a sil identity it holds on your behalf — your name, your saved addresses. That identity is what lets the agent *transact*: it can search, compare, and surface checkout links with any merchant that speaks [UCP](https://github.com/universal-commerce-protocol/ucp) (the Universal Commerce Protocol), all under your account, without you ever touching a store login.
|
|
100
100
|
|
|
101
|
-
|
|
102
|
-
you your agent (OpenClaw) sil
|
|
103
|
-
───── ───────────────────── ─────
|
|
104
|
-
"register me ──▶ sil_register ──▶ sil-web PKCE sign-in +
|
|
105
|
-
on sil" token refresh
|
|
106
|
-
│ tokens.json (0600, on your disk)
|
|
107
|
-
▼
|
|
108
|
-
"find me a ──▶ sil_search ──▶ sil-api catalog
|
|
109
|
-
keyboard" sil_product_get search + lookup
|
|
110
|
-
│
|
|
111
|
-
◀── ranked products · prices · availability · checkout links ──┘
|
|
112
|
-
```
|
|
101
|
+
Registering is the only manual step. After that the agent carries your identity for you — ask *"who am I on sil?"* anytime to see exactly what it's holding.
|
|
113
102
|
|
|
114
|
-
|
|
103
|
+
---
|
|
115
104
|
|
|
116
|
-
|
|
105
|
+
## Tools
|
|
117
106
|
|
|
118
|
-
|
|
107
|
+
Namespaced `sil_*` so they never collide with other plugins. Your agent calls them for you — you just say what you want.
|
|
119
108
|
|
|
120
|
-
|
|
109
|
+
**Identity**
|
|
121
110
|
|
|
122
111
|
| Tool | What it does |
|
|
123
112
|
|---|---|
|
|
124
|
-
| `sil_register` | Start browser sign-in
|
|
125
|
-
| `sil_whoami` |
|
|
126
|
-
| `sil_search` | Ranked purchasable variants for a `query` / `category` / price range — each with `id`, `title`, `price`, `availability`, `checkout_url` — plus a pagination `cursor`. |
|
|
127
|
-
| `sil_product_get` | Resolve `ids: string[]` to full products in UCP shape (description, options, featured variant); misses come back in `not_found`. |
|
|
128
|
-
|
|
129
|
-
---
|
|
113
|
+
| `sil_register` | Start a browser sign-in and link your agent to your sil identity. Returns an `auth_url` to open; once you've signed in, the agent is registered and can transact. Takes no arguments. |
|
|
114
|
+
| `sil_whoami` | Read your sil identity — name and saved addresses — as the agent sees it. Takes no arguments. |
|
|
130
115
|
|
|
131
|
-
|
|
116
|
+
**Catalog**
|
|
132
117
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
|
136
|
-
|
|
137
|
-
| `sil_web_url` | `SIL_WEB_URL` | `https://sil.4gpts.com` | sil-web — auth (registration, refresh) |
|
|
138
|
-
| `sil_api_url` | `SIL_API_URL` | `https://sil-api.4gpts.com` | sil-api — identity + catalog |
|
|
139
|
-
|
|
140
|
-
If your host runs a restrictive tool profile (`coding`, `messaging`, `minimal`), let sil through and restart the gateway:
|
|
141
|
-
|
|
142
|
-
```json
|
|
143
|
-
{ "tools": { "profile": "coding", "alsoAllow": ["sil"] } }
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
Use `alsoAllow`, not `allow` — `allow` runs *after* the profile filter and can't rescue a tool the profile already removed. The default `full` profile needs no patch.
|
|
118
|
+
| Tool | What it does |
|
|
119
|
+
|---|---|
|
|
120
|
+
| `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), `ships_from` (merchant origin country), `condition` (`new` / `secondhand`), and `available`. Returns a ranked list of variants — each with `id`, `title`, `price`, `availability`, `checkout_url`, `source` — and a pagination `cursor`. Location filters take ISO codes (`US`, `CA`), not place names. |
|
|
121
|
+
| `sil_product_get` | Resolve `ids` you already hold to full products in UCP shape — description, options, and the featured purchasable variant with fresh `price`, `availability`, and `checkout_url`. Re-fetch right before buying; those values are point-in-time, not guarantees. Ids that no longer resolve come back in `not_found`. |
|
|
147
122
|
|
|
148
123
|
---
|
|
149
124
|
|
|
150
|
-
##
|
|
125
|
+
## Skills
|
|
151
126
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
127
|
+
The plugin ships one bundled skill — **`sil`** 🛒 — 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 four tools work well together:
|
|
128
|
+
|
|
129
|
+
- **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`.
|
|
130
|
+
- **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.
|
|
131
|
+
- **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.
|
|
157
132
|
|
|
158
|
-
|
|
133
|
+
Because the skill ships inside the plugin, installing the plugin installs the skill — there's nothing extra to set up.
|
|
159
134
|
|
|
160
135
|
---
|
|
161
136
|
|
|
162
137
|
## Security
|
|
163
138
|
|
|
164
|
-
The plugin holds your
|
|
165
|
-
|
|
166
|
-
- **`register()` opens nothing.** No sockets, no timers, no daemon. All I/O is inside a tool call — zero idle footprint.
|
|
167
|
-
- **PKCE, verifier in memory only.** Sign-in uses PKCE; the verifier is never written to disk. Tokens and identity PII are never logged.
|
|
168
|
-
- **Credentials at `$SIL_DATA_DIR`, mode 0600.** The registration poll timer is bounded — it stops on the first terminal outcome or the session deadline.
|
|
169
|
-
- **Two origins, nothing else.** sil-web (auth) and sil-api (identity + catalog). No inbound webhook, no public URL, no third-party beacons.
|
|
170
|
-
- **No `child_process`, no native modules, no install scripts.** A minimal, auditable surface.
|
|
171
|
-
|
|
172
|
-
> **Full policy:** [SECURITY.md](./SECURITY.md) · machine-readable disclosure in [`openclaw.plugin.json#security`](./openclaw.plugin.json). **Found an issue?** DM [@4gpts on X](https://x.com/4gpts).
|
|
139
|
+
The plugin holds your sil credentials and transacts on your behalf. The full disclosure — what it touches, what it stores, and how to report an issue — is in **[SECURITY.md](./SECURITY.md)**.
|
|
173
140
|
|
|
174
141
|
---
|
|
175
142
|
|
|
@@ -182,7 +149,7 @@ pnpm test # vitest (unit + integration)
|
|
|
182
149
|
pnpm typecheck # tsc --noEmit
|
|
183
150
|
```
|
|
184
151
|
|
|
185
|
-
Releasing is two steps: `pnpm version <patch|minor|major>` (bump → sync manifest → cut changelog → test → tag → push), then `pnpm release` (build → pack
|
|
152
|
+
Releasing is two steps: `pnpm version <patch|minor|major>` (bump → sync manifest → cut changelog → test → tag → push), then `pnpm release` (build → pack → npm `sil-openclaw` + ClawHub `@4gpts/sil` — the same contents, re-packed under each registry's name). Full guide in [`CLAUDE.md`](./CLAUDE.md#releasing); release notes in [`CHANGELOG.md`](./CHANGELOG.md). Adding a tool is three steps, enforced by a drift-guard test — see [`CLAUDE.md`](./CLAUDE.md#how-to-add-a-tool).
|
|
186
153
|
|
|
187
154
|
---
|
|
188
155
|
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "sil",
|
|
3
3
|
"name": "sil",
|
|
4
4
|
"description": "sil commerce plugin for OpenClaw — register on sil, read your identity, and search and look up products in the sil catalog.",
|
|
5
|
-
"version": "0.2.
|
|
5
|
+
"version": "0.2.1",
|
|
6
6
|
"skills": ["./skill"],
|
|
7
7
|
"activation": {
|
|
8
8
|
"onCapabilities": ["tool"]
|
package/package.json
CHANGED