@codebakers/cli 1.1.8 → 1.1.9
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/commands/setup.js +10 -11
- package/package.json +1 -1
- package/src/commands/setup.ts +13 -11
package/dist/commands/setup.js
CHANGED
|
@@ -72,19 +72,18 @@ async function setup() {
|
|
|
72
72
|
showFinalInstructions();
|
|
73
73
|
}
|
|
74
74
|
function showFinalInstructions() {
|
|
75
|
-
console.log(chalk_1.default.white(' Step 2:
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
console.log(chalk_1.default.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
console.log(chalk_1.default.cyan('
|
|
83
|
-
console.log(chalk_1.default.
|
|
84
|
-
console.log(chalk_1.default.gray(' This only needs to be done once. No restart needed!\n'));
|
|
75
|
+
console.log(chalk_1.default.white(' Step 2: Add MCP Server\n'));
|
|
76
|
+
// Detect platform
|
|
77
|
+
const isWindows = process.platform === 'win32';
|
|
78
|
+
console.log(chalk_1.default.yellow(' Run this command in your TERMINAL:\n'));
|
|
79
|
+
const terminalCmd = isWindows
|
|
80
|
+
? 'claude mcp add --transport stdio codebakers -- cmd /c npx -y @codebakers/cli serve'
|
|
81
|
+
: 'claude mcp add --transport stdio codebakers -- npx -y @codebakers/cli serve';
|
|
82
|
+
console.log(chalk_1.default.cyan(' ' + terminalCmd + '\n'));
|
|
83
|
+
console.log(chalk_1.default.gray(' This only needs to be done once.\n'));
|
|
85
84
|
console.log(chalk_1.default.blue(' ══════════════════════════════════════\n'));
|
|
86
85
|
console.log(chalk_1.default.green(' Almost done! 🎉\n'));
|
|
87
|
-
console.log(chalk_1.default.white(' After running that command
|
|
86
|
+
console.log(chalk_1.default.white(' After running that command:\n'));
|
|
88
87
|
console.log(chalk_1.default.gray(' • Claude will have access to 34 production patterns'));
|
|
89
88
|
console.log(chalk_1.default.gray(' • Patterns are fetched on-demand (never stored locally)'));
|
|
90
89
|
console.log(chalk_1.default.gray(' • Works across all your projects\n'));
|
package/package.json
CHANGED
package/src/commands/setup.ts
CHANGED
|
@@ -79,22 +79,24 @@ export async function setup(): Promise<void> {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
function showFinalInstructions(): void {
|
|
82
|
-
console.log(chalk.white(' Step 2:
|
|
83
|
-
console.log(chalk.yellow(' ⚠️ This is a Claude Code command, NOT a terminal command!\n'));
|
|
84
|
-
console.log(chalk.gray(' 1. Open Claude Code (the AI chat in VS Code or terminal)'));
|
|
85
|
-
console.log(chalk.gray(' 2. Type or paste this command in the chat:\n'));
|
|
82
|
+
console.log(chalk.white(' Step 2: Add MCP Server\n'));
|
|
86
83
|
|
|
87
|
-
//
|
|
88
|
-
const
|
|
89
|
-
console.log(chalk.cyan(' ┌─────────────────────────────────────────────────────┐'));
|
|
90
|
-
console.log(chalk.cyan(' │ ') + chalk.white(command) + chalk.cyan(' │'));
|
|
91
|
-
console.log(chalk.cyan(' └─────────────────────────────────────────────────────┘\n'));
|
|
84
|
+
// Detect platform
|
|
85
|
+
const isWindows = process.platform === 'win32';
|
|
92
86
|
|
|
93
|
-
console.log(chalk.
|
|
87
|
+
console.log(chalk.yellow(' Run this command in your TERMINAL:\n'));
|
|
88
|
+
|
|
89
|
+
const terminalCmd = isWindows
|
|
90
|
+
? 'claude mcp add --transport stdio codebakers -- cmd /c npx -y @codebakers/cli serve'
|
|
91
|
+
: 'claude mcp add --transport stdio codebakers -- npx -y @codebakers/cli serve';
|
|
92
|
+
|
|
93
|
+
console.log(chalk.cyan(' ' + terminalCmd + '\n'));
|
|
94
|
+
|
|
95
|
+
console.log(chalk.gray(' This only needs to be done once.\n'));
|
|
94
96
|
|
|
95
97
|
console.log(chalk.blue(' ══════════════════════════════════════\n'));
|
|
96
98
|
console.log(chalk.green(' Almost done! 🎉\n'));
|
|
97
|
-
console.log(chalk.white(' After running that command
|
|
99
|
+
console.log(chalk.white(' After running that command:\n'));
|
|
98
100
|
console.log(chalk.gray(' • Claude will have access to 34 production patterns'));
|
|
99
101
|
console.log(chalk.gray(' • Patterns are fetched on-demand (never stored locally)'));
|
|
100
102
|
console.log(chalk.gray(' • Works across all your projects\n'));
|