clishop 1.5.1 → 1.5.2

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.
Files changed (2) hide show
  1. package/dist/index.js +16 -15
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -816,9 +816,6 @@ function divider(color = chalk4.cyan) {
816
816
  function writeJson(payload) {
817
817
  process.stdout.write(JSON.stringify(payload, null, 2) + "\n");
818
818
  }
819
- function isInteractiveSession() {
820
- return Boolean(process.stdin.isTTY && process.stdout.isTTY);
821
- }
822
819
  function isLikelyEmail(value) {
823
820
  return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value.trim());
824
821
  }
@@ -846,6 +843,16 @@ function printSetupLink(message, setupUrl) {
846
843
  console.log(" " + setupUrl);
847
844
  console.log();
848
845
  }
846
+ function printSetupEmailInstructions() {
847
+ console.log(chalk4.yellow(" Email is required to start setup."));
848
+ console.log();
849
+ console.log(chalk4.dim(" Human-friendly:"));
850
+ console.log(chalk4.white(" clishop setup user@example.com"));
851
+ console.log();
852
+ console.log(chalk4.dim(" Agent-safe JSON:"));
853
+ console.log(chalk4.white(" clishop setup start --email user@example.com --json"));
854
+ console.log();
855
+ }
849
856
  function printSetupStartResult(result) {
850
857
  console.log();
851
858
  console.log(chalk4.bold(" Setup session created."));
@@ -1095,8 +1102,8 @@ async function runSetupWizard(emailArg, { json = false } = {}) {
1095
1102
  console.log();
1096
1103
  console.log(chalk4.bold.cyan(" W E L C O M E T O C L I S H O P"));
1097
1104
  console.log(chalk4.dim(" Order anything from your terminal."));
1098
- console.log(chalk4.dim(` npm: v${"1.5.1"}`));
1099
- console.log(chalk4.dim(` Build: ${"2026-04-04T20:33:18.769Z"}`));
1105
+ console.log(chalk4.dim(` npm: v${"1.5.2"}`));
1106
+ console.log(chalk4.dim(` Build: ${"2026-04-04T20:51:01.276Z"}`));
1100
1107
  console.log();
1101
1108
  divider(chalk4.cyan);
1102
1109
  console.log();
@@ -1110,15 +1117,9 @@ async function runSetupWizard(emailArg, { json = false } = {}) {
1110
1117
  console.log();
1111
1118
  let email = emailArg?.trim();
1112
1119
  if (!email) {
1113
- if (!isInteractiveSession()) {
1114
- console.error(chalk4.red("\n\u2717 Email is required in non-interactive mode. Use: clishop setup start --email <email> --json\n"));
1115
- process.exitCode = 1;
1116
- return;
1117
- }
1118
- const answers = await inquirer3.prompt([
1119
- { type: "input", name: "email", message: "Email:" }
1120
- ]);
1121
- email = answers.email?.trim();
1120
+ printSetupEmailInstructions();
1121
+ process.exitCode = 1;
1122
+ return;
1122
1123
  }
1123
1124
  if (!email || !isLikelyEmail(email)) {
1124
1125
  console.error(chalk4.red("\n\u2717 A valid email address is required.\n"));
@@ -4290,7 +4291,7 @@ function registerDoctorCommand(program2) {
4290
4291
 
4291
4292
  // src/index.ts
4292
4293
  var program = new Command();
4293
- program.name("clishop").version("1.5.1").description(
4294
+ program.name("clishop").version("1.5.2").description(
4294
4295
  chalk16.bold("CLISHOP") + ` \u2014 Order anything from your terminal.
4295
4296
 
4296
4297
  Run 'clishop setup' for the human-friendly flow, or
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clishop",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "mcpName": "io.github.StefDCL/clishop",
5
5
  "description": "CLISHOP — Order anything from your terminal",
6
6
  "main": "dist/index.js",