clishop 1.5.0 → 1.5.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/README.md CHANGED
@@ -74,13 +74,37 @@ npm link
74
74
 
75
75
  ## Quick Start
76
76
 
77
- You can create your account on [clishop.ai](https://clishop.ai) or do everything from the CLI:
77
+ You can create your account on [clishop.ai](https://clishop.ai) or do everything from the CLI.
78
+
79
+ ### Human-friendly setup
78
80
 
79
81
  ```bash
80
82
  clishop setup
81
83
  ```
82
84
 
83
- The setup wizard walks you through creating an account, adding an address, and linking a payment method. After that:
85
+ This starts the interactive setup flow, creates a resumable setup session, shows a secure payment link, and waits for completion.
86
+
87
+ ### Agent-safe setup
88
+
89
+ For OpenClaw, MCP clients, Claude-style shells, and other tool runners, use the explicit setup session commands instead of scraping terminal output:
90
+
91
+ ```bash
92
+ clishop setup start --email user@example.com --json
93
+ clishop setup status --setup-id <setup_id> --json
94
+ clishop setup wait --setup-id <setup_id> --timeout 300 --json
95
+ clishop setup cancel --setup-id <setup_id> --json
96
+ ```
97
+
98
+ `setup start` returns immediately with:
99
+
100
+ - `setup_id`: the resumable setup session handle for the agent
101
+ - `setup_url`: the link the human must open in a browser
102
+ - `expires_at`: when the session expires
103
+ - `poll_after_seconds`: suggested polling interval
104
+
105
+ The agent sends `setup_url` to the human and keeps `setup_id` locally for `status`, `wait`, or `cancel`.
106
+
107
+ After setup is complete, add a shipping address and start ordering:
84
108
 
85
109
  ```
86
110
  $ clishop search "wireless headphones"
@@ -179,6 +203,11 @@ clishop-mcp # If installed globally
179
203
  npx -y clishop --mcp # Without installing
180
204
  ```
181
205
 
206
+ The MCP onboarding tools now follow the same resumable setup session model:
207
+
208
+ - `setup` starts the session and returns `setup_id` plus `setup_url`
209
+ - `setup_status` checks progress and finalizes auth when setup is complete
210
+
182
211
  See the [MCP setup guides](https://clishop.ai/docs#mcp-overview) for VS Code, Claude Desktop, Cursor, and Windsurf configuration.
183
212
 
184
213
  ---
package/dist/index.js CHANGED
@@ -55,6 +55,7 @@ function registerAuthCommands(program2) {
55
55
  program2.command("whoami").description("Show the currently logged-in user").action(async () => {
56
56
  if (!await isLoggedIn()) {
57
57
  console.log(chalk.yellow("Not set up yet. Run: clishop setup"));
58
+ console.log(chalk.dim("For agent runners, use: clishop setup start --email <email> --json"));
58
59
  return;
59
60
  }
60
61
  const user = await getUserInfo();
@@ -1094,8 +1095,8 @@ async function runSetupWizard(emailArg, { json = false } = {}) {
1094
1095
  console.log();
1095
1096
  console.log(chalk4.bold.cyan(" W E L C O M E T O C L I S H O P"));
1096
1097
  console.log(chalk4.dim(" Order anything from your terminal."));
1097
- console.log(chalk4.dim(` npm: v${"1.5.0"}`));
1098
- console.log(chalk4.dim(` Build: ${"2026-04-04T19:19:52.565Z"}`));
1098
+ console.log(chalk4.dim(` npm: v${"1.5.1"}`));
1099
+ console.log(chalk4.dim(` Build: ${"2026-04-04T20:33:18.769Z"}`));
1099
1100
  console.log();
1100
1101
  divider(chalk4.cyan);
1101
1102
  console.log();
@@ -3171,6 +3172,7 @@ function registerStatusCommand(program2) {
3171
3172
  try {
3172
3173
  if (!await isLoggedIn()) {
3173
3174
  console.log(chalk11.yellow("\nNot set up yet. Run: clishop setup\n"));
3175
+ console.log(chalk11.dim("For agent runners, use: clishop setup start --email <email> --json\n"));
3174
3176
  return;
3175
3177
  }
3176
3178
  const spinner = ora8("Fetching account overview...").start();
@@ -4288,10 +4290,11 @@ function registerDoctorCommand(program2) {
4288
4290
 
4289
4291
  // src/index.ts
4290
4292
  var program = new Command();
4291
- program.name("clishop").version("1.5.0").description(
4293
+ program.name("clishop").version("1.5.1").description(
4292
4294
  chalk16.bold("CLISHOP") + ` \u2014 Order anything from your terminal.
4293
4295
 
4294
- Run 'clishop setup' to get started with a single payment link.
4296
+ Run 'clishop setup' for the human-friendly flow, or
4297
+ 'clishop setup start --email <email> --json' for agent-safe setup.
4295
4298
  Use agents to set safety limits, addresses, and payment methods.
4296
4299
  The "default" agent is used when no agent is specified.`
4297
4300
  ).option("--agent <name>", "Use a specific agent for this command").hook("preAction", (thisCommand) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clishop",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "mcpName": "io.github.StefDCL/clishop",
5
5
  "description": "CLISHOP — Order anything from your terminal",
6
6
  "main": "dist/index.js",