clishop 1.5.4 → 1.5.8

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/.mcp.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "mcpServers": {
3
+ "clishop": {
4
+ "command": "node",
5
+ "args": ["./dist/mcp.js"]
6
+ }
7
+ }
8
+ }
package/README.md CHANGED
@@ -50,6 +50,16 @@ npm install -g clishop
50
50
 
51
51
  This gives you two commands: `clishop` (the CLI) and `clishop-mcp` (the MCP server for AI agents).
52
52
 
53
+ ### OpenClaw
54
+
55
+ Once the ClawHub package is published, install CLISHOP into an OpenClaw workspace with:
56
+
57
+ ```bash
58
+ openclaw plugins install clawhub:clishop
59
+ ```
60
+
61
+ The bundle exposes the CLISHOP skill under `skills/clishop/SKILL.md` and merges the packaged MCP defaults from `.mcp.json` so OpenClaw can launch the bundled CLISHOP MCP runtime locally without fetching npm code at startup.
62
+
53
63
  ### Linux / WSL
54
64
 
55
65
  CLISHOP works out of the box on Linux and WSL. On systems without a native keychain, tokens are stored in a local file (`~/.config/clishop/auth.json`) with restricted permissions.
@@ -188,7 +198,7 @@ CLISHOP ships as a native MCP server with 46 tools. Any MCP-compatible client ge
188
198
 
189
199
  ```bash
190
200
  clishop-mcp # If installed globally
191
- npx -y clishop --mcp # Without installing
201
+ node ./dist/mcp.js # From the installed package directory
192
202
  ```
193
203
 
194
204
  The MCP onboarding tools now follow the same email-first model:
@@ -46,7 +46,9 @@ function fileDeletePassword(service, account) {
46
46
  }
47
47
 
48
48
  // src/auth.ts
49
- var require2 = createRequire(import.meta.url);
49
+ var require2 = createRequire(
50
+ typeof __filename !== "undefined" ? __filename : import.meta.url
51
+ );
50
52
  var _keytar = null;
51
53
  var _keytarChecked = false;
52
54
  function getKeytar() {
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  resolveBackend,
15
15
  startSetupSession,
16
16
  waitForSetupSession
17
- } from "./chunk-UO2N5F5R.js";
17
+ } from "./chunk-IF2ZZ3IJ.js";
18
18
  import {
19
19
  createAgent,
20
20
  deleteAgent,
@@ -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.4"}`));
1118
- console.log(chalk4.dim(` Build: ${"2026-04-05T11:19:52.708Z"}`));
1117
+ console.log(chalk4.dim(` npm: v${"1.5.8"}`));
1118
+ console.log(chalk4.dim(` Build: ${"2026-04-06T11:16:14.581Z"}`));
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.4").description(
4264
+ program.name("clishop").version("1.5.8").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
@@ -6,7 +6,7 @@ import {
6
6
  getUserInfo,
7
7
  isLoggedIn,
8
8
  startSetupSession
9
- } from "./chunk-UO2N5F5R.js";
9
+ } from "./chunk-IF2ZZ3IJ.js";
10
10
  import {
11
11
  __export,
12
12
  getActiveAgent,
@@ -16,6 +16,8 @@ import {
16
16
  // src/mcp.ts
17
17
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
18
18
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
19
+ import { resolve } from "path";
20
+ import { fileURLToPath } from "url";
19
21
 
20
22
  // node_modules/zod/v4/classic/external.js
21
23
  var external_exports = {};
@@ -13813,7 +13815,7 @@ function safeCall(fn) {
13813
13815
  var server = new McpServer(
13814
13816
  {
13815
13817
  name: "clishop",
13816
- version: "1.5.4"
13818
+ version: "1.5.8"
13817
13819
  },
13818
13820
  {
13819
13821
  capabilities: {
@@ -15046,7 +15048,8 @@ async function startMcpServer() {
15046
15048
  const transport = new StdioServerTransport();
15047
15049
  await server.connect(transport);
15048
15050
  }
15049
- var isDirectEntry = import.meta.url === `file:///${process.argv[1]?.replace(/\\/g, "/")}` || import.meta.url === `file://${process.argv[1]?.replace(/\\/g, "/")}`;
15051
+ var moduleEntryPath = typeof __filename !== "undefined" ? __filename : fileURLToPath(import.meta.url);
15052
+ var isDirectEntry = !!process.argv[1] && resolve(process.argv[1]) === resolve(moduleEntryPath);
15050
15053
  if (isDirectEntry) {
15051
15054
  startMcpServer().catch((err) => {
15052
15055
  process.stderr.write(`CLISHOP MCP server failed to start: ${err}
@@ -0,0 +1,3 @@
1
+ {
2
+ "hostTargets": ["openclaw"]
3
+ }
package/package.json CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "clishop",
3
- "version": "1.5.4",
3
+ "displayName": "CLISHOP",
4
+ "version": "1.5.8",
4
5
  "mcpName": "io.github.StefDCL/clishop",
5
6
  "description": "CLISHOP — Order anything from your terminal",
6
7
  "main": "dist/index.js",
7
8
  "files": [
8
9
  "dist",
9
- "openclaw",
10
+ "skills",
11
+ ".mcp.json",
12
+ "openclaw.bundle.json",
10
13
  "server.json"
11
14
  ],
12
15
  "bin": {
@@ -14,7 +17,8 @@
14
17
  "clishop-mcp": "dist/mcp.js"
15
18
  },
16
19
  "scripts": {
17
- "build": "tsup",
20
+ "build": "tsup && tsup --config tsup.clawhub.config.ts",
21
+ "build:bundle": "tsup --config tsup.clawhub.config.ts",
18
22
  "dev": "tsx src/index.ts",
19
23
  "dev:mcp": "tsx src/mcp.ts",
20
24
  "start": "node dist/index.js",
@@ -30,6 +34,8 @@
30
34
  "cli",
31
35
  "shopping",
32
36
  "ordering",
37
+ "openclaw",
38
+ "clawhub",
33
39
  "mcp",
34
40
  "model-context-protocol",
35
41
  "ai",
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.4",
9
+ "version": "1.5.8",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "clishop",
14
- "version": "1.5.4",
14
+ "version": "1.5.8",
15
15
  "runtime": "node",
16
16
  "args": ["--mcp"],
17
17
  "transport": {
@@ -27,7 +27,7 @@ Then search products, and only add an address or payment method when the user is
27
27
 
28
28
  ```bash
29
29
  clishop-mcp # If installed globally
30
- npx -y clishop --mcp # Without installing
30
+ node ./dist/mcp.js # From the installed package directory
31
31
  ```
32
32
 
33
33
  ## Tools
@@ -147,4 +147,4 @@ This skill is designed for autonomous invocation by AI agents via the Model Cont
147
147
  - 📖 [Docs](https://clishop.ai/docs)
148
148
  - 💬 [Discord](https://discord.gg/vwXMbzD4bx)
149
149
  - 🏪 [Dark Store template](https://github.com/DavooxBv2/CLISHOP-DARKSTORE)
150
- - 📦 [npm](https://www.npmjs.com/package/clishop)
150
+ - 📦 [npm](https://www.npmjs.com/package/clishop)
@@ -1,8 +0,0 @@
1
- {
2
- "mcpServers": {
3
- "clishop": {
4
- "command": "npx",
5
- "args": ["-y", "clishop", "--mcp"]
6
- }
7
- }
8
- }