@foxden-app/foxclaw 0.5.8 → 0.5.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 +26 -0
- package/dist/controller/controller.d.ts +14 -2
- package/dist/controller/controller.js +462 -47
- package/dist/i18n.d.ts +26 -2
- package/dist/i18n.js +26 -2
- package/dist/main.js +75 -0
- package/dist/store/database.d.ts +25 -1
- package/dist/store/database.js +321 -0
- package/dist/telegram/gateway.d.ts +1 -0
- package/dist/telegram/gateway.js +1 -0
- package/dist/types.d.ts +53 -0
- package/dist/update.d.ts +3 -0
- package/dist/update.js +72 -3
- package/docs/devlogs//346/212/200/346/234/257/351/200/232/350/256/257/01./346/212/212 Codex /345/270/246/345/210/260/346/234/200/345/220/216/344/270/200/345/205/254/351/207/214/357/274/232FoxClaw /347/232/204 auth /347/224/237/345/221/275/345/221/250/346/234/237/344/270/216/350/267/250/350/212/202/347/202/271/345/220/214/346/255/245.md" +341 -0
- package/docs/install-for-beginners.md +3 -3
- package/docs/troubleshooting.md +2 -2
- package/docs/zh/install-for-beginners.md +3 -3
- package/docs/zh/troubleshooting.md +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,32 @@
|
|
|
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.10 - 2026-06-08
|
|
6
|
+
|
|
7
|
+
### 中文
|
|
8
|
+
- Telegram 输入队列改为 SQLite 持久化 FIFO,FoxClaw 重启后不再丢失排队中的 Codex 请求,并在 `/status` 中显示排队数量。
|
|
9
|
+
- Telegram 图片和文件会先进入附件暂存区,支持媒体组归并、下一条文字自动带附件发给 Codex,以及“分析 / 清空”按钮操作。
|
|
10
|
+
- 引导式 Plan 会话现在会持久化并在重启后恢复,减少长任务或确认流程被服务重启打断的风险。
|
|
11
|
+
- `/update` 完成回报会从已安装包的 `CHANGELOG.md` 读取当前版本更新内容,让 Telegram 里直接看到这次升级改了什么。
|
|
12
|
+
|
|
13
|
+
### English
|
|
14
|
+
- Replaced the in-memory Telegram prompt queue with a persisted SQLite FIFO so queued Codex requests survive FoxClaw restarts, and `/status` now reports queued turn count.
|
|
15
|
+
- Telegram photos and files are staged before dispatch, with media-group merging, next-message attachment consumption, and Analyze/Clear buttons.
|
|
16
|
+
- Guided Plan sessions are persisted and restored after restart, reducing interruption risk for long-running or confirmation-based flows.
|
|
17
|
+
- `/update` completion reports now read the installed package `CHANGELOG.md` entry for the target version so Telegram shows what changed in the upgrade.
|
|
18
|
+
|
|
19
|
+
## 0.5.9 - 2026-06-07
|
|
20
|
+
|
|
21
|
+
### 中文
|
|
22
|
+
- Linux 用户级 systemd 安装现在会在 `foxclaw start` / `restart` / `install-systemd` 时自动尝试启用 systemd user linger,避免用户退出 SSH 或桌面会话后 FoxClaw 停止接收 Telegram 消息。
|
|
23
|
+
- `foxclaw doctor` 新增 linger 状态检查;如果自动启用失败,会提示使用 `sudo loginctl enable-linger <user>` 手动修复。
|
|
24
|
+
- 中文/英文安装指南和故障排查文档更新为默认自动处理 linger,失败时再手动介入。
|
|
25
|
+
|
|
26
|
+
### English
|
|
27
|
+
- Linux user-systemd installation now tries to enable systemd user linger during `foxclaw start`, `restart`, and `install-systemd`, preventing FoxClaw from stopping after SSH or desktop logout.
|
|
28
|
+
- `foxclaw doctor` now checks linger state and tells users to run `sudo loginctl enable-linger <user>` if automatic setup fails.
|
|
29
|
+
- Updated the Chinese and English install and troubleshooting docs to describe automatic linger setup with manual recovery only when needed.
|
|
30
|
+
|
|
5
31
|
## 0.5.8 - 2026-06-05
|
|
6
32
|
|
|
7
33
|
### 中文
|
|
@@ -50,11 +50,9 @@ export declare class BridgeSessionCore {
|
|
|
50
50
|
private activeTurns;
|
|
51
51
|
private activeTurnsByTurnId;
|
|
52
52
|
private observedThreadWatchers;
|
|
53
|
-
private queuedPrompts;
|
|
54
53
|
private pendingTurnErrors;
|
|
55
54
|
private pendingUserInputs;
|
|
56
55
|
private pendingMcpElicitations;
|
|
57
|
-
private pendingPlanImplementations;
|
|
58
56
|
private pendingLoginsByScope;
|
|
59
57
|
private pendingLoginScopesById;
|
|
60
58
|
private pendingAuthAddsByLoginId;
|
|
@@ -159,6 +157,8 @@ export declare class BridgeSessionCore {
|
|
|
159
157
|
private maybeSendPlanImplementationPrompt;
|
|
160
158
|
private findPendingPlanImplementation;
|
|
161
159
|
private clearPlanImplementationPromptsForScope;
|
|
160
|
+
private pendingPlanImplementationFromSession;
|
|
161
|
+
private restoreGuidedPlanSessions;
|
|
162
162
|
private hasPendingUserInputForTurn;
|
|
163
163
|
private finalizeUserInputsForTurn;
|
|
164
164
|
private handlePlanImplementationCallback;
|
|
@@ -173,8 +173,15 @@ export declare class BridgeSessionCore {
|
|
|
173
173
|
private createBinding;
|
|
174
174
|
private startTurnWithRecovery;
|
|
175
175
|
private buildTurnInput;
|
|
176
|
+
private buildTurnInputFromStagedAttachments;
|
|
176
177
|
private resolveServiceTierForTurn;
|
|
177
178
|
private stageAttachments;
|
|
179
|
+
private handleTelegramAttachmentBatch;
|
|
180
|
+
private consumePendingAttachmentBatchWithText;
|
|
181
|
+
private handleAttachmentBatchCallback;
|
|
182
|
+
private consumePendingAttachmentBatch;
|
|
183
|
+
private startTurnFromPreparedAttachmentBatch;
|
|
184
|
+
private renderAttachmentBatchCard;
|
|
178
185
|
private registerActiveTurn;
|
|
179
186
|
private createActiveTurnState;
|
|
180
187
|
getCurrentAuthLabel(): Promise<string | null>;
|
|
@@ -247,7 +254,11 @@ export declare class BridgeSessionCore {
|
|
|
247
254
|
private handleActiveTurnInboundMessage;
|
|
248
255
|
private queuePromptAfterActiveTurn;
|
|
249
256
|
private steerActiveTurn;
|
|
257
|
+
private enqueuePreparedTurnInput;
|
|
258
|
+
private startBoundTurnFromQueuedInput;
|
|
250
259
|
private startQueuedPromptIfPresent;
|
|
260
|
+
private recoverQueuedTurns;
|
|
261
|
+
private markQueuedTurnCompleted;
|
|
251
262
|
private handleModeCommand;
|
|
252
263
|
private handleActiveTurnMessageModeCommand;
|
|
253
264
|
private handleGoalCommand;
|
|
@@ -263,6 +274,7 @@ export declare class BridgeSessionCore {
|
|
|
263
274
|
private clearSelfUpdateStatusPoll;
|
|
264
275
|
private pollSelfUpdateStatus;
|
|
265
276
|
private formatSelfUpdateResult;
|
|
277
|
+
private formatSelfUpdateReleaseNotes;
|
|
266
278
|
private formatCodexUpdateResult;
|
|
267
279
|
private scheduleProactiveAuthRefresh;
|
|
268
280
|
private clearProactiveAuthRefreshTimer;
|