@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.
@@ -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: Enable in Claude Code\n'));
76
- console.log(chalk_1.default.yellow(' ⚠️ This is a Claude Code command, NOT a terminal command!\n'));
77
- console.log(chalk_1.default.gray(' 1. Open Claude Code (the AI chat in VS Code or terminal)'));
78
- console.log(chalk_1.default.gray(' 2. Type or paste this command in the chat:\n'));
79
- // Box around the command for easy copying
80
- const command = '/mcp add codebakers npx -y @codebakers/cli serve';
81
- console.log(chalk_1.default.cyan(' ┌─────────────────────────────────────────────────────┐'));
82
- console.log(chalk_1.default.cyan(' ') + chalk_1.default.white(command) + chalk_1.default.cyan(''));
83
- console.log(chalk_1.default.cyan(' └─────────────────────────────────────────────────────┘\n'));
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 in Claude Code chat:\n'));
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codebakers/cli",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "CodeBakers CLI - Production patterns for AI-assisted development",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -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: Enable in Claude Code\n'));
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
- // Box around the command for easy copying
88
- const command = '/mcp add codebakers npx -y @codebakers/cli serve';
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.gray(' This only needs to be done once. No restart needed!\n'));
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 in Claude Code chat:\n'));
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'));