@codebakers/cli 3.3.6 → 3.3.7
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/init.js +8 -6
- package/dist/commands/setup.js +5 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/commands/init.ts +8 -6
- package/src/commands/setup.ts +5 -3
- package/src/index.ts +1 -1
package/dist/commands/init.js
CHANGED
|
@@ -656,12 +656,14 @@ async function init() {
|
|
|
656
656
|
(0, fs_1.writeFileSync)((0, path_1.join)(cwd, '.cursorrules'), CURSORRULES_TEMPLATE);
|
|
657
657
|
// Write .cursorignore
|
|
658
658
|
(0, fs_1.writeFileSync)((0, path_1.join)(cwd, '.cursorignore'), CURSORIGNORE_TEMPLATE);
|
|
659
|
-
// Create
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
659
|
+
// Create GLOBAL ~/.cursor/mcp.json for MCP server configuration
|
|
660
|
+
// Cursor reads MCP config from global location, not project-local
|
|
661
|
+
const homeDir = process.env.USERPROFILE || process.env.HOME || '';
|
|
662
|
+
const globalCursorDir = (0, path_1.join)(homeDir, '.cursor');
|
|
663
|
+
if (!(0, fs_1.existsSync)(globalCursorDir)) {
|
|
664
|
+
(0, fs_1.mkdirSync)(globalCursorDir, { recursive: true });
|
|
663
665
|
}
|
|
664
|
-
const mcpConfigPath = (0, path_1.join)(
|
|
666
|
+
const mcpConfigPath = (0, path_1.join)(globalCursorDir, 'mcp.json');
|
|
665
667
|
const isWindows = process.platform === 'win32';
|
|
666
668
|
const mcpConfig = {
|
|
667
669
|
mcpServers: {
|
|
@@ -699,7 +701,7 @@ async function init() {
|
|
|
699
701
|
(0, fs_1.writeFileSync)(existingSettingsPath, JSON.stringify(VSCODE_SETTINGS_TEMPLATE, null, 2));
|
|
700
702
|
}
|
|
701
703
|
cursorSpinner.succeed('Cursor configuration installed!');
|
|
702
|
-
console.log(chalk_1.default.green(' ✓ MCP server configured (
|
|
704
|
+
console.log(chalk_1.default.green(' ✓ MCP server configured (~/.cursor/mcp.json)'));
|
|
703
705
|
}
|
|
704
706
|
catch (error) {
|
|
705
707
|
cursorSpinner.warn('Could not install Cursor files (continuing anyway)');
|
package/dist/commands/setup.js
CHANGED
|
@@ -153,8 +153,10 @@ function showFinalInstructions() {
|
|
|
153
153
|
console.log(chalk_1.default.yellow(' ⚠️ Claude Code not detected (that\'s OK if using Cursor)\n'));
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
// Install MCP for Cursor IDE (create
|
|
157
|
-
|
|
156
|
+
// Install MCP for Cursor IDE (create GLOBAL ~/.cursor/mcp.json)
|
|
157
|
+
// Cursor reads MCP config from global location, not project-local
|
|
158
|
+
const homeDir = process.env.USERPROFILE || process.env.HOME || '';
|
|
159
|
+
const cursorDir = (0, path_1.join)(homeDir, '.cursor');
|
|
158
160
|
const mcpConfigPath = (0, path_1.join)(cursorDir, 'mcp.json');
|
|
159
161
|
const mcpConfig = {
|
|
160
162
|
mcpServers: {
|
|
@@ -176,7 +178,7 @@ function showFinalInstructions() {
|
|
|
176
178
|
else {
|
|
177
179
|
(0, fs_1.writeFileSync)(mcpConfigPath, JSON.stringify(mcpConfig, null, 2));
|
|
178
180
|
}
|
|
179
|
-
console.log(chalk_1.default.green(' ✅ Cursor MCP server configured! (
|
|
181
|
+
console.log(chalk_1.default.green(' ✅ Cursor MCP server configured! (~/.cursor/mcp.json)\n'));
|
|
180
182
|
}
|
|
181
183
|
catch (error) {
|
|
182
184
|
console.log(chalk_1.default.yellow(' ⚠️ Could not create Cursor MCP config\n'));
|
package/dist/index.js
CHANGED
|
@@ -34,7 +34,7 @@ const path_1 = require("path");
|
|
|
34
34
|
// ============================================
|
|
35
35
|
// Automatic Update Notification
|
|
36
36
|
// ============================================
|
|
37
|
-
const CURRENT_VERSION = '3.3.
|
|
37
|
+
const CURRENT_VERSION = '3.3.7';
|
|
38
38
|
async function checkForUpdatesInBackground() {
|
|
39
39
|
// Check if we have a valid cached result first (fast path)
|
|
40
40
|
const cached = (0, config_js_2.getCachedUpdateInfo)();
|
package/package.json
CHANGED
package/src/commands/init.ts
CHANGED
|
@@ -700,13 +700,15 @@ export async function init(): Promise<void> {
|
|
|
700
700
|
// Write .cursorignore
|
|
701
701
|
writeFileSync(join(cwd, '.cursorignore'), CURSORIGNORE_TEMPLATE);
|
|
702
702
|
|
|
703
|
-
// Create
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
703
|
+
// Create GLOBAL ~/.cursor/mcp.json for MCP server configuration
|
|
704
|
+
// Cursor reads MCP config from global location, not project-local
|
|
705
|
+
const homeDir = process.env.USERPROFILE || process.env.HOME || '';
|
|
706
|
+
const globalCursorDir = join(homeDir, '.cursor');
|
|
707
|
+
if (!existsSync(globalCursorDir)) {
|
|
708
|
+
mkdirSync(globalCursorDir, { recursive: true });
|
|
707
709
|
}
|
|
708
710
|
|
|
709
|
-
const mcpConfigPath = join(
|
|
711
|
+
const mcpConfigPath = join(globalCursorDir, 'mcp.json');
|
|
710
712
|
const isWindows = process.platform === 'win32';
|
|
711
713
|
const mcpConfig = {
|
|
712
714
|
mcpServers: {
|
|
@@ -746,7 +748,7 @@ export async function init(): Promise<void> {
|
|
|
746
748
|
}
|
|
747
749
|
|
|
748
750
|
cursorSpinner.succeed('Cursor configuration installed!');
|
|
749
|
-
console.log(chalk.green(' ✓ MCP server configured (
|
|
751
|
+
console.log(chalk.green(' ✓ MCP server configured (~/.cursor/mcp.json)'));
|
|
750
752
|
} catch (error) {
|
|
751
753
|
cursorSpinner.warn('Could not install Cursor files (continuing anyway)');
|
|
752
754
|
}
|
package/src/commands/setup.ts
CHANGED
|
@@ -164,8 +164,10 @@ function showFinalInstructions(): void {
|
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
// Install MCP for Cursor IDE (create
|
|
168
|
-
|
|
167
|
+
// Install MCP for Cursor IDE (create GLOBAL ~/.cursor/mcp.json)
|
|
168
|
+
// Cursor reads MCP config from global location, not project-local
|
|
169
|
+
const homeDir = process.env.USERPROFILE || process.env.HOME || '';
|
|
170
|
+
const cursorDir = join(homeDir, '.cursor');
|
|
169
171
|
const mcpConfigPath = join(cursorDir, 'mcp.json');
|
|
170
172
|
const mcpConfig = {
|
|
171
173
|
mcpServers: {
|
|
@@ -188,7 +190,7 @@ function showFinalInstructions(): void {
|
|
|
188
190
|
} else {
|
|
189
191
|
writeFileSync(mcpConfigPath, JSON.stringify(mcpConfig, null, 2));
|
|
190
192
|
}
|
|
191
|
-
console.log(chalk.green(' ✅ Cursor MCP server configured! (
|
|
193
|
+
console.log(chalk.green(' ✅ Cursor MCP server configured! (~/.cursor/mcp.json)\n'));
|
|
192
194
|
} catch (error) {
|
|
193
195
|
console.log(chalk.yellow(' ⚠️ Could not create Cursor MCP config\n'));
|
|
194
196
|
}
|
package/src/index.ts
CHANGED
|
@@ -32,7 +32,7 @@ import { join } from 'path';
|
|
|
32
32
|
// Automatic Update Notification
|
|
33
33
|
// ============================================
|
|
34
34
|
|
|
35
|
-
const CURRENT_VERSION = '3.3.
|
|
35
|
+
const CURRENT_VERSION = '3.3.7';
|
|
36
36
|
|
|
37
37
|
async function checkForUpdatesInBackground(): Promise<void> {
|
|
38
38
|
// Check if we have a valid cached result first (fast path)
|