@foxden-app/foxclaw 0.4.5 → 0.4.6

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 ADDED
@@ -0,0 +1,181 @@
1
+ # Changelog
2
+
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
+
5
+ ## 0.4.6 - 2026-06-01
6
+
7
+ ### 中文
8
+ - 新增公开 `CHANGELOG.md`,让 GitHub 项目首页和 npm 包都能直接看到版本更新记录。
9
+ - README 增加更新日志入口,并将 `CHANGELOG.md` 纳入 npm 发布包。
10
+ - 发布 workflow 增加 GitHub Release 创建/更新步骤,后续 tag 发布会自动带上对应版本说明。
11
+
12
+ ### English
13
+ - Added a public `CHANGELOG.md` so release notes are visible from GitHub and the npm package.
14
+ - Linked the changelog from the README and included it in the npm package contents.
15
+ - Added GitHub Release creation/update to the publish workflow so future version tags carry release notes automatically.
16
+
17
+ ## 0.4.5 - 2026-06-01
18
+
19
+ ### 中文
20
+ - `/auth` 面板点击切换账号后会刷新原消息并保留按钮,方便连续切换多个候选账号。
21
+ - 回归测试覆盖同一个面板上连续切换的行为。
22
+
23
+ ### English
24
+ - The `/auth` panel now refreshes the original message and keeps its buttons after switching accounts, making consecutive switches practical.
25
+ - Added regression coverage for repeated switches from the same panel.
26
+
27
+ ## 0.4.4 - 2026-06-01
28
+
29
+ ### 中文
30
+ - 多 bot 模式下,切换或重载认证前会从其他 bot home 和规范凭据目录恢复同账号的较新可用候选。
31
+ - 认证同步前增加在线 usage 验证,避免只看 `last_refresh` 时传播已经失效的凭据。
32
+ - 登录/刷新成功后继续将同账号新凭据镜像到其他 runtime,解决某个 bot 仍拿到旧 401 凭据的问题。
33
+
34
+ ### English
35
+ - In multi-bot mode, auth switch/reload now recovers a newer same-account candidate from other bot homes or the canonical auth directory before restart.
36
+ - Added online usage validation before syncing refreshed credentials, avoiding propagation based only on `last_refresh`.
37
+ - Successful login/refresh still mirrors the validated same-account credential to other runtimes, fixing stale 401 credentials in sibling bots.
38
+
39
+ ## 0.4.3 - 2026-05-29
40
+
41
+ ### 中文
42
+ - `/auth` 在多 bot 模式下会按 ChatGPT account id 汇总各 runtime 最近掌握的额度快照。
43
+ - 不同 bot 使用不同 auth 时,面板可以互补展示更完整的 5 小时/7 天额度信息。
44
+
45
+ ### English
46
+ - `/auth` now merges recent quota snapshots by ChatGPT account id across runtimes in multi-bot mode.
47
+ - When different bots use different auth candidates, the panel can present a more complete 5-hour/7-day quota view.
48
+
49
+ ## 0.4.2 - 2026-05-28
50
+
51
+ ### 中文
52
+ - 支持把 `TG_BOT_TOKENS` 中的一个 bot 标记为默认/终端共享 runtime。
53
+ - 当 `TG_BOT_TOKEN` 精确匹配复数 token 中的一个值时,该 bot 使用终端默认 `CODEX_HOME` 和默认 auth,其他 bot 继续隔离。
54
+ - 文档补充共享 runtime 的配置方式和注意事项。
55
+
56
+ ### English
57
+ - Added support for marking one `TG_BOT_TOKENS` bot as the default/shared-terminal runtime.
58
+ - When `TG_BOT_TOKEN` exactly matches one token in the multi-token list, that bot uses the terminal/default `CODEX_HOME` and auth while the others stay isolated.
59
+ - Updated docs with shared-runtime setup guidance.
60
+
61
+ ## 0.4.1 - 2026-05-28
62
+
63
+ ### 中文
64
+ - 认证候选刷新后,镜像同步前会校验同账号和可用性,降低错误凭据扩散风险。
65
+ - 增加认证刷新验证相关测试。
66
+
67
+ ### English
68
+ - Refreshed auth candidates are validated for same-account usability before mirroring, reducing the risk of spreading bad credentials.
69
+ - Added tests for refreshed auth validation.
70
+
71
+ ## 0.4.0 - 2026-05-27
72
+
73
+ ### 中文
74
+ - 完善多 Telegram bot 隔离 runtime 的状态展示、验收路径和文档。
75
+ - 补充多 bot auth 镜像、独立 `CODEX_HOME`、群聊点名规则和全局 `/update` 空闲检查说明。
76
+
77
+ ### English
78
+ - Completed status reporting, validation paths, and docs for isolated multi-Telegram-bot runtimes.
79
+ - Documented multi-bot auth mirroring, independent `CODEX_HOME`, group addressing rules, and global `/update` idle checks.
80
+
81
+ ## 0.3.19 - 2026-05-27
82
+
83
+ ### 中文
84
+ - 支持一个 FoxClaw 服务同时运行多个 Telegram bot,每个 bot 拥有独立 Codex app-server、独立 `CODEX_HOME`、独立会话和独立当前 auth。
85
+ - Telegram scope 加入 bot namespace,避免私聊、群聊、按钮回调和附件处理串线。
86
+ - 新增认证候选镜像协调器,仅同步经过校验的同账号候选文件,不共享 Codex sessions。
87
+ - `/update` 改为全服务空闲检查,并会尝试同步升级 npm/pnpm 管理的 Codex CLI。
88
+
89
+ ### English
90
+ - Added support for running multiple Telegram bots in one FoxClaw service, with independent Codex app-servers, `CODEX_HOME` directories, sessions, and active auth selections.
91
+ - Added bot namespaces to Telegram scopes so private chats, groups, callbacks, and media handling do not cross runtimes.
92
+ - Added an auth candidate mirror coordinator that syncs validated same-account candidates without sharing Codex sessions.
93
+ - Made `/update` a global idle-checked operation and added npm/pnpm-managed Codex CLI update attempts.
94
+
95
+ ## 0.3.18 - 2026-05-27
96
+
97
+ ### 中文
98
+ - 修正 Codex 本地答复吞吐统计口径。
99
+
100
+ ### English
101
+ - Corrected local Codex response throughput metrics.
102
+
103
+ ## 0.3.17 - 2026-05-26
104
+
105
+ ### 中文
106
+ - 修复 GitHub 发布流程的 checkout 鉴权失败。
107
+
108
+ ### English
109
+ - Fixed checkout authentication failure in the GitHub release workflow.
110
+
111
+ ## 0.3.16 - 2026-05-26
112
+
113
+ ### 中文
114
+ - 缓存 `/status` 本地用量统计快照,减少状态页等待时间并优化响应。
115
+
116
+ ### English
117
+ - Cached local usage statistics for `/status`, reducing wait time and improving responsiveness.
118
+
119
+ ## 0.3.15 - 2026-05-26
120
+
121
+ ### 中文
122
+ - 修复 pnpm 全局安装下 `/update` 对 Codex CLI 真实安装路径的识别。
123
+
124
+ ### English
125
+ - Fixed `/update` detection of the real Codex CLI install path under pnpm global installs.
126
+
127
+ ## 0.3.14 - 2026-05-26
128
+
129
+ ### 中文
130
+ - 新增 FoxClaw 一键自升级和聊天内 `/update` 命令。
131
+
132
+ ### English
133
+ - Added one-command FoxClaw self-update and the chat `/update` command.
134
+
135
+ ## 0.3.13 - 2026-05-26
136
+
137
+ ### 中文
138
+ - 新增 Codex 输出速度展示和线程上下文回显。
139
+
140
+ ### English
141
+ - Added Codex output throughput display and thread context echoes.
142
+
143
+ ## 0.3.12 - 2026-05-26
144
+
145
+ ### 中文
146
+ - 简化 FoxClaw 代理服务配置。
147
+
148
+ ### English
149
+ - Simplified FoxClaw proxy service configuration.
150
+
151
+ ## 0.3.11 - 2026-05-26
152
+
153
+ ### 中文
154
+ - 修复 systemd 安装时覆盖旧版本路径的问题。
155
+
156
+ ### English
157
+ - Fixed systemd install behavior that could overwrite an older version path incorrectly.
158
+
159
+ ## 0.3.10 - 2026-05-26
160
+
161
+ ### 中文
162
+ - 支持 npm 发布令牌回退,用于 trusted publishing 不可用时的补发路径。
163
+
164
+ ### English
165
+ - Added npm token fallback support for manual recovery when trusted publishing is unavailable.
166
+
167
+ ## 0.1.1 - 2026-03-06
168
+
169
+ ### 中文
170
+ - 显式解析 Codex 二进制路径,提升运行时定位可靠性。
171
+
172
+ ### English
173
+ - Resolved the Codex binary path explicitly for more reliable runtime startup.
174
+
175
+ ## 0.1.0 - 2026-03-06
176
+
177
+ ### 中文
178
+ - 初始化 Telegram Codex app bridge。
179
+
180
+ ### English
181
+ - Bootstrapped the Telegram Codex app bridge.
package/README.md CHANGED
@@ -37,6 +37,7 @@ FoxClaw(狸爪)的目标很直接:让你用手机控制本机的 Codex,
37
37
  - 手头有 Codex、OpenClaw、QwenPaw、Hermes、OpenCode、Kimi CLI 之类能跑 shell 的 agent?推荐走 [Agent 辅助安装](./docs/zh/agent-assisted-install.md)。
38
38
  - 对 Node、Telegram 机器人、Codex CLI 不太熟?看 [新手安装指南](./docs/zh/install-for-beginners.md)。
39
39
  - 已经装好,想系统了解 `/help`、`/setup`、`/threads`、`/watch`、`/auth` 和账号轮转?看 [用户手册](./docs/zh/user-manual.md)。
40
+ - 想了解每个版本改了什么?看 [更新日志](./CHANGELOG.md)。
40
41
  - Git、Node、`.env` 都玩得转?直接往下看快速设置。
41
42
  - 卡住了?看 [故障排查](./docs/zh/troubleshooting.md)。
42
43
 
package/README_EN.md CHANGED
@@ -37,6 +37,7 @@ FoxClaw is more than message forwarding. It provides Telegram panels for Codex w
37
37
  - Already have a shell-capable agent such as Codex, OpenClaw, QwenPaw, Hermes, OpenCode, or Kimi CLI? Use the [Agent-Assisted Install](./docs/agent-assisted-install.md) first. This is the recommended path.
38
38
  - New to Node, Telegram bots, or Codex CLI? Use the [Beginner Install Guide](./docs/install-for-beginners.md).
39
39
  - Already installed and want the full command guide for `/help`, `/setup`, `/threads`, `/watch`, `/auth`, and auth rotation? Read the [User Manual](./docs/user-manual.md).
40
+ - Want to see what changed in each release? Read the [Changelog](./CHANGELOG.md).
40
41
  - Already comfortable with Git, Node, and `.env` files? Use the quick setup below.
41
42
  - Something failed? Check [Troubleshooting](./docs/troubleshooting.md).
42
43
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foxden-app/foxclaw",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "description": "Foxden local execution claw for controlling Codex from trusted chat interfaces.",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
@@ -15,6 +15,7 @@
15
15
  ".env.example",
16
16
  "README.md",
17
17
  "README_EN.md",
18
+ "CHANGELOG.md",
18
19
  "LICENSE"
19
20
  ],
20
21
  "private": false,
@@ -188,6 +188,7 @@ Use this checklist when the user asks for standard closing actions, release wrap
188
188
  - For this repo, prefer a bilingual one-line subject in the form `中文 | English`.
189
189
  - Put Chinese first, keep the English half semantically equivalent, and keep both halves concise.
190
190
  - For release commits, use the same format, for example `发布 0.4.0:支持多机器人隔离 | Release 0.4.0: support multi-bot isolation`.
191
+ - Update `CHANGELOG.md` for any published version, using bilingual Chinese and English notes.
191
192
  - Never stage unrelated local changes.
192
193
  5. Push the current branch after a successful commit:
193
194
  - `git push origin <branch>`
@@ -202,12 +203,14 @@ Use this checklist when the user asks for standard closing actions, release wrap
202
203
  - `/update` now attempts to update globally npm/pnpm-managed Codex CLI installations and refuses to restart while any configured Telegram runtime, enabled Weixin default runtime, or auth mirror write is busy.
203
204
  7. Publish to npm when requested:
204
205
  - Prefer GitHub Actions trusted publishing via `.github/workflows/publish.yml`: bump and commit the package version, push `main`, then push a matching `v<version>` tag. The tag version must match `package.json`.
206
+ - Ensure the matching changelog section exists before pushing the version tag; the publish workflow uses it to create or update the GitHub Release.
205
207
  - Treat `workflow_dispatch` only as a retry path from an existing matching release tag; do not manually run publishing from `main`.
206
208
  - Configure npmjs.com trusted publishing for `foxden-app/foxclaw` and workflow `publish.yml`; do not store npm tokens if OIDC trusted publishing is available.
207
209
  - Temporary fallback: store an npm automation/bypass-2FA token as the GitHub Actions secret `NPM_TOKEN`. Never print the token or commit it.
208
210
  - Check `npm whoami` and `npm view @foxden-app/foxclaw version`.
209
211
  - If the target version is already published, bump with `npm version patch --no-git-tag-version` before validation and commit.
210
212
  - If a workflow fails before `npm publish`, inspect that failed GitHub Actions step before attributing it to npm trusted publishing.
213
+ - After publishing, verify both `npm view @foxden-app/foxclaw version` and the GitHub Release page for the pushed tag.
211
214
  - Manual fallback only: run `BROWSER=true npm publish` in a TTY.
212
215
  - If npm returns `ENEEDAUTH`, report that npm publish is blocked by registry login and leave the package unreported as published.
213
216
  - Never print npm tokens or `.npmrc` auth values.