@codebakers/cli 3.9.6 → 3.9.8

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.
@@ -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.6';
939
+ const CURRENT_VERSION = '3.9.8';
940
940
  /**
941
941
  * Check for updates and install them automatically
942
942
  * This makes "codebakers go" the magic phrase that keeps everything updated
@@ -1404,6 +1404,14 @@ async function setupProject(options = {}, auth) {
1404
1404
  }
1405
1405
  async function setupNewProject(cwd, options = {}, auth) {
1406
1406
  console.log(chalk_1.default.cyan('\n ━━━ New Project Setup ━━━\n'));
1407
+ // Auto-detect non-interactive mode (e.g., running from Claude Code)
1408
+ const isNonInteractive = !process.stdin.isTTY;
1409
+ if (isNonInteractive && !options.type) {
1410
+ console.log(chalk_1.default.yellow(' ⚡ Non-interactive mode detected - using defaults\n'));
1411
+ options.type = 'personal';
1412
+ options.describe = options.describe || 'chat';
1413
+ options.skipReview = true;
1414
+ }
1407
1415
  let projectType;
1408
1416
  let projectName;
1409
1417
  const defaultName = cwd.split(/[\\/]/).pop() || 'my-project';
@@ -1542,6 +1550,14 @@ ${content}
1542
1550
  }
1543
1551
  async function setupExistingProject(cwd, projectInfo, options = {}, auth) {
1544
1552
  console.log(chalk_1.default.cyan('\n ━━━ Existing Project Detected ━━━\n'));
1553
+ // Auto-detect non-interactive mode (e.g., running from Claude Code)
1554
+ const isNonInteractive = !process.stdin.isTTY;
1555
+ if (isNonInteractive && !options.name) {
1556
+ console.log(chalk_1.default.yellow(' ⚡ Non-interactive mode detected - using defaults\n'));
1557
+ const folderName = cwd.split(/[\\/]/).pop() || 'my-project';
1558
+ options.name = folderName;
1559
+ options.skipReview = true;
1560
+ }
1545
1561
  // Show what was detected
1546
1562
  console.log(chalk_1.default.gray(' Found:'));
1547
1563
  for (const detail of projectInfo.details.slice(0, 5)) {
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.6';
37
+ const CURRENT_VERSION = '3.9.8';
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.6');
198
+ .version('3.9.8');
199
199
  // Zero-friction trial entry (no signup required)
200
200
  program
201
201
  .command('go')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codebakers/cli",
3
- "version": "3.9.6",
3
+ "version": "3.9.8",
4
4
  "description": "CodeBakers CLI - Production patterns for AI-assisted development",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -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.6';
1056
+ const CURRENT_VERSION = '3.9.8';
1057
1057
 
1058
1058
  /**
1059
1059
  * Check for updates and install them automatically
@@ -1585,6 +1585,15 @@ async function setupProject(options: GoOptions = {}, auth?: AuthInfo): Promise<v
1585
1585
  async function setupNewProject(cwd: string, options: GoOptions = {}, auth?: AuthInfo): Promise<void> {
1586
1586
  console.log(chalk.cyan('\n ━━━ New Project Setup ━━━\n'));
1587
1587
 
1588
+ // Auto-detect non-interactive mode (e.g., running from Claude Code)
1589
+ const isNonInteractive = !process.stdin.isTTY;
1590
+ if (isNonInteractive && !options.type) {
1591
+ console.log(chalk.yellow(' ⚡ Non-interactive mode detected - using defaults\n'));
1592
+ options.type = 'personal';
1593
+ options.describe = options.describe || 'chat';
1594
+ options.skipReview = true;
1595
+ }
1596
+
1588
1597
  let projectType: string;
1589
1598
  let projectName: string;
1590
1599
  const defaultName = cwd.split(/[\\/]/).pop() || 'my-project';
@@ -1733,6 +1742,15 @@ ${content}
1733
1742
  async function setupExistingProject(cwd: string, projectInfo: ProjectInfo, options: GoOptions = {}, auth?: AuthInfo): Promise<void> {
1734
1743
  console.log(chalk.cyan('\n ━━━ Existing Project Detected ━━━\n'));
1735
1744
 
1745
+ // Auto-detect non-interactive mode (e.g., running from Claude Code)
1746
+ const isNonInteractive = !process.stdin.isTTY;
1747
+ if (isNonInteractive && !options.name) {
1748
+ console.log(chalk.yellow(' ⚡ Non-interactive mode detected - using defaults\n'));
1749
+ const folderName = cwd.split(/[\\/]/).pop() || 'my-project';
1750
+ options.name = folderName;
1751
+ options.skipReview = true;
1752
+ }
1753
+
1736
1754
  // Show what was detected
1737
1755
  console.log(chalk.gray(' Found:'));
1738
1756
  for (const detail of projectInfo.details.slice(0, 5)) {
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.6';
37
+ const CURRENT_VERSION = '3.9.8';
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.6');
219
+ .version('3.9.8');
220
220
 
221
221
  // Zero-friction trial entry (no signup required)
222
222
  program