create-byan-agent 2.9.1 → 2.9.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-byan-agent",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.2",
|
|
4
4
|
"description": "BYAN v2.2.2 - Intelligent AI agent installer with multi-platform native support (GitHub Copilot CLI, Claude Code, Codex/OpenCode)",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create-byan-agent": "bin/create-byan-agent-v2.js"
|
|
@@ -99,9 +99,10 @@ class ClaudeAdapter extends Bridge {
|
|
|
99
99
|
|
|
100
100
|
_handleStderr(data) {
|
|
101
101
|
const text = data.toString().trim();
|
|
102
|
-
if (text)
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
if (!text) return;
|
|
103
|
+
// Claude dumps progress/status info to stderr — not errors
|
|
104
|
+
if (/^(Initializing|Loading|Connected|Session|Warming|Cost:|Token)/m.test(text)) return;
|
|
105
|
+
this.onError(new Error(`claude stderr: ${text}`));
|
|
105
106
|
}
|
|
106
107
|
|
|
107
108
|
_parseLine(line) {
|
|
@@ -32,7 +32,10 @@ class CodexAdapter extends Bridge {
|
|
|
32
32
|
|
|
33
33
|
this.process.stderr.on('data', (data) => {
|
|
34
34
|
const text = data.toString().trim();
|
|
35
|
-
if (text)
|
|
35
|
+
if (!text) return;
|
|
36
|
+
// Codex dumps progress/usage info to stderr
|
|
37
|
+
if (/^(Running|Executing|Model:|Tokens|Cost)/m.test(text)) return;
|
|
38
|
+
this.onError(new Error(`codex stderr: ${text}`));
|
|
36
39
|
});
|
|
37
40
|
|
|
38
41
|
this.process.on('error', (err) => {
|
|
@@ -42,7 +42,10 @@ class CopilotAdapter extends Bridge {
|
|
|
42
42
|
|
|
43
43
|
this.process.stderr.on('data', (data) => {
|
|
44
44
|
const text = data.toString().trim();
|
|
45
|
-
if (text)
|
|
45
|
+
if (!text) return;
|
|
46
|
+
// Copilot dumps usage stats to stderr — not errors
|
|
47
|
+
if (/^(Total usage|API time|Total session|Total code|Breakdown by|claude-|gpt-|o[1-4]|Est\.|Premium request)/m.test(text)) return;
|
|
48
|
+
this.onError(new Error(`copilot stderr: ${text}`));
|
|
46
49
|
});
|
|
47
50
|
|
|
48
51
|
this.process.on('error', (err) => {
|