create-byan-agent 2.4.2 → 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 +43 -0
- package/install/bin/create-byan-agent-v2.js +17 -17
- package/install/lib/phase2-chat.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,49 @@ 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
|
+
|
|
38
|
+
## [2.4.3] - 2026-02-11
|
|
39
|
+
|
|
40
|
+
### 🐛 Fixed - Codex Trusted Directory + Auth Loop
|
|
41
|
+
|
|
42
|
+
**Codex Fix:** Added `--skip-git-repo-check` to `codex exec` command to allow Phase 2 chat when not inside a trusted git repository.
|
|
43
|
+
|
|
44
|
+
**Auth Flow Improvement:** Replaced simple version check with real authentication verification:
|
|
45
|
+
- **Copilot**: `gh auth status` (actual login check)
|
|
46
|
+
- **Claude**: `claude -p "reply OK" --max-turns 1` (real API call)
|
|
47
|
+
- **Codex**: version check (no auth status command available)
|
|
48
|
+
|
|
49
|
+
If not authenticated, user gets 3 choices: Retry (loop), Auto mode (skip AI chat), or Cancel. No more silent bypass.
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
10
53
|
## [2.4.2] - 2026-02-11
|
|
11
54
|
|
|
12
55
|
### 🐛 Fixed - Claude Phase 2 System Prompt Separation
|
|
@@ -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([{
|
|
@@ -194,7 +194,8 @@ Continue la conversation pour comprendre le projet et personnaliser les agents.`
|
|
|
194
194
|
result = runCliCommand('copilot', ['-p', fullPrompt, '-s'], projectRoot);
|
|
195
195
|
} else if (selectedPlatform === 'codex') {
|
|
196
196
|
// Codex takes prompt as argument to exec command
|
|
197
|
-
|
|
197
|
+
// --skip-git-repo-check needed when not in a trusted git repo
|
|
198
|
+
result = runCliCommand('codex', ['exec', '--skip-git-repo-check', fullPrompt], projectRoot);
|
|
198
199
|
} else if (selectedPlatform === 'claude') {
|
|
199
200
|
// Claude: separate system prompt from user query
|
|
200
201
|
// -p treats arg as user query; system context goes via --append-system-prompt-file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-byan-agent",
|
|
3
|
-
"version": "2.4.
|
|
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": {
|