@codebakers/cli 1.4.2 → 1.4.3
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/install-hook.js +5 -2
- package/dist/commands/mcp-config.js +5 -3
- package/dist/commands/setup.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -3
- package/src/commands/install-hook.ts +5 -2
- package/src/commands/mcp-config.ts +5 -3
- package/src/commands/setup.ts +1 -1
- package/src/index.ts +1 -1
|
@@ -100,7 +100,9 @@ async function installHook() {
|
|
|
100
100
|
console.log(chalk_1.default.gray(' ✓ Pre-flight checks before writing code'));
|
|
101
101
|
console.log(chalk_1.default.gray(' ✓ Self-review reminders after code changes'));
|
|
102
102
|
console.log(chalk_1.default.gray(' ✓ Pattern-based development from .claude/ folder\n'));
|
|
103
|
-
console.log(chalk_1.default.yellow(' ⚠️
|
|
103
|
+
console.log(chalk_1.default.yellow(' ⚠️ Next step: Restart required\n'));
|
|
104
|
+
console.log(chalk_1.default.white(' Close this terminal and open a new one in your project folder.\n'));
|
|
105
|
+
console.log(chalk_1.default.gray(' Then just start chatting - CodeBakers is now active!\n'));
|
|
104
106
|
}
|
|
105
107
|
catch (error) {
|
|
106
108
|
spinner.fail('Hook installation failed');
|
|
@@ -139,7 +141,8 @@ async function uninstallHook() {
|
|
|
139
141
|
}
|
|
140
142
|
(0, fs_1.writeFileSync)(settingsPath, JSON.stringify(settings, null, 2));
|
|
141
143
|
spinner.succeed('Hook removed successfully!');
|
|
142
|
-
console.log(chalk_1.default.yellow('\n ⚠️
|
|
144
|
+
console.log(chalk_1.default.yellow('\n ⚠️ Next step: Restart required\n'));
|
|
145
|
+
console.log(chalk_1.default.white(' Close this terminal and open a new one in your project folder.\n'));
|
|
143
146
|
}
|
|
144
147
|
catch (error) {
|
|
145
148
|
spinner.fail('Hook removal failed');
|
|
@@ -132,8 +132,9 @@ function installGlobalConfig() {
|
|
|
132
132
|
console.log(chalk_1.default.green(' MCP configuration installed!\n'));
|
|
133
133
|
console.log(chalk_1.default.gray(' Config written to:'));
|
|
134
134
|
console.log(chalk_1.default.cyan(` ${configPath}\n`));
|
|
135
|
-
console.log(chalk_1.default.
|
|
136
|
-
console.log(chalk_1.default.
|
|
135
|
+
console.log(chalk_1.default.yellow(' ⚠️ Next step: Restart required\n'));
|
|
136
|
+
console.log(chalk_1.default.white(' Close this terminal and open a new one in your project folder.\n'));
|
|
137
|
+
console.log(chalk_1.default.gray(' Then the MCP server will be active!\n'));
|
|
137
138
|
}
|
|
138
139
|
catch (error) {
|
|
139
140
|
const message = error instanceof Error ? error.message : 'Unknown error';
|
|
@@ -193,7 +194,8 @@ async function mcpUninstall() {
|
|
|
193
194
|
delete config.mcpServers.codebakers;
|
|
194
195
|
(0, fs_1.writeFileSync)(configPath, JSON.stringify(config, null, 2));
|
|
195
196
|
console.log(chalk_1.default.green(' Removed from global config.\n'));
|
|
196
|
-
console.log(chalk_1.default.
|
|
197
|
+
console.log(chalk_1.default.yellow(' ⚠️ Next step: Restart required\n'));
|
|
198
|
+
console.log(chalk_1.default.white(' Close this terminal and open a new one in your project folder.\n'));
|
|
197
199
|
}
|
|
198
200
|
else {
|
|
199
201
|
console.log(chalk_1.default.gray(' CodeBakers not found in global config.\n'));
|
package/dist/commands/setup.js
CHANGED
|
@@ -96,7 +96,7 @@ function showFinalInstructions() {
|
|
|
96
96
|
console.log(chalk_1.default.yellow(' ⚠️ Could not auto-install MCP server.\n'));
|
|
97
97
|
console.log(chalk_1.default.white(' Run this command manually in your terminal:\n'));
|
|
98
98
|
console.log(chalk_1.default.bgBlue.white('\n ' + mcpCmd + ' \n'));
|
|
99
|
-
console.log(chalk_1.default.
|
|
99
|
+
console.log(chalk_1.default.yellow('\n ⚠️ Then close this terminal and open a new one in your project.\n'));
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
102
102
|
}
|
package/dist/index.js
CHANGED
|
@@ -53,7 +53,7 @@ const program = new commander_1.Command();
|
|
|
53
53
|
program
|
|
54
54
|
.name('codebakers')
|
|
55
55
|
.description('CodeBakers CLI - Production patterns for AI-assisted development')
|
|
56
|
-
.version('1.4.
|
|
56
|
+
.version('1.4.3');
|
|
57
57
|
// Primary command - one-time setup
|
|
58
58
|
program
|
|
59
59
|
.command('setup')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codebakers/cli",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"description": "CodeBakers CLI - Production patterns for AI-assisted development",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -29,8 +29,7 @@
|
|
|
29
29
|
"chalk": "^5.3.0",
|
|
30
30
|
"commander": "^12.1.0",
|
|
31
31
|
"conf": "^13.0.1",
|
|
32
|
-
"ora": "^8.1.1"
|
|
33
|
-
"openai": "^4.77.0"
|
|
32
|
+
"ora": "^8.1.1"
|
|
34
33
|
},
|
|
35
34
|
"devDependencies": {
|
|
36
35
|
"@types/node": "^20.10.0",
|
|
@@ -106,7 +106,9 @@ export async function installHook(): Promise<void> {
|
|
|
106
106
|
console.log(chalk.gray(' ✓ Self-review reminders after code changes'));
|
|
107
107
|
console.log(chalk.gray(' ✓ Pattern-based development from .claude/ folder\n'));
|
|
108
108
|
|
|
109
|
-
console.log(chalk.yellow(' ⚠️
|
|
109
|
+
console.log(chalk.yellow(' ⚠️ Next step: Restart required\n'));
|
|
110
|
+
console.log(chalk.white(' Close this terminal and open a new one in your project folder.\n'));
|
|
111
|
+
console.log(chalk.gray(' Then just start chatting - CodeBakers is now active!\n'));
|
|
110
112
|
} catch (error) {
|
|
111
113
|
spinner.fail('Hook installation failed');
|
|
112
114
|
const message = error instanceof Error ? error.message : 'Unknown error';
|
|
@@ -154,7 +156,8 @@ export async function uninstallHook(): Promise<void> {
|
|
|
154
156
|
writeFileSync(settingsPath, JSON.stringify(settings, null, 2));
|
|
155
157
|
|
|
156
158
|
spinner.succeed('Hook removed successfully!');
|
|
157
|
-
console.log(chalk.yellow('\n ⚠️
|
|
159
|
+
console.log(chalk.yellow('\n ⚠️ Next step: Restart required\n'));
|
|
160
|
+
console.log(chalk.white(' Close this terminal and open a new one in your project folder.\n'));
|
|
158
161
|
} catch (error) {
|
|
159
162
|
spinner.fail('Hook removal failed');
|
|
160
163
|
const message = error instanceof Error ? error.message : 'Unknown error';
|
|
@@ -158,8 +158,9 @@ function installGlobalConfig(): void {
|
|
|
158
158
|
console.log(chalk.green(' MCP configuration installed!\n'));
|
|
159
159
|
console.log(chalk.gray(' Config written to:'));
|
|
160
160
|
console.log(chalk.cyan(` ${configPath}\n`));
|
|
161
|
-
console.log(chalk.
|
|
162
|
-
console.log(chalk.
|
|
161
|
+
console.log(chalk.yellow(' ⚠️ Next step: Restart required\n'));
|
|
162
|
+
console.log(chalk.white(' Close this terminal and open a new one in your project folder.\n'));
|
|
163
|
+
console.log(chalk.gray(' Then the MCP server will be active!\n'));
|
|
163
164
|
} catch (error) {
|
|
164
165
|
const message = error instanceof Error ? error.message : 'Unknown error';
|
|
165
166
|
console.log(chalk.red(`\n Error: ${message}\n`));
|
|
@@ -221,7 +222,8 @@ export async function mcpUninstall(): Promise<void> {
|
|
|
221
222
|
delete config.mcpServers.codebakers;
|
|
222
223
|
writeFileSync(configPath, JSON.stringify(config, null, 2));
|
|
223
224
|
console.log(chalk.green(' Removed from global config.\n'));
|
|
224
|
-
console.log(chalk.
|
|
225
|
+
console.log(chalk.yellow(' ⚠️ Next step: Restart required\n'));
|
|
226
|
+
console.log(chalk.white(' Close this terminal and open a new one in your project folder.\n'));
|
|
225
227
|
} else {
|
|
226
228
|
console.log(chalk.gray(' CodeBakers not found in global config.\n'));
|
|
227
229
|
console.log(chalk.gray(' To remove from Claude Code, run:\n'));
|
package/src/commands/setup.ts
CHANGED
|
@@ -104,7 +104,7 @@ function showFinalInstructions(): void {
|
|
|
104
104
|
console.log(chalk.yellow(' ⚠️ Could not auto-install MCP server.\n'));
|
|
105
105
|
console.log(chalk.white(' Run this command manually in your terminal:\n'));
|
|
106
106
|
console.log(chalk.bgBlue.white('\n ' + mcpCmd + ' \n'));
|
|
107
|
-
console.log(chalk.
|
|
107
|
+
console.log(chalk.yellow('\n ⚠️ Then close this terminal and open a new one in your project.\n'));
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
110
|
}
|
package/src/index.ts
CHANGED