create-byan-agent 2.4.3 → 2.4.5

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,46 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ---
9
9
 
10
+ ## [2.4.5] - 2026-02-12
11
+
12
+ ### 🐛 Fixed - Copilot CLI Auth Command
13
+
14
+ **Problem:** Auth check used `gh auth status` instead of `copilot --version`. GitHub CLI (gh) is separate from Copilot CLI.
15
+
16
+ **Fix:**
17
+ - Auth check: `gh` → `copilot --version`
18
+ - Login instruction: `gh auth login` → `copilot auth`
19
+
20
+ ---
21
+
22
+ ## [2.4.4] - 2026-02-11
23
+
24
+ ### 🐛 Fixed - Config Prompt Scope Bug
25
+
26
+ **Problem:** `config.userName` was undefined when user skipped interview or Turbo Whisper installation, causing crashes.
27
+
28
+ **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.
29
+
30
+ **Fix:** Moved user config prompt (name + language) BEFORE the conditional block so it's asked for ALL installation modes.
31
+
32
+ ```javascript
33
+ // Before: config defined inside conditional (bug)
34
+ if (installMode === 'custom' && interviewResults) {
35
+ const config = await inquirer.prompt(...); // Only for custom mode!
36
+ ...
37
+ }
38
+ // config.userName → undefined for auto/express modes
39
+
40
+ // After: config defined before conditional (fixed)
41
+ const config = await inquirer.prompt([...]); // Asked for ALL modes
42
+ if (installMode === 'custom' && interviewResults) {
43
+ // config available here
44
+ }
45
+ // config.userName → always defined
46
+ ```
47
+
48
+ ---
49
+
10
50
  ## [2.4.3] - 2026-02-11
11
51
 
12
52
  ### 🐛 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';
@@ -699,11 +716,11 @@ async function install() {
699
716
  if (isWindows) spawnOpts.shell = true;
700
717
 
701
718
  if (selectedPlatform === 'copilot') {
702
- // gh auth status returns non-zero if not logged in
703
- authCheckCmd = 'gh';
704
- authCheckArgs = ['auth', 'status'];
719
+ // copilot --version to check if CLI is available
720
+ authCheckCmd = 'copilot';
721
+ authCheckArgs = ['--version'];
705
722
  loginInstructions = [
706
- `${chalk.cyan('gh auth login')}`
723
+ `${chalk.cyan('copilot auth')}`
707
724
  ];
708
725
  } else if (selectedPlatform === 'codex') {
709
726
  // codex --version as basic check (no auth status command available)
@@ -744,7 +761,7 @@ async function install() {
744
761
 
745
762
  let loginInstructions;
746
763
  if (selectedPlatform === 'copilot') {
747
- loginInstructions = [`${chalk.cyan('gh auth login')}`];
764
+ loginInstructions = [`${chalk.cyan('copilot auth')}`];
748
765
  } else if (selectedPlatform === 'codex') {
749
766
  loginInstructions = [`${chalk.cyan('codex login')}`];
750
767
  } else if (selectedPlatform === 'claude') {
@@ -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([{
@@ -225,7 +225,7 @@ Continue la conversation pour comprendre le projet et personnaliser les agents.`
225
225
  console.log(chalk.gray(' 2. ou: export ANTHROPIC_API_KEY=sk-ant-...'));
226
226
  console.log(chalk.gray(' 3. ou dans Claude Code: /login'));
227
227
  } else if (selectedPlatform === 'copilot') {
228
- console.log(chalk.gray(' → gh auth login'));
228
+ console.log(chalk.gray(' → copilot auth'));
229
229
  } else if (selectedPlatform === 'codex') {
230
230
  console.log(chalk.gray(' → codex login'));
231
231
  }
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.5",
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": {