@codebakers/cli 1.1.9 → 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.
- package/dist/commands/setup.js +17 -12
- package/package.json +1 -1
- package/src/commands/setup.ts +19 -13
package/dist/commands/setup.js
CHANGED
|
@@ -72,22 +72,27 @@ async function setup() {
|
|
|
72
72
|
showFinalInstructions();
|
|
73
73
|
}
|
|
74
74
|
function showFinalInstructions() {
|
|
75
|
-
console.log(chalk_1.default.white(' Step 2: Add MCP Server\n'));
|
|
76
|
-
// Detect platform
|
|
77
75
|
const isWindows = process.platform === 'win32';
|
|
78
|
-
console.log(chalk_1.default.
|
|
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'));
|
|
79
81
|
const terminalCmd = isWindows
|
|
80
82
|
? 'claude mcp add --transport stdio codebakers -- cmd /c npx -y @codebakers/cli serve'
|
|
81
83
|
: 'claude mcp add --transport stdio codebakers -- npx -y @codebakers/cli serve';
|
|
82
|
-
console.log(chalk_1.default.
|
|
83
|
-
console.log(chalk_1.default.gray('
|
|
84
|
-
console.log(chalk_1.default.
|
|
85
|
-
console.log(chalk_1.default.
|
|
86
|
-
console.log(chalk_1.default.white('
|
|
87
|
-
console.log(chalk_1.default.gray(' •
|
|
88
|
-
console.log(chalk_1.default.gray('
|
|
89
|
-
console.log(chalk_1.default.
|
|
90
|
-
console.log(chalk_1.default.white('
|
|
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'));
|
|
91
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'));
|
|
92
97
|
console.log(chalk_1.default.gray(' Need help? https://codebakers.ai/docs\n'));
|
|
93
98
|
}
|
package/package.json
CHANGED
package/src/commands/setup.ts
CHANGED
|
@@ -79,30 +79,36 @@ export async function setup(): Promise<void> {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
function showFinalInstructions(): void {
|
|
82
|
-
console.log(chalk.white(' Step 2: Add MCP Server\n'));
|
|
83
|
-
|
|
84
|
-
// Detect platform
|
|
85
82
|
const isWindows = process.platform === 'win32';
|
|
86
83
|
|
|
87
|
-
console.log(chalk.
|
|
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'));
|
|
88
90
|
|
|
89
91
|
const terminalCmd = isWindows
|
|
90
92
|
? 'claude mcp add --transport stdio codebakers -- cmd /c npx -y @codebakers/cli serve'
|
|
91
93
|
: 'claude mcp add --transport stdio codebakers -- npx -y @codebakers/cli serve';
|
|
92
94
|
|
|
93
|
-
console.log(chalk.
|
|
95
|
+
console.log(chalk.bgBlue.white('\n ' + terminalCmd + ' \n'));
|
|
94
96
|
|
|
95
|
-
console.log(chalk.gray('
|
|
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'));
|
|
96
103
|
|
|
97
|
-
console.log(chalk.blue('
|
|
98
|
-
console.log(chalk.
|
|
99
|
-
console.log(chalk.
|
|
100
|
-
console.log(chalk.gray(' • Claude will have access to 34 production patterns'));
|
|
101
|
-
console.log(chalk.gray(' • Patterns are fetched on-demand (never stored locally)'));
|
|
102
|
-
console.log(chalk.gray(' • Works across all your projects\n'));
|
|
104
|
+
console.log(chalk.blue(' ══════════════════════════════════════════════════════════'));
|
|
105
|
+
console.log(chalk.white.bold('\n STEP 3: Test it!\n'));
|
|
106
|
+
console.log(chalk.blue(' ══════════════════════════════════════════════════════════\n'));
|
|
103
107
|
|
|
104
|
-
console.log(chalk.white('
|
|
108
|
+
console.log(chalk.white(' After restarting Claude Code, try this prompt:\n'));
|
|
105
109
|
console.log(chalk.cyan(' "Build a login form with email validation"\n'));
|
|
106
110
|
|
|
111
|
+
console.log(chalk.gray(' Claude will now use CodeBakers patterns automatically.\n'));
|
|
112
|
+
|
|
107
113
|
console.log(chalk.gray(' Need help? https://codebakers.ai/docs\n'));
|
|
108
114
|
}
|