sil-openclaw 0.3.7 → 0.3.9
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 +113 -0
- package/dist/lib/bind-channel.js +10 -0
- package/dist/tools/identity.js +9 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +3 -2
- package/scripts/create-shopper.mjs +678 -0
- package/sil-shopping/SKILL.md +98 -36
- package/sil-shopping/examples/multi_domain_shopper_walkthrough.md +64 -136
- package/sil-shopping/references/agent_creation_engine.md +123 -63
- package/sil-shopping/references/brainstorm_interview.md +95 -59
- package/sil-shopping/references/catalog_tools_reference.md +27 -29
- package/sil-shopping/references/manage_domains.md +60 -39
- package/sil-shopping/references/refine_shopper.md +92 -43
- package/sil-shopping/references/search_param_mapping.md +71 -47
- package/sil-shopping/references/setup_onboarding.md +68 -0
- package/sil-shopping/references/shop_loop.md +161 -106
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,119 @@ release (`clawhub package publish --changelog`). See [README](./README.md#releas
|
|
|
10
10
|
|
|
11
11
|
## [Unreleased]
|
|
12
12
|
|
|
13
|
+
## [0.3.9] - 2026-07-10
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- **A new shopper is auto-bound to the current channel — fail-open, verified.**
|
|
18
|
+
Creation grew a final bind beat: `resolveBindChannel` picks the channel
|
|
19
|
+
(`spec.channel` > `OPENCLAW_MCP_MESSAGE_CHANNEL` > none), and
|
|
20
|
+
`create-shopper.mjs` binds the freshly-minted shopper to it and **verifies the
|
|
21
|
+
bind from the host's own JSON** before declaring success (the `created` outcome
|
|
22
|
+
now carries `boundChannel`). The bind is **fail-open**: a bind or verify
|
|
23
|
+
failure never fails the create and never leaves a half-bound agent — it
|
|
24
|
+
self-reverts and returns a manual-bind hint naming the shopper and the exact
|
|
25
|
+
step to run. No channel resolvable is a clean no-op, not an error. (#48)
|
|
26
|
+
- **`SKILL.md` is now stage-aware and gates the shopper's search on a learned
|
|
27
|
+
domain.** The always-loaded router reads two live signals — registration
|
|
28
|
+
(`sil_whoami`) and shopper state (the no-arg `sil_profile_get` overview) — and
|
|
29
|
+
presents a **five-stage onboarding progression** while setup is incomplete,
|
|
30
|
+
then **sheds to usage-only** once complete, so a steady-state session isn't
|
|
31
|
+
taxed with setup prose. When acting *as the shopper*, search is gated behind a
|
|
32
|
+
learned domain (classify → learn-on-miss before any `sil_search`); the
|
|
33
|
+
profile-less **Lane 1 bare search stays untouched**. Prose-only — no tool
|
|
34
|
+
change, `contracts.tools` byte-unchanged. (#49)
|
|
35
|
+
|
|
36
|
+
### Changed
|
|
37
|
+
|
|
38
|
+
- **The `sil-shopping` skill bundle was refactored to progressive disclosure and
|
|
39
|
+
de-rigidified** — same SDS state machine and file-creation flow, leaner and
|
|
40
|
+
more legible. The one-time onboarding script was **evicted from the
|
|
41
|
+
always-loaded `SKILL.md`** into `references/setup_onboarding.md` (loads on
|
|
42
|
+
demand, shed once setup completes); the router collapses to a **pure state
|
|
43
|
+
branch** (no identity / no shopper / shopper) — body **2394 → 1042 words
|
|
44
|
+
(−56%)**, description **917 → 622 chars**. Language firmness was then matched to
|
|
45
|
+
the task: firm only at the genuine cliffs (endorsement gate, singleton refusal,
|
|
46
|
+
confirm-before-remove/persist, hard-constraint reject-at-pick,
|
|
47
|
+
re-fetch-before-buy, follow-the-tool's-recovery), plain heuristics everywhere
|
|
48
|
+
else. The **whole 10-file bundle** was rewritten leaner (**15,644 → 9,101
|
|
49
|
+
words, −41%**; `shop_loop` −56%): killed tool↔skill and cross-file duplication
|
|
50
|
+
and dropped the `sil_search` param-catalog table (the tool description owns it —
|
|
51
|
+
the mapping now points there). Skill prose + tests only; the 8-tool floor and
|
|
52
|
+
`contracts.tools` are unchanged. (#50, #51)
|
|
53
|
+
|
|
54
|
+
### Fixed
|
|
55
|
+
|
|
56
|
+
- **The `sil-shopping` skill now actually loads into the created shopper agent.**
|
|
57
|
+
`create-shopper.mjs` attached the **plugin id** (`["sil"]`) at
|
|
58
|
+
`agents.list[i].skills`, but a skill attaches by its **published name** — the
|
|
59
|
+
skill-dir basename `sil-shopping` (`basename(openclaw.plugin.json#skills[0])`,
|
|
60
|
+
== the `SKILL.md` frontmatter `name`) — so the host looked up a skill named
|
|
61
|
+
`sil`, found none, and the shopper ran with **no skill driving its `sil_*`
|
|
62
|
+
tools**. The `["sil"]` literal is deleted; the attach value is now
|
|
63
|
+
**single-sourced from the shipped manifest** and resolved as a fail-closed
|
|
64
|
+
precondition (a blank/absent `skills[0]` attaches nothing, never `[""]`). A
|
|
65
|
+
static name-agreement drift guard (`basename(skills[0]) == SKILL.md name !=
|
|
66
|
+
plugin id`) keeps the plugin-id/skill-name conflation from silently returning.
|
|
67
|
+
(#47)
|
|
68
|
+
|
|
69
|
+
## [0.3.8] - 2026-07-06
|
|
70
|
+
|
|
71
|
+
### Added
|
|
72
|
+
|
|
73
|
+
- **One-tap shopper creation via a single operator bin.** A new bin
|
|
74
|
+
`sil-openclaw-create-shopper` (`scripts/create-shopper.mjs`, wired through
|
|
75
|
+
`package.json#bin`) runs the **whole** shopper-creation choreography atomically
|
|
76
|
+
over one stdin JSON payload — reusing `materializeProfile` and the
|
|
77
|
+
`sil-openclaw-allowlist` bin — instead of the skill hand-driving the host CLI
|
|
78
|
+
step by step. It reports a four-outcome taxonomy (`created` / `invalid_request`
|
|
79
|
+
/ `collision` / `persistence_failed`) plus a louder `teardown_failed` emitted
|
|
80
|
+
only when snapshot-restore itself cannot revert; a whole-file snapshot-restore
|
|
81
|
+
teardown returns the host to its **exact** pre-run state on any failure (no
|
|
82
|
+
half-created shopper, no orphaned config/workspace). The skill references were
|
|
83
|
+
rewritten around the one command: `agent_creation_engine.md` now invokes the
|
|
84
|
+
single bin, and `brainstorm_interview.md` becomes a session-seeded, **local +
|
|
85
|
+
offline** pre-fill with the explicit endorsement gate intact — nothing is
|
|
86
|
+
created until the user endorses the assembled draft. No new plugin tool; the
|
|
87
|
+
8-tool manifest is unchanged. (#45)
|
|
88
|
+
- **Post-register shopper nudge + per-search pitch.** `sil_register`'s
|
|
89
|
+
`already_registered` payload now carries an additive, unconditional
|
|
90
|
+
`next_step: "offer_shopper"` routing hint — `identity.ts` reads **no**
|
|
91
|
+
profile-store state (it stays decoupled from the store); the skill owns the
|
|
92
|
+
actual gate. The `sil-shopping` skill gains two always-on beats: an
|
|
93
|
+
after-register offer to create the shopper, gated on a no-arg `sil_profile_get`
|
|
94
|
+
empty-store check (a user who already has the singleton shopper is never offered
|
|
95
|
+
a second one), and a recurring post-result per-search pitch that introduces the
|
|
96
|
+
shopper after a bare search. Lane 1 (bare `sil_search`) stays untouched and the
|
|
97
|
+
pitch carries no frequency gate by design. (#44)
|
|
98
|
+
|
|
99
|
+
### Changed
|
|
100
|
+
|
|
101
|
+
- **On-query SDS spine hardened into five non-skippable beats.** The shop loop
|
|
102
|
+
(`sil-shopping/references/shop_loop.md`) is re-ordered in place into a hard,
|
|
103
|
+
ordered spine — **domain-exists → learn-on-miss → elicit-missing gate → persist
|
|
104
|
+
→ search** — splitting the old Step 3 into a first-class **elicitation gate
|
|
105
|
+
(Beat 3) that runs ahead of search** and a distinct **persist beat (Beat 4)**,
|
|
106
|
+
so the shopper never searches before it has decomposed intent and captured what
|
|
107
|
+
it learned. `SKILL.md` gains one non-skippable domain-exists reinforcement line,
|
|
108
|
+
scoped "as the shopper" (Lane 1 stays bare). The first-`buy` and
|
|
109
|
+
after-recommendation windows remain downstream of the Beat-5 web re-fetch.
|
|
110
|
+
Prose-only: no tool change, `contracts.tools` byte-unchanged. (#46)
|
|
111
|
+
|
|
112
|
+
### Fixed
|
|
113
|
+
|
|
114
|
+
- **The version-bump gate is now immune to a stale `dist/`.** The preversion test
|
|
115
|
+
path that reads the registered tool set is now **source-authoritative** — an
|
|
116
|
+
unconditional `await import("../index.js")` with the dist-preference and
|
|
117
|
+
non-behavioural breadcrumb removed — so an out-of-date compiled artifact can no
|
|
118
|
+
longer mask a source regression (the 0.3.6 `sil_profile_list` phantom-mismatch
|
|
119
|
+
class). A new `compiled-artifact-load.integration.test.ts` plants a poisoned
|
|
120
|
+
9-tool compiled entry under a hermetic `outDir` and proves the fresh-build
|
|
121
|
+
harness wipes it and loads a source-faithful dist (registered set ==
|
|
122
|
+
runtime-read `contracts.tools`, no `sil_profile_list`, marker gone). Test-only:
|
|
123
|
+
no tool added/removed, `contracts.tools` / `manifest-contract` / `package.json`
|
|
124
|
+
/ `scripts/release.mjs` byte-untouched. (#43)
|
|
125
|
+
|
|
13
126
|
## [0.3.7] - 2026-06-29
|
|
14
127
|
|
|
15
128
|
### Fixed
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export function resolveBindChannel(sources) {
|
|
2
|
+
return normalizeChannel(sources.specChannel) ?? normalizeChannel(sources.envChannel);
|
|
3
|
+
}
|
|
4
|
+
/** A present, non-blank string trimmed of surrounding whitespace, else `null`. */
|
|
5
|
+
function normalizeChannel(value) {
|
|
6
|
+
if (typeof value !== "string")
|
|
7
|
+
return null;
|
|
8
|
+
const trimmed = value.trim();
|
|
9
|
+
return trimmed.length > 0 ? trimmed : null;
|
|
10
|
+
}
|
package/dist/tools/identity.js
CHANGED
|
@@ -52,11 +52,20 @@ function registerRegister(api) {
|
|
|
52
52
|
parameters: Type.Object({}),
|
|
53
53
|
async execute() {
|
|
54
54
|
// 1 — already registered: short-circuit, no mint, no poll, no overwrite.
|
|
55
|
+
// `next_step` is an ADDITIVE, UNCONDITIONAL routing hint (not a decision):
|
|
56
|
+
// it tells the skill "the moment after a confirmed registration is where to
|
|
57
|
+
// introduce the shopper". identity.ts stays decoupled from the profile store
|
|
58
|
+
// — it reads NO shopper state here; the skill owns the actual gate (a no-arg
|
|
59
|
+
// sil_profile_get empty-store check) so a user who already has a shopper is
|
|
60
|
+
// never offered a second one (the shopper is a singleton). The hint rides
|
|
61
|
+
// ONLY this confirmed-registration path — never the pre-registration
|
|
62
|
+
// `awaiting_browser` return, nor any poll/error terminal.
|
|
55
63
|
if (hasTokens()) {
|
|
56
64
|
const config = readConfig();
|
|
57
65
|
return jsonResult({
|
|
58
66
|
status: "already_registered",
|
|
59
67
|
user: config?.user ?? null,
|
|
68
|
+
next_step: "offer_shopper",
|
|
60
69
|
});
|
|
61
70
|
}
|
|
62
71
|
// A fresh registration attempt clears any prior in-process persist-failure
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sil-openclaw",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9",
|
|
4
4
|
"description": "Turn your OpenClaw into an expert shopping agent.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"main": "./dist/index.js",
|
|
29
29
|
"bin": {
|
|
30
|
-
"sil-openclaw-allowlist": "./scripts/allowlist-openclaw.mjs"
|
|
30
|
+
"sil-openclaw-allowlist": "./scripts/allowlist-openclaw.mjs",
|
|
31
|
+
"sil-openclaw-create-shopper": "./scripts/create-shopper.mjs"
|
|
31
32
|
},
|
|
32
33
|
"files": [
|
|
33
34
|
"dist",
|