@codebakers/cli 3.9.13 → 3.9.14
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/go.js +13 -0
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/commands/go.ts +14 -0
- package/src/index.ts +2 -2
package/dist/commands/go.js
CHANGED
|
@@ -1018,6 +1018,19 @@ async function go(options = {}) {
|
|
|
1018
1018
|
if (projectState.isSetUp) {
|
|
1019
1019
|
// Project already has CodeBakers - show context and resume
|
|
1020
1020
|
showResumeContext(projectState);
|
|
1021
|
+
// CRITICAL: Ensure .mcp.json exists for Claude Code MCP tools
|
|
1022
|
+
// This fixes the issue where existing projects set up before v3.9.14
|
|
1023
|
+
// never got .mcp.json created (it was only created in first-time setup)
|
|
1024
|
+
const mcpJsonPath = (0, path_1.join)(cwd, '.mcp.json');
|
|
1025
|
+
if (!(0, fs_1.existsSync)(mcpJsonPath)) {
|
|
1026
|
+
console.log(chalk_1.default.yellow(' ⚠️ MCP config missing - creating .mcp.json...\n'));
|
|
1027
|
+
setupClaudeCodeMCP(cwd);
|
|
1028
|
+
console.log(chalk_1.default.yellow(' ⚠️ RELOAD REQUIRED to load MCP tools\n'));
|
|
1029
|
+
console.log(chalk_1.default.white(' Claude Code needs to reload to detect the new .mcp.json file.\n'));
|
|
1030
|
+
console.log(chalk_1.default.cyan(' To reload:\n'));
|
|
1031
|
+
console.log(chalk_1.default.gray(' VS Code: ') + chalk_1.default.white('Press ') + chalk_1.default.cyan('Cmd/Ctrl+Shift+P') + chalk_1.default.white(' → type ') + chalk_1.default.cyan('"Reload Window"'));
|
|
1032
|
+
console.log(chalk_1.default.gray(' CLI: ') + chalk_1.default.white('Press ') + chalk_1.default.cyan('Ctrl+C') + chalk_1.default.white(' and run ') + chalk_1.default.cyan('claude') + chalk_1.default.white(' again\n'));
|
|
1033
|
+
}
|
|
1021
1034
|
// Verify auth is still valid
|
|
1022
1035
|
const existingApiKey = (0, config_js_1.getApiKey)();
|
|
1023
1036
|
const existingTrial = (0, config_js_1.getTrialState)();
|
package/dist/index.js
CHANGED
|
@@ -34,7 +34,7 @@ const api_js_1 = require("./lib/api.js");
|
|
|
34
34
|
// ============================================
|
|
35
35
|
// Automatic Update Notification
|
|
36
36
|
// ============================================
|
|
37
|
-
const CURRENT_VERSION = '3.9.
|
|
37
|
+
const CURRENT_VERSION = '3.9.14';
|
|
38
38
|
// Simple semver comparison: returns true if v1 > v2
|
|
39
39
|
function isNewerVersion(v1, v2) {
|
|
40
40
|
const parts1 = v1.split('.').map(Number);
|
|
@@ -210,7 +210,7 @@ const program = new commander_1.Command();
|
|
|
210
210
|
program
|
|
211
211
|
.name('codebakers')
|
|
212
212
|
.description('CodeBakers CLI - Production patterns for AI-assisted development')
|
|
213
|
-
.version('3.9.
|
|
213
|
+
.version('3.9.14');
|
|
214
214
|
// Zero-friction trial entry (no signup required)
|
|
215
215
|
program
|
|
216
216
|
.command('go')
|
package/package.json
CHANGED
package/src/commands/go.ts
CHANGED
|
@@ -1151,6 +1151,20 @@ export async function go(options: GoOptions = {}): Promise<void> {
|
|
|
1151
1151
|
// Project already has CodeBakers - show context and resume
|
|
1152
1152
|
showResumeContext(projectState);
|
|
1153
1153
|
|
|
1154
|
+
// CRITICAL: Ensure .mcp.json exists for Claude Code MCP tools
|
|
1155
|
+
// This fixes the issue where existing projects set up before v3.9.14
|
|
1156
|
+
// never got .mcp.json created (it was only created in first-time setup)
|
|
1157
|
+
const mcpJsonPath = join(cwd, '.mcp.json');
|
|
1158
|
+
if (!existsSync(mcpJsonPath)) {
|
|
1159
|
+
console.log(chalk.yellow(' ⚠️ MCP config missing - creating .mcp.json...\n'));
|
|
1160
|
+
setupClaudeCodeMCP(cwd);
|
|
1161
|
+
console.log(chalk.yellow(' ⚠️ RELOAD REQUIRED to load MCP tools\n'));
|
|
1162
|
+
console.log(chalk.white(' Claude Code needs to reload to detect the new .mcp.json file.\n'));
|
|
1163
|
+
console.log(chalk.cyan(' To reload:\n'));
|
|
1164
|
+
console.log(chalk.gray(' VS Code: ') + chalk.white('Press ') + chalk.cyan('Cmd/Ctrl+Shift+P') + chalk.white(' → type ') + chalk.cyan('"Reload Window"'));
|
|
1165
|
+
console.log(chalk.gray(' CLI: ') + chalk.white('Press ') + chalk.cyan('Ctrl+C') + chalk.white(' and run ') + chalk.cyan('claude') + chalk.white(' again\n'));
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1154
1168
|
// Verify auth is still valid
|
|
1155
1169
|
const existingApiKey = getApiKey();
|
|
1156
1170
|
const existingTrial = getTrialState();
|
package/src/index.ts
CHANGED
|
@@ -34,7 +34,7 @@ import { join } from 'path';
|
|
|
34
34
|
// Automatic Update Notification
|
|
35
35
|
// ============================================
|
|
36
36
|
|
|
37
|
-
const CURRENT_VERSION = '3.9.
|
|
37
|
+
const CURRENT_VERSION = '3.9.14';
|
|
38
38
|
|
|
39
39
|
// Simple semver comparison: returns true if v1 > v2
|
|
40
40
|
function isNewerVersion(v1: string, v2: string): boolean {
|
|
@@ -230,7 +230,7 @@ const program = new Command();
|
|
|
230
230
|
program
|
|
231
231
|
.name('codebakers')
|
|
232
232
|
.description('CodeBakers CLI - Production patterns for AI-assisted development')
|
|
233
|
-
.version('3.9.
|
|
233
|
+
.version('3.9.14');
|
|
234
234
|
|
|
235
235
|
// Zero-friction trial entry (no signup required)
|
|
236
236
|
program
|