@tasksai/install 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tasksai/install",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Shared TasksAI MCP installer CLI",
5
5
  "type": "module",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -9,7 +9,7 @@ import readline from "node:readline/promises";
9
9
  import { spawnSync } from "node:child_process";
10
10
  import { stdin as input, stdout as output } from "node:process";
11
11
 
12
- const INSTALLER_VERSION = "0.1.0";
12
+ const INSTALLER_VERSION = "0.1.1";
13
13
  const DEFAULT_SOURCES = {
14
14
  lawtasksai: "https://github.com/laudoluxDev/lawtasksai-mcp",
15
15
  priorauthai: "https://github.com/laudoluxDev/priorauthai-mcp"
@@ -349,10 +349,6 @@ async function resolveLicenseKey(options, vertical, installDir) {
349
349
  }
350
350
  }
351
351
 
352
- if (!process.stdin.isTTY) {
353
- throw new Error(`No license key found. Set TASKSAI_LICENSE_KEY before installing ${vertical.display_name}.`);
354
- }
355
-
356
352
  if (options.auth === "browser" && !process.env.TASKSAI_DISABLE_BROWSER_AUTH) {
357
353
  try {
358
354
  const browserKey = await resolveLicenseKeyWithBrowser(vertical, options);
@@ -363,6 +359,10 @@ async function resolveLicenseKey(options, vertical, installDir) {
363
359
  }
364
360
  }
365
361
 
362
+ if (!process.stdin.isTTY) {
363
+ throw new Error(`No license key found. Set TASKSAI_LICENSE_KEY or use browser approval before installing ${vertical.display_name}.`);
364
+ }
365
+
366
366
  const rl = readline.createInterface({ input, output });
367
367
  try {
368
368
  const answer = await rl.question(`Enter your ${vertical.display_name} license key: `);