@mkterswingman/yt-mcp 0.3.3 → 0.3.4
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 +1 -1
- package/scripts/postinstall-hint.mjs +13 -18
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Post-install:
|
|
5
|
-
*
|
|
4
|
+
* Post-install: show a prominent setup hint for first-time users.
|
|
5
|
+
* Cannot auto-run setup because npm strips TTY from postinstall scripts.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { existsSync } from "node:fs";
|
|
9
9
|
import { join } from "node:path";
|
|
10
|
-
import { execFileSync } from "node:child_process";
|
|
11
10
|
|
|
12
11
|
const home = process.env.HOME || process.env.USERPROFILE || "";
|
|
13
12
|
const authFile = join(home, ".yt-mcp", "auth.json");
|
|
@@ -17,18 +16,14 @@ if (existsSync(authFile)) {
|
|
|
17
16
|
process.exit(0);
|
|
18
17
|
}
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
console.log("
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
});
|
|
32
|
-
} catch {
|
|
33
|
-
console.log("\n Setup interrupted. Run later: yt-mcp setup\n");
|
|
34
|
-
}
|
|
19
|
+
console.log("");
|
|
20
|
+
console.log(" ╔═══════════════════════════════════════════╗");
|
|
21
|
+
console.log(" ║ ║");
|
|
22
|
+
console.log(" ║ yt-mcp installed successfully! 🎉 ║");
|
|
23
|
+
console.log(" ║ ║");
|
|
24
|
+
console.log(" ║ Run this to get started: ║");
|
|
25
|
+
console.log(" ║ ║");
|
|
26
|
+
console.log(" ║ yt-mcp setup ║");
|
|
27
|
+
console.log(" ║ ║");
|
|
28
|
+
console.log(" ╚═══════════════════════════════════════════╝");
|
|
29
|
+
console.log("");
|