create-byan-agent 2.4.3 → 2.4.4

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/CHANGELOG.md CHANGED
@@ -7,6 +7,34 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ---
9
9
 
10
+ ## [2.4.4] - 2026-02-11
11
+
12
+ ### 🐛 Fixed - Config Prompt Scope Bug
13
+
14
+ **Problem:** `config.userName` was undefined when user skipped interview or Turbo Whisper installation, causing crashes.
15
+
16
+ **Root Cause:** The `const config = await inquirer.prompt(...)` was inside the `if (installMode === 'custom' && interviewResults)` conditional block. Users taking other paths never got prompted for their name.
17
+
18
+ **Fix:** Moved user config prompt (name + language) BEFORE the conditional block so it's asked for ALL installation modes.
19
+
20
+ ```javascript
21
+ // Before: config defined inside conditional (bug)
22
+ if (installMode === 'custom' && interviewResults) {
23
+ const config = await inquirer.prompt(...); // Only for custom mode!
24
+ ...
25
+ }
26
+ // config.userName → undefined for auto/express modes
27
+
28
+ // After: config defined before conditional (fixed)
29
+ const config = await inquirer.prompt([...]); // Asked for ALL modes
30
+ if (installMode === 'custom' && interviewResults) {
31
+ // config available here
32
+ }
33
+ // config.userName → always defined
34
+ ```
35
+
36
+ ---
37
+
10
38
  ## [2.4.3] - 2026-02-11
11
39
 
12
40
  ### 🐛 Fixed - Codex Trusted Directory + Auth Loop
@@ -604,6 +604,23 @@ async function install() {
604
604
  console.log('');
605
605
  }
606
606
 
607
+ // User configuration (needed for config.yaml) - Asked for ALL modes, BEFORE conditional blocks
608
+ const config = await inquirer.prompt([
609
+ {
610
+ type: 'input',
611
+ name: 'userName',
612
+ message: 'Your name:',
613
+ default: 'Developer'
614
+ },
615
+ {
616
+ type: 'list',
617
+ name: 'language',
618
+ message: 'Communication language:',
619
+ choices: ['Francais', 'English'],
620
+ default: 'Francais'
621
+ }
622
+ ]);
623
+
607
624
  // Step 3: Platform selection (with interview recommendations if CUSTOM mode)
608
625
  let recommendedPlatforms = [];
609
626
  let recommendedTurboWhisper = 'skip';
@@ -785,23 +802,6 @@ async function install() {
785
802
 
786
803
  console.log('');
787
804
 
788
- // Phase 1.5: User configuration (needed for Phase 2)
789
- const config = await inquirer.prompt([
790
- {
791
- type: 'input',
792
- name: 'userName',
793
- message: 'Your name:',
794
- default: 'Developer'
795
- },
796
- {
797
- type: 'list',
798
- name: 'language',
799
- message: 'Communication language:',
800
- choices: ['Francais', 'English'],
801
- default: installMode === 'custom' && interviewResults ? 'Francais' : 'English'
802
- }
803
- ]);
804
-
805
805
  // Phase 2: Interactive Chat with Yanstaller Agent
806
806
  // Ask user if they want to enter Phase 2 conversation
807
807
  const { enterPhase2 } = await inquirer.prompt([{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-byan-agent",
3
- "version": "2.4.3",
3
+ "version": "2.4.4",
4
4
  "description": "BYAN v2.3.2 - Intelligent AI agent ecosystem with Hermes universal dispatcher + Multi-platform support (Copilot CLI, Claude, Codex) + Automatic LLM cost optimization (87.5% savings) + Node 12+ compatible",
5
5
  "main": "src/index.js",
6
6
  "bin": {