@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.
- package/dist/commands/setup.js +21 -17
- package/package.json +1 -1
- package/src/commands/setup.ts +29 -21
package/dist/commands/setup.js
CHANGED
|
@@ -72,23 +72,27 @@ async function setup() {
|
|
|
72
72
|
showFinalInstructions();
|
|
73
73
|
}
|
|
74
74
|
function showFinalInstructions() {
|
|
75
|
-
|
|
76
|
-
console.log(chalk_1.default.
|
|
77
|
-
console.log(chalk_1.default.
|
|
78
|
-
console.log(chalk_1.default.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
console.log(chalk_1.default.
|
|
85
|
-
console.log(chalk_1.default.
|
|
86
|
-
console.log(chalk_1.default.
|
|
87
|
-
console.log(chalk_1.default.white('
|
|
88
|
-
console.log(chalk_1.default.gray(' •
|
|
89
|
-
console.log(chalk_1.default.gray(' •
|
|
90
|
-
console.log(chalk_1.default.gray('
|
|
91
|
-
console.log(chalk_1.default.
|
|
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
package/src/commands/setup.ts
CHANGED
|
@@ -79,28 +79,36 @@ export async function setup(): Promise<void> {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
function showFinalInstructions(): void {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
console.log(chalk.
|
|
85
|
-
console.log(chalk.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
console.log(chalk.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
console.log(chalk.
|
|
96
|
-
|
|
97
|
-
console.log(chalk.
|
|
98
|
-
console.log(chalk.gray('
|
|
99
|
-
console.log(chalk.gray(' •
|
|
100
|
-
console.log(chalk.gray(' •
|
|
101
|
-
|
|
102
|
-
console.log(chalk.
|
|
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
|
}
|