@insforge/install 0.0.40 → 0.0.41
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/dist/index.js +18 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13,7 +13,17 @@ import {
|
|
|
13
13
|
import { hideBin } from "yargs/helpers";
|
|
14
14
|
|
|
15
15
|
import pc from "picocolors";
|
|
16
|
-
var { green, red, yellow } = pc;
|
|
16
|
+
var { green, red, yellow, cyan } = pc;
|
|
17
|
+
|
|
18
|
+
// Section header helper
|
|
19
|
+
const LINE = '━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━';
|
|
20
|
+
function printHeader(text) {
|
|
21
|
+
console.log();
|
|
22
|
+
console.log(LINE);
|
|
23
|
+
console.log(` ${text}`);
|
|
24
|
+
console.log(LINE);
|
|
25
|
+
console.log();
|
|
26
|
+
}
|
|
17
27
|
|
|
18
28
|
// ASCII art logo for InsForge
|
|
19
29
|
const INSFORGE_LOGO = `
|
|
@@ -88,6 +98,10 @@ import {
|
|
|
88
98
|
const name = "insforge";
|
|
89
99
|
const mcpVersion = argv.dev ? "@insforge/mcp@dev" : "@insforge/mcp@latest";
|
|
90
100
|
try {
|
|
101
|
+
printHeader('InsForge MCP Installer');
|
|
102
|
+
logger.info(`Setting up MCP for ${cyan(argv.client)}...`);
|
|
103
|
+
|
|
104
|
+
printHeader(`Configuring ${argv.client}`);
|
|
91
105
|
const config = readConfig(argv.client);
|
|
92
106
|
|
|
93
107
|
// Handle different config structures for different clients
|
|
@@ -274,10 +288,12 @@ alwaysApply: true
|
|
|
274
288
|
}
|
|
275
289
|
}
|
|
276
290
|
|
|
291
|
+
printHeader('Setup Complete!');
|
|
292
|
+
|
|
277
293
|
if (argv.dev) {
|
|
278
294
|
printPostInstallMessage();
|
|
279
295
|
} else {
|
|
280
|
-
logger.
|
|
296
|
+
logger.success(`InsForge MCP configured for ${argv.client}`);
|
|
281
297
|
}
|
|
282
298
|
} catch (e) {
|
|
283
299
|
logger.error(red(e.message));
|