@baize-ai/core 0.3.8 → 0.3.10
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
|
@@ -5,6 +5,17 @@ All notable changes to baize-core will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.3.10] - 2026-08-27
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- web-console 重启 agent 会话改为**硬杀**(`tmux kill-session`)——卡 OAuth 登录页的会话不再因不响应 /exit 而卡死;codex 与 claude 会话均生效
|
|
12
|
+
- `agentSessionName` 修复 ESM 下 `require is not defined` 的隐藏 bug——此前保存 key/重启永远定位 claude-main,从未命中 codex-main(0.3.5 起)
|
|
13
|
+
|
|
14
|
+
## [0.3.9] - 2026-08-27
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
- web-console 渠道列表不再显示 A2A(商业项目,私有交付,永不列出/永不自动发布)
|
|
18
|
+
|
|
8
19
|
## [0.3.8] - 2026-08-26
|
|
9
20
|
|
|
10
21
|
### Fixed
|
package/package.json
CHANGED
|
@@ -45,8 +45,8 @@ function agentSessionName() {
|
|
|
45
45
|
if (process.env.CLAUDE_SESSION) return process.env.CLAUDE_SESSION;
|
|
46
46
|
let runtime = 'claude';
|
|
47
47
|
try {
|
|
48
|
-
const cfg = JSON.parse(
|
|
49
|
-
|
|
48
|
+
const cfg = JSON.parse(fs.readFileSync(
|
|
49
|
+
path.join(baizeDir(), '.baize', 'config.json'), 'utf8'));
|
|
50
50
|
if (cfg && cfg.runtime) runtime = cfg.runtime;
|
|
51
51
|
} catch { /* default claude */ }
|
|
52
52
|
return runtime === 'codex' ? 'codex-main' : 'claude-main';
|
|
@@ -359,9 +359,13 @@ export async function switchRuntime(name) {
|
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
/**
|
|
362
|
-
* Restart the agent session by
|
|
363
|
-
*
|
|
364
|
-
* a
|
|
362
|
+
* Restart the agent session by killing the tmux session; the activity monitor
|
|
363
|
+
* relaunches it with fresh env (which merges ~/baize/.env). The kill is hard
|
|
364
|
+
* by design: a session stuck on an OAuth/login screen ignores /exit, so a soft
|
|
365
|
+
* restart silently failed and left the agent wedged until a manual
|
|
366
|
+
* `tmux kill-session`. State continuity is preserved by codex/Claude session
|
|
367
|
+
* files (turn-level) plus baize memory sync; the Guardian injects startup
|
|
368
|
+
* context on relaunch. Applies to both runtimes (codex-main / claude-main).
|
|
365
369
|
* @returns {Promise<{success: boolean, restarted: boolean, pending?: boolean, reason?: string}>}
|
|
366
370
|
*/
|
|
367
371
|
export async function restartAgentSession() {
|
|
@@ -378,7 +382,7 @@ export async function restartAgentSession() {
|
|
|
378
382
|
return { success: true, restarted: false, pending: true, reason: 'no_session' };
|
|
379
383
|
}
|
|
380
384
|
try {
|
|
381
|
-
await execFileAsync('tmux', ['
|
|
385
|
+
await execFileAsync('tmux', ['kill-session', '-t', session], { timeout: 5000 });
|
|
382
386
|
return { success: true, restarted: true, session };
|
|
383
387
|
} catch (err) {
|
|
384
388
|
return { success: false, restarted: false, reason: err.message };
|
|
@@ -286,6 +286,9 @@ export async function discoverChannels(deps = {}) {
|
|
|
286
286
|
// Custom entries extend/override; builtin schema survives unless replaced.
|
|
287
287
|
discovered.set(name, { ...base, ...c, name, custom: true });
|
|
288
288
|
}
|
|
289
|
+
// A2A is a commercial project delivered privately (never on npm/public repos)
|
|
290
|
+
// — it must not appear in any channel/component listing (D33).
|
|
291
|
+
discovered.delete('a2a');
|
|
289
292
|
|
|
290
293
|
const installed = readComponents();
|
|
291
294
|
return [...discovered.values()].map((c) => {
|