@codebakers/cli 1.1.8 → 1.2.0

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,23 +72,27 @@ 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'));
85
- console.log(chalk_1.default.blue(' ══════════════════════════════════════\n'));
86
- 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'));
88
- console.log(chalk_1.default.gray(' • Claude will have access to 34 production patterns'));
89
- console.log(chalk_1.default.gray(' • Patterns are fetched on-demand (never stored locally)'));
90
- console.log(chalk_1.default.gray(' • Works across all your projects\n'));
91
- console.log(chalk_1.default.white(' Example prompt to try:\n'));
75
+ const isWindows = process.platform === 'win32';
76
+ console.log(chalk_1.default.green('\n API key saved!\n'));
77
+ console.log(chalk_1.default.blue(' ══════════════════════════════════════════════════════════'));
78
+ console.log(chalk_1.default.white.bold('\n STEP 2: Connect CodeBakers to Claude\n'));
79
+ console.log(chalk_1.default.blue(' ══════════════════════════════════════════════════════════\n'));
80
+ console.log(chalk_1.default.white(' Open a NEW terminal window and run this command:\n'));
81
+ const terminalCmd = isWindows
82
+ ? 'claude mcp add --transport stdio codebakers -- cmd /c npx -y @codebakers/cli serve'
83
+ : 'claude mcp add --transport stdio codebakers -- npx -y @codebakers/cli serve';
84
+ console.log(chalk_1.default.bgBlue.white('\n ' + terminalCmd + ' \n'));
85
+ console.log(chalk_1.default.gray('\n ┌─────────────────────────────────────────────────────────┐'));
86
+ console.log(chalk_1.default.gray(' │') + chalk_1.default.yellow(' ⚠️ IMPORTANT: ') + chalk_1.default.gray('│'));
87
+ console.log(chalk_1.default.gray(' │') + chalk_1.default.white(' Run this in a TERMINAL, not in Claude Code chat ') + chalk_1.default.gray('│'));
88
+ console.log(chalk_1.default.gray(' │') + chalk_1.default.white(' You only need to do this ONCE ') + chalk_1.default.gray('│'));
89
+ console.log(chalk_1.default.gray(' │') + chalk_1.default.white(' After running, restart Claude Code ') + chalk_1.default.gray('│'));
90
+ console.log(chalk_1.default.gray(' └─────────────────────────────────────────────────────────┘\n'));
91
+ console.log(chalk_1.default.blue(' ══════════════════════════════════════════════════════════'));
92
+ console.log(chalk_1.default.white.bold('\n STEP 3: Test it!\n'));
93
+ console.log(chalk_1.default.blue(' ══════════════════════════════════════════════════════════\n'));
94
+ console.log(chalk_1.default.white(' After restarting Claude Code, try this prompt:\n'));
92
95
  console.log(chalk_1.default.cyan(' "Build a login form with email validation"\n'));
96
+ console.log(chalk_1.default.gray(' Claude will now use CodeBakers patterns automatically.\n'));
93
97
  console.log(chalk_1.default.gray(' Need help? https://codebakers.ai/docs\n'));
94
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codebakers/cli",
3
- "version": "1.1.8",
3
+ "version": "1.2.0",
4
4
  "description": "CodeBakers CLI - Production patterns for AI-assisted development",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -79,28 +79,36 @@ 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'));
86
-
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'));
92
-
93
- console.log(chalk.gray(' This only needs to be done once. No restart needed!\n'));
94
-
95
- console.log(chalk.blue(' ══════════════════════════════════════\n'));
96
- console.log(chalk.green(' Almost done! 🎉\n'));
97
- console.log(chalk.white(' After running that command in Claude Code chat:\n'));
98
- console.log(chalk.gray(' Claude will have access to 34 production patterns'));
99
- console.log(chalk.gray(' • Patterns are fetched on-demand (never stored locally)'));
100
- console.log(chalk.gray(' • Works across all your projects\n'));
101
-
102
- console.log(chalk.white(' Example prompt to try:\n'));
82
+ const isWindows = process.platform === 'win32';
83
+
84
+ console.log(chalk.green('\n API key saved!\n'));
85
+ console.log(chalk.blue(' ══════════════════════════════════════════════════════════'));
86
+ console.log(chalk.white.bold('\n STEP 2: Connect CodeBakers to Claude\n'));
87
+ console.log(chalk.blue(' ══════════════════════════════════════════════════════════\n'));
88
+
89
+ console.log(chalk.white(' Open a NEW terminal window and run this command:\n'));
90
+
91
+ const terminalCmd = isWindows
92
+ ? 'claude mcp add --transport stdio codebakers -- cmd /c npx -y @codebakers/cli serve'
93
+ : 'claude mcp add --transport stdio codebakers -- npx -y @codebakers/cli serve';
94
+
95
+ console.log(chalk.bgBlue.white('\n ' + terminalCmd + ' \n'));
96
+
97
+ console.log(chalk.gray('\n ┌─────────────────────────────────────────────────────────┐'));
98
+ console.log(chalk.gray(' │') + chalk.yellow(' ⚠️ IMPORTANT: ') + chalk.gray('│'));
99
+ console.log(chalk.gray(' │') + chalk.white(' Run this in a TERMINAL, not in Claude Code chat ') + chalk.gray('│'));
100
+ console.log(chalk.gray(' │') + chalk.white(' You only need to do this ONCE ') + chalk.gray('│'));
101
+ console.log(chalk.gray(' │') + chalk.white(' • After running, restart Claude Code ') + chalk.gray('│'));
102
+ console.log(chalk.gray(' └─────────────────────────────────────────────────────────┘\n'));
103
+
104
+ console.log(chalk.blue(' ══════════════════════════════════════════════════════════'));
105
+ console.log(chalk.white.bold('\n STEP 3: Test it!\n'));
106
+ console.log(chalk.blue(' ══════════════════════════════════════════════════════════\n'));
107
+
108
+ console.log(chalk.white(' After restarting Claude Code, try this prompt:\n'));
103
109
  console.log(chalk.cyan(' "Build a login form with email validation"\n'));
104
110
 
111
+ console.log(chalk.gray(' Claude will now use CodeBakers patterns automatically.\n'));
112
+
105
113
  console.log(chalk.gray(' Need help? https://codebakers.ai/docs\n'));
106
114
  }