clishop 1.5.8 → 1.5.10
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/README.md +2 -0
- package/dist/index.js +3 -3
- package/dist/mcp.js +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/skills/clishop/SKILL.md +55 -0
package/README.md
CHANGED
|
@@ -98,6 +98,8 @@ clishop setup start --email user@example.com --json
|
|
|
98
98
|
|
|
99
99
|
`setup start` returns immediately with account-ready status and stores auth locally.
|
|
100
100
|
|
|
101
|
+
In OpenClaw, prefer the installed CLISHOP MCP tools over CLI shell commands. For address management, the intended flow is to call `list_addresses` first, then `add_address` non-interactively with any known fields, and ask the user only for missing required address fields (`label`, `firstName`, `lastName`, `line1`, `city`, `postalCode`, `country`).
|
|
102
|
+
|
|
101
103
|
- Search products right away with `clishop search <query>`
|
|
102
104
|
- Add a shipping address later with `clishop address add`
|
|
103
105
|
- Add a payment method later with `clishop payment add`
|
package/dist/index.js
CHANGED
|
@@ -1114,8 +1114,8 @@ async function runSetupWizard(emailArg, { json = false } = {}) {
|
|
|
1114
1114
|
console.log();
|
|
1115
1115
|
console.log(chalk4.bold.cyan(" W E L C O M E T O C L I S H O P"));
|
|
1116
1116
|
console.log(chalk4.dim(" Order anything from your terminal."));
|
|
1117
|
-
console.log(chalk4.dim(` npm: v${"1.5.
|
|
1118
|
-
console.log(chalk4.dim(` Build: ${"2026-04-06T11:
|
|
1117
|
+
console.log(chalk4.dim(` npm: v${"1.5.10"}`));
|
|
1118
|
+
console.log(chalk4.dim(` Build: ${"2026-04-06T11:38:51.755Z"}`));
|
|
1119
1119
|
console.log();
|
|
1120
1120
|
divider(chalk4.cyan);
|
|
1121
1121
|
console.log();
|
|
@@ -4261,7 +4261,7 @@ function registerDoctorCommand(program2) {
|
|
|
4261
4261
|
|
|
4262
4262
|
// src/index.ts
|
|
4263
4263
|
var program = new Command();
|
|
4264
|
-
program.name("clishop").version("1.5.
|
|
4264
|
+
program.name("clishop").version("1.5.10").description(
|
|
4265
4265
|
chalk16.bold("CLISHOP") + ` \u2014 Order anything from your terminal.
|
|
4266
4266
|
|
|
4267
4267
|
Run 'clishop setup <email>' or 'clishop setup start --email <email> --json' to create your account.
|
package/dist/mcp.js
CHANGED
|
@@ -13815,7 +13815,7 @@ function safeCall(fn) {
|
|
|
13815
13815
|
var server = new McpServer(
|
|
13816
13816
|
{
|
|
13817
13817
|
name: "clishop",
|
|
13818
|
-
version: "1.5.
|
|
13818
|
+
version: "1.5.10"
|
|
13819
13819
|
},
|
|
13820
13820
|
{
|
|
13821
13821
|
capabilities: {
|
package/package.json
CHANGED
package/server.json
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"url": "https://github.com/DavooxBv2/CLISHOP",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "1.5.
|
|
9
|
+
"version": "1.5.10",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "clishop",
|
|
14
|
-
"version": "1.5.
|
|
14
|
+
"version": "1.5.10",
|
|
15
15
|
"runtime": "node",
|
|
16
16
|
"args": ["--mcp"],
|
|
17
17
|
"transport": {
|
package/skills/clishop/SKILL.md
CHANGED
|
@@ -30,6 +30,61 @@ clishop-mcp # If installed globally
|
|
|
30
30
|
node ./dist/mcp.js # From the installed package directory
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
+
## OpenClaw usage rules
|
|
34
|
+
|
|
35
|
+
When CLISHOP is installed in OpenClaw, prefer the MCP tools exposed by the CLISHOP server instead of shell commands.
|
|
36
|
+
|
|
37
|
+
- OpenClaw commonly exposes these tools with a `clishop__<tool_name>` naming pattern, for example `clishop__list_addresses`, `clishop__add_address`, `clishop__set_default_address`, `clishop__list_payment_methods`, and `clishop__buy_product`.
|
|
38
|
+
- If those MCP tools are available, do not fall back to `clishop address add` or other CLI subcommands.
|
|
39
|
+
- If a user asks to add a home or shipping address and the address is already known from memory or prior conversation context, call the address tool directly and only ask for missing required fields.
|
|
40
|
+
|
|
41
|
+
### Non-interactive address flow
|
|
42
|
+
|
|
43
|
+
1. Call `clishop__list_addresses` or `list_addresses` first to check existing saved addresses.
|
|
44
|
+
2. If the correct address already exists, reuse it and call `clishop__set_default_address` or `set_default_address` if needed.
|
|
45
|
+
3. If no suitable address exists, call `clishop__add_address` or `add_address` directly with the known fields.
|
|
46
|
+
4. Ask the user only for any missing required fields.
|
|
47
|
+
5. Prefer `setDefault: true` when adding the main home address.
|
|
48
|
+
|
|
49
|
+
Required fields for `add_address`:
|
|
50
|
+
|
|
51
|
+
- `label`
|
|
52
|
+
- `firstName`
|
|
53
|
+
- `lastName`
|
|
54
|
+
- `line1`
|
|
55
|
+
- `city`
|
|
56
|
+
- `postalCode`
|
|
57
|
+
- `country`
|
|
58
|
+
|
|
59
|
+
Optional fields:
|
|
60
|
+
|
|
61
|
+
- `line2`
|
|
62
|
+
- `region`
|
|
63
|
+
- `phone`
|
|
64
|
+
- `companyName`
|
|
65
|
+
- `vatNumber`
|
|
66
|
+
- `taxId`
|
|
67
|
+
- `instructions`
|
|
68
|
+
- `setDefault`
|
|
69
|
+
|
|
70
|
+
Example `add_address` payload for a US home address in San Francisco:
|
|
71
|
+
|
|
72
|
+
```json
|
|
73
|
+
{
|
|
74
|
+
"label": "Home",
|
|
75
|
+
"firstName": "Alex",
|
|
76
|
+
"lastName": "Johnson",
|
|
77
|
+
"line1": "1234 Hayes Street",
|
|
78
|
+
"city": "San Francisco",
|
|
79
|
+
"region": "CA",
|
|
80
|
+
"postalCode": "94117",
|
|
81
|
+
"country": "United States",
|
|
82
|
+
"phone": "+14155550123",
|
|
83
|
+
"instructions": "Leave at front door",
|
|
84
|
+
"setDefault": true
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
33
88
|
## Tools
|
|
34
89
|
|
|
35
90
|
| Tool | Description | Read-only |
|