@tasksai/install 0.1.0 → 0.1.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.
- package/package.json +4 -2
- package/src/index.js +7 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tasksai/install",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Shared TasksAI MCP installer CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -14,7 +14,9 @@
|
|
|
14
14
|
"mcp",
|
|
15
15
|
"installer",
|
|
16
16
|
"tasksai",
|
|
17
|
-
"lawtasksai"
|
|
17
|
+
"lawtasksai",
|
|
18
|
+
"farmertasksai",
|
|
19
|
+
"farmer"
|
|
18
20
|
],
|
|
19
21
|
"license": "UNLICENSED",
|
|
20
22
|
"repository": {
|
package/src/index.js
CHANGED
|
@@ -9,10 +9,10 @@ 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.
|
|
12
|
+
const INSTALLER_VERSION = "0.1.2";
|
|
13
13
|
const DEFAULT_SOURCES = {
|
|
14
14
|
lawtasksai: "https://github.com/laudoluxDev/lawtasksai-mcp",
|
|
15
|
-
|
|
15
|
+
farmer: "https://github.com/laudoluxDev/farmertasksai-mcp"
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
const CLIENTS = {
|
|
@@ -133,6 +133,7 @@ function printUsage() {
|
|
|
133
133
|
|
|
134
134
|
Examples:
|
|
135
135
|
tasksai-install lawtasksai --source https://github.com/laudoluxDev/lawtasksai-mcp
|
|
136
|
+
tasksai-install farmer --source https://github.com/laudoluxDev/farmertasksai-mcp
|
|
136
137
|
tasksai-install lawtasksai doctor
|
|
137
138
|
`);
|
|
138
139
|
}
|
|
@@ -349,10 +350,6 @@ async function resolveLicenseKey(options, vertical, installDir) {
|
|
|
349
350
|
}
|
|
350
351
|
}
|
|
351
352
|
|
|
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
353
|
if (options.auth === "browser" && !process.env.TASKSAI_DISABLE_BROWSER_AUTH) {
|
|
357
354
|
try {
|
|
358
355
|
const browserKey = await resolveLicenseKeyWithBrowser(vertical, options);
|
|
@@ -363,6 +360,10 @@ async function resolveLicenseKey(options, vertical, installDir) {
|
|
|
363
360
|
}
|
|
364
361
|
}
|
|
365
362
|
|
|
363
|
+
if (!process.stdin.isTTY) {
|
|
364
|
+
throw new Error(`No license key found. Set TASKSAI_LICENSE_KEY or use browser approval before installing ${vertical.display_name}.`);
|
|
365
|
+
}
|
|
366
|
+
|
|
366
367
|
const rl = readline.createInterface({ input, output });
|
|
367
368
|
try {
|
|
368
369
|
const answer = await rl.question(`Enter your ${vertical.display_name} license key: `);
|