@codebakers/cli 3.9.5 → 3.9.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/go.js +8 -8
- package/dist/index.js +2 -2
- package/dist/lib/api.js +5 -0
- package/package.json +1 -1
- package/src/commands/go.ts +8 -8
- package/src/index.ts +2 -2
- package/src/lib/api.ts +6 -0
package/dist/commands/go.js
CHANGED
|
@@ -936,7 +936,7 @@ function log(message, options) {
|
|
|
936
936
|
}
|
|
937
937
|
}
|
|
938
938
|
// Current CLI version - must match package.json
|
|
939
|
-
const CURRENT_VERSION = '3.9.
|
|
939
|
+
const CURRENT_VERSION = '3.9.7';
|
|
940
940
|
/**
|
|
941
941
|
* Check for updates and install them automatically
|
|
942
942
|
* This makes "codebakers go" the magic phrase that keeps everything updated
|
|
@@ -1278,8 +1278,8 @@ async function showSuccessAndRestart() {
|
|
|
1278
1278
|
console.log(chalk_1.default.yellow(' Could not auto-restart. Please restart Claude Code manually.\n'));
|
|
1279
1279
|
}
|
|
1280
1280
|
}
|
|
1281
|
-
// v6.
|
|
1282
|
-
const V6_CLAUDE_MD = `# CodeBakers v6.
|
|
1281
|
+
// v6.12 Bootstrap content - minimal files that point to MCP tools
|
|
1282
|
+
const V6_CLAUDE_MD = `# CodeBakers v6.12 - Server-Enforced Patterns
|
|
1283
1283
|
|
|
1284
1284
|
**All patterns are server-side. No local pattern files needed.**
|
|
1285
1285
|
|
|
@@ -1332,9 +1332,9 @@ The tools will show "OFFLINE MODE" if the server can't be reached. In this case:
|
|
|
1332
1332
|
- Visit https://codebakers.ai/support for help
|
|
1333
1333
|
|
|
1334
1334
|
---
|
|
1335
|
-
*CodeBakers v6.
|
|
1335
|
+
*CodeBakers v6.12 - Server-Enforced Patterns*
|
|
1336
1336
|
`;
|
|
1337
|
-
const V6_CURSORRULES = `# CodeBakers v6.
|
|
1337
|
+
const V6_CURSORRULES = `# CodeBakers v6.12 - Server-Enforced Patterns
|
|
1338
1338
|
|
|
1339
1339
|
All patterns are server-side. No local pattern files needed.
|
|
1340
1340
|
|
|
@@ -1379,7 +1379,7 @@ The tools will show "OFFLINE MODE" if the server can't be reached. In this case:
|
|
|
1379
1379
|
- Try again when connection is restored
|
|
1380
1380
|
|
|
1381
1381
|
---
|
|
1382
|
-
CodeBakers v6.
|
|
1382
|
+
CodeBakers v6.12 - Server-Enforced Patterns
|
|
1383
1383
|
`;
|
|
1384
1384
|
/**
|
|
1385
1385
|
* Complete project setup - handles everything:
|
|
@@ -1532,7 +1532,7 @@ ${content}
|
|
|
1532
1532
|
if (auth) {
|
|
1533
1533
|
const apiUrl = (0, config_js_1.getApiUrl)();
|
|
1534
1534
|
confirmDownload(apiUrl, auth, {
|
|
1535
|
-
version: '6.
|
|
1535
|
+
version: '6.12',
|
|
1536
1536
|
moduleCount: 0,
|
|
1537
1537
|
cliVersion: getCliVersion(),
|
|
1538
1538
|
command: 'go',
|
|
@@ -1628,7 +1628,7 @@ async function setupExistingProject(cwd, projectInfo, options = {}, auth) {
|
|
|
1628
1628
|
if (auth) {
|
|
1629
1629
|
const apiUrl = (0, config_js_1.getApiUrl)();
|
|
1630
1630
|
confirmDownload(apiUrl, auth, {
|
|
1631
|
-
version: '6.
|
|
1631
|
+
version: '6.12',
|
|
1632
1632
|
moduleCount: 0,
|
|
1633
1633
|
cliVersion: getCliVersion(),
|
|
1634
1634
|
command: 'go',
|
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.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)();
|
|
@@ -195,7 +195,7 @@ const program = new commander_1.Command();
|
|
|
195
195
|
program
|
|
196
196
|
.name('codebakers')
|
|
197
197
|
.description('CodeBakers CLI - Production patterns for AI-assisted development')
|
|
198
|
-
.version('3.9.
|
|
198
|
+
.version('3.9.7');
|
|
199
199
|
// Zero-friction trial entry (no signup required)
|
|
200
200
|
program
|
|
201
201
|
.command('go')
|
package/dist/lib/api.js
CHANGED
|
@@ -161,6 +161,11 @@ async function checkForUpdates() {
|
|
|
161
161
|
const latestVersion = data.stableVersion || data.latestVersion;
|
|
162
162
|
const autoUpdateVersion = data.autoUpdateVersion;
|
|
163
163
|
const isBlocked = data.isBlocked === true;
|
|
164
|
+
// Guard against undefined latestVersion
|
|
165
|
+
if (!latestVersion) {
|
|
166
|
+
// Fall through to npm fallback
|
|
167
|
+
throw new Error('No version info from API');
|
|
168
|
+
}
|
|
164
169
|
return {
|
|
165
170
|
currentVersion,
|
|
166
171
|
latestVersion,
|
package/package.json
CHANGED
package/src/commands/go.ts
CHANGED
|
@@ -1053,7 +1053,7 @@ function log(message: string, options?: GoOptions): void {
|
|
|
1053
1053
|
}
|
|
1054
1054
|
|
|
1055
1055
|
// Current CLI version - must match package.json
|
|
1056
|
-
const CURRENT_VERSION = '3.9.
|
|
1056
|
+
const CURRENT_VERSION = '3.9.7';
|
|
1057
1057
|
|
|
1058
1058
|
/**
|
|
1059
1059
|
* Check for updates and install them automatically
|
|
@@ -1454,8 +1454,8 @@ async function showSuccessAndRestart(): Promise<void> {
|
|
|
1454
1454
|
}
|
|
1455
1455
|
}
|
|
1456
1456
|
|
|
1457
|
-
// v6.
|
|
1458
|
-
const V6_CLAUDE_MD = `# CodeBakers v6.
|
|
1457
|
+
// v6.12 Bootstrap content - minimal files that point to MCP tools
|
|
1458
|
+
const V6_CLAUDE_MD = `# CodeBakers v6.12 - Server-Enforced Patterns
|
|
1459
1459
|
|
|
1460
1460
|
**All patterns are server-side. No local pattern files needed.**
|
|
1461
1461
|
|
|
@@ -1508,10 +1508,10 @@ The tools will show "OFFLINE MODE" if the server can't be reached. In this case:
|
|
|
1508
1508
|
- Visit https://codebakers.ai/support for help
|
|
1509
1509
|
|
|
1510
1510
|
---
|
|
1511
|
-
*CodeBakers v6.
|
|
1511
|
+
*CodeBakers v6.12 - Server-Enforced Patterns*
|
|
1512
1512
|
`;
|
|
1513
1513
|
|
|
1514
|
-
const V6_CURSORRULES = `# CodeBakers v6.
|
|
1514
|
+
const V6_CURSORRULES = `# CodeBakers v6.12 - Server-Enforced Patterns
|
|
1515
1515
|
|
|
1516
1516
|
All patterns are server-side. No local pattern files needed.
|
|
1517
1517
|
|
|
@@ -1556,7 +1556,7 @@ The tools will show "OFFLINE MODE" if the server can't be reached. In this case:
|
|
|
1556
1556
|
- Try again when connection is restored
|
|
1557
1557
|
|
|
1558
1558
|
---
|
|
1559
|
-
CodeBakers v6.
|
|
1559
|
+
CodeBakers v6.12 - Server-Enforced Patterns
|
|
1560
1560
|
`;
|
|
1561
1561
|
|
|
1562
1562
|
/**
|
|
@@ -1721,7 +1721,7 @@ ${content}
|
|
|
1721
1721
|
if (auth) {
|
|
1722
1722
|
const apiUrl = getApiUrl();
|
|
1723
1723
|
confirmDownload(apiUrl, auth, {
|
|
1724
|
-
version: '6.
|
|
1724
|
+
version: '6.12',
|
|
1725
1725
|
moduleCount: 0,
|
|
1726
1726
|
cliVersion: getCliVersion(),
|
|
1727
1727
|
command: 'go',
|
|
@@ -1828,7 +1828,7 @@ async function setupExistingProject(cwd: string, projectInfo: ProjectInfo, optio
|
|
|
1828
1828
|
if (auth) {
|
|
1829
1829
|
const apiUrl = getApiUrl();
|
|
1830
1830
|
confirmDownload(apiUrl, auth, {
|
|
1831
|
-
version: '6.
|
|
1831
|
+
version: '6.12',
|
|
1832
1832
|
moduleCount: 0,
|
|
1833
1833
|
cliVersion: getCliVersion(),
|
|
1834
1834
|
command: 'go',
|
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.7';
|
|
38
38
|
|
|
39
39
|
async function checkForUpdatesInBackground(): Promise<void> {
|
|
40
40
|
// Check if we have a valid cached result first (fast path)
|
|
@@ -216,7 +216,7 @@ const program = new Command();
|
|
|
216
216
|
program
|
|
217
217
|
.name('codebakers')
|
|
218
218
|
.description('CodeBakers CLI - Production patterns for AI-assisted development')
|
|
219
|
-
.version('3.9.
|
|
219
|
+
.version('3.9.7');
|
|
220
220
|
|
|
221
221
|
// Zero-friction trial entry (no signup required)
|
|
222
222
|
program
|
package/src/lib/api.ts
CHANGED
|
@@ -185,6 +185,12 @@ export async function checkForUpdates(): Promise<{
|
|
|
185
185
|
const autoUpdateVersion = data.autoUpdateVersion;
|
|
186
186
|
const isBlocked = data.isBlocked === true;
|
|
187
187
|
|
|
188
|
+
// Guard against undefined latestVersion
|
|
189
|
+
if (!latestVersion) {
|
|
190
|
+
// Fall through to npm fallback
|
|
191
|
+
throw new Error('No version info from API');
|
|
192
|
+
}
|
|
193
|
+
|
|
188
194
|
return {
|
|
189
195
|
currentVersion,
|
|
190
196
|
latestVersion,
|