@codebakers/cli 1.1.7 → 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 -9
- package/package.json +1 -1
- package/src/commands/setup.ts +13 -9
package/dist/commands/setup.js
CHANGED
|
@@ -72,17 +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
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
console.log(chalk_1.default.
|
|
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'));
|
|
83
84
|
console.log(chalk_1.default.blue(' ══════════════════════════════════════\n'));
|
|
84
85
|
console.log(chalk_1.default.green(' Almost done! 🎉\n'));
|
|
85
|
-
console.log(chalk_1.default.white(' After running that command
|
|
86
|
+
console.log(chalk_1.default.white(' After running that command:\n'));
|
|
86
87
|
console.log(chalk_1.default.gray(' • Claude will have access to 34 production patterns'));
|
|
87
88
|
console.log(chalk_1.default.gray(' • Patterns are fetched on-demand (never stored locally)'));
|
|
88
89
|
console.log(chalk_1.default.gray(' • Works across all your projects\n'));
|
package/package.json
CHANGED
package/src/commands/setup.ts
CHANGED
|
@@ -79,20 +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.gray(' Copy this command and paste it into Claude Code:\n'));
|
|
82
|
+
console.log(chalk.white(' Step 2: Add MCP Server\n'));
|
|
84
83
|
|
|
85
|
-
//
|
|
86
|
-
const
|
|
87
|
-
console.log(chalk.cyan(' ┌─────────────────────────────────────────────────────┐'));
|
|
88
|
-
console.log(chalk.cyan(' │ ') + chalk.white(command) + chalk.cyan(' │'));
|
|
89
|
-
console.log(chalk.cyan(' └─────────────────────────────────────────────────────┘\n'));
|
|
84
|
+
// Detect platform
|
|
85
|
+
const isWindows = process.platform === 'win32';
|
|
90
86
|
|
|
91
|
-
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'));
|
|
92
96
|
|
|
93
97
|
console.log(chalk.blue(' ══════════════════════════════════════\n'));
|
|
94
98
|
console.log(chalk.green(' Almost done! 🎉\n'));
|
|
95
|
-
console.log(chalk.white(' After running that command
|
|
99
|
+
console.log(chalk.white(' After running that command:\n'));
|
|
96
100
|
console.log(chalk.gray(' • Claude will have access to 34 production patterns'));
|
|
97
101
|
console.log(chalk.gray(' • Patterns are fetched on-demand (never stored locally)'));
|
|
98
102
|
console.log(chalk.gray(' • Works across all your projects\n'));
|