@codebakers/cli 3.9.8 → 3.9.9
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 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/commands/go.ts +16 -1
- package/src/index.ts +2 -2
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.9';
|
|
940
940
|
/**
|
|
941
941
|
* Check for updates and install them automatically
|
|
942
942
|
* This makes "codebakers go" the magic phrase that keeps everything updated
|
|
@@ -1050,6 +1050,18 @@ async function go(options = {}) {
|
|
|
1050
1050
|
// =========================================================================
|
|
1051
1051
|
// FIRST-TIME SETUP - Project not yet configured
|
|
1052
1052
|
// =========================================================================
|
|
1053
|
+
// Auto-detect non-interactive mode (e.g., running from Claude Code)
|
|
1054
|
+
const isNonInteractive = !process.stdin.isTTY;
|
|
1055
|
+
if (isNonInteractive) {
|
|
1056
|
+
console.log(chalk_1.default.yellow('\n ⚡ Non-interactive mode - setting up project files only\n'));
|
|
1057
|
+
// Just set up the project files without auth
|
|
1058
|
+
// Auth can be done later via `codebakers go` in terminal or via MCP tools
|
|
1059
|
+
await setupProject(options);
|
|
1060
|
+
console.log(chalk_1.default.green('\n ✓ Project files installed!\n'));
|
|
1061
|
+
console.log(chalk_1.default.gray(' To activate trial/login, run in terminal:'));
|
|
1062
|
+
console.log(chalk_1.default.cyan(' codebakers go\n'));
|
|
1063
|
+
return;
|
|
1064
|
+
}
|
|
1053
1065
|
console.log(chalk_1.default.blue(`
|
|
1054
1066
|
╔═══════════════════════════════════════════════════════════╗
|
|
1055
1067
|
║ ║
|
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.9';
|
|
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.9');
|
|
199
199
|
// Zero-friction trial entry (no signup required)
|
|
200
200
|
program
|
|
201
201
|
.command('go')
|
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.9';
|
|
1057
1057
|
|
|
1058
1058
|
/**
|
|
1059
1059
|
* Check for updates and install them automatically
|
|
@@ -1184,6 +1184,21 @@ export async function go(options: GoOptions = {}): Promise<void> {
|
|
|
1184
1184
|
// FIRST-TIME SETUP - Project not yet configured
|
|
1185
1185
|
// =========================================================================
|
|
1186
1186
|
|
|
1187
|
+
// Auto-detect non-interactive mode (e.g., running from Claude Code)
|
|
1188
|
+
const isNonInteractive = !process.stdin.isTTY;
|
|
1189
|
+
if (isNonInteractive) {
|
|
1190
|
+
console.log(chalk.yellow('\n ⚡ Non-interactive mode - setting up project files only\n'));
|
|
1191
|
+
|
|
1192
|
+
// Just set up the project files without auth
|
|
1193
|
+
// Auth can be done later via `codebakers go` in terminal or via MCP tools
|
|
1194
|
+
await setupProject(options);
|
|
1195
|
+
|
|
1196
|
+
console.log(chalk.green('\n ✓ Project files installed!\n'));
|
|
1197
|
+
console.log(chalk.gray(' To activate trial/login, run in terminal:'));
|
|
1198
|
+
console.log(chalk.cyan(' codebakers go\n'));
|
|
1199
|
+
return;
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1187
1202
|
console.log(chalk.blue(`
|
|
1188
1203
|
╔═══════════════════════════════════════════════════════════╗
|
|
1189
1204
|
║ ║
|
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.9';
|
|
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.9');
|
|
220
220
|
|
|
221
221
|
// Zero-friction trial entry (no signup required)
|
|
222
222
|
program
|