@foxden-app/foxclaw 0.5.6 → 0.5.7
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 +10 -0
- package/dist/controller/controller.js +9 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
All notable FoxClaw changes are listed here. Each release note is bilingual so GitHub Releases and the npm package are useful to both Chinese and English readers.
|
|
4
4
|
|
|
5
|
+
## 0.5.7 - 2026-06-05
|
|
6
|
+
|
|
7
|
+
### 中文
|
|
8
|
+
- 修复普通 `/login_device` 和 `/auth` 面板设备登录完成后只更新本机当前 auth、没有主动同步到同节点 bot home 和跨节点 peer 的问题。
|
|
9
|
+
- 设备登录成功后,FoxClaw 现在会解析当前 auth 候选并调用既有 `authCandidateUpdated` 路径,和 `/auth add <name>`、auth 切换、reload、主动刷新保持一致。
|
|
10
|
+
|
|
11
|
+
### English
|
|
12
|
+
- Fixed normal `/login_device` and `/auth` panel device-login completions updating only the local current auth without actively syncing to same-node bot homes or cross-node peers.
|
|
13
|
+
- After a successful device login, FoxClaw now resolves the current auth candidate and calls the existing `authCandidateUpdated` path, matching `/auth add <name>`, auth switching, reload, and proactive refresh behavior.
|
|
14
|
+
|
|
5
15
|
## 0.5.6 - 2026-06-04
|
|
6
16
|
|
|
7
17
|
### 中文
|
|
@@ -1671,9 +1671,15 @@ export class BridgeSessionCore {
|
|
|
1671
1671
|
await this.sendMessage(scopeId, lines.join('\n'));
|
|
1672
1672
|
return;
|
|
1673
1673
|
}
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1674
|
+
if (!success) {
|
|
1675
|
+
await this.sendMessage(scopeId, t(locale, 'login_failed', { error: params?.error ?? t(locale, 'unknown') }));
|
|
1676
|
+
return;
|
|
1677
|
+
}
|
|
1678
|
+
const currentCandidate = (await this.listCodexAuthState()).candidates.find(candidate => candidate.isCurrent) ?? null;
|
|
1679
|
+
if (currentCandidate) {
|
|
1680
|
+
await this.syncCodexAuthCandidate(currentCandidate.name);
|
|
1681
|
+
}
|
|
1682
|
+
await this.sendMessage(scopeId, t(locale, 'login_completed'));
|
|
1677
1683
|
}
|
|
1678
1684
|
async restorePendingAuthAdd(record) {
|
|
1679
1685
|
const state = await this.listCodexAuthState();
|