@aion0/forge 0.5.17 → 0.5.19
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/.forge/mcp.json +1 -1
- package/RELEASE_NOTES.md +5 -12
- package/lib/workspace/orchestrator.ts +10 -5
- package/lib/workspace/session-monitor.ts +2 -2
- package/next-env.d.ts +1 -1
- package/package.json +1 -1
package/.forge/mcp.json
CHANGED
package/RELEASE_NOTES.md
CHANGED
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
# Forge v0.5.
|
|
1
|
+
# Forge v0.5.19
|
|
2
2
|
|
|
3
|
-
Released: 2026-
|
|
3
|
+
Released: 2026-04-01
|
|
4
4
|
|
|
5
|
-
## Changes since v0.5.
|
|
5
|
+
## Changes since v0.5.18
|
|
6
6
|
|
|
7
7
|
### Bug Fixes
|
|
8
|
-
- fix:
|
|
9
|
-
- fix: reset warmup count on startMonitoring and resetState
|
|
10
|
-
- fix: warmup 7 polls — poll 7 sets fresh baseline before real detection
|
|
11
|
-
- fix: warmup 6 polls (~18s) before first running detection
|
|
12
|
-
- fix: poll 3s with 4-poll warmup (12s before first running detection)
|
|
13
|
-
- fix: session monitor poll interval 3s → 6s
|
|
14
|
-
- fix: read fixedSessionId directly from file instead of dynamic import
|
|
15
|
-
- fix: add logging for fixedSession resolution in ensurePersistentSession
|
|
8
|
+
- fix: session monitor also reads fixedSession from file, not dynamic import
|
|
16
9
|
|
|
17
10
|
|
|
18
|
-
**Full Changelog**: https://github.com/aiwatching/forge/compare/v0.5.
|
|
11
|
+
**Full Changelog**: https://github.com/aiwatching/forge/compare/v0.5.18...v0.5.19
|
|
@@ -1175,11 +1175,14 @@ export class WorkspaceOrchestrator extends EventEmitter {
|
|
|
1175
1175
|
|
|
1176
1176
|
if (config.primary) {
|
|
1177
1177
|
try {
|
|
1178
|
-
const
|
|
1179
|
-
|
|
1178
|
+
const psPath = join(homedir(), '.forge', 'data', 'project-sessions.json');
|
|
1179
|
+
if (existsSync(psPath)) {
|
|
1180
|
+
const psData = JSON.parse(readFileSync(psPath, 'utf-8'));
|
|
1181
|
+
sessionId = psData[this.projectPath];
|
|
1182
|
+
}
|
|
1180
1183
|
console.log(`[session-monitor] ${config.label}: primary fixedSession=${sessionId || 'NONE'}`);
|
|
1181
1184
|
} catch (err: any) {
|
|
1182
|
-
console.log(`[session-monitor] ${config.label}: failed to
|
|
1185
|
+
console.log(`[session-monitor] ${config.label}: failed to read fixedSession: ${err.message}`);
|
|
1183
1186
|
}
|
|
1184
1187
|
} else {
|
|
1185
1188
|
sessionId = config.boundSessionId;
|
|
@@ -2264,8 +2267,10 @@ export class WorkspaceOrchestrator extends EventEmitter {
|
|
|
2264
2267
|
this.emitAgentsChanged();
|
|
2265
2268
|
}
|
|
2266
2269
|
|
|
2267
|
-
//
|
|
2268
|
-
|
|
2270
|
+
// Start session monitor only for newly created sessions (not existing ones)
|
|
2271
|
+
if (!sessionAlreadyExists) {
|
|
2272
|
+
this.startAgentSessionMonitor(agentId, config);
|
|
2273
|
+
}
|
|
2269
2274
|
|
|
2270
2275
|
// Ensure boundSessionId is set (required for session monitor + --resume)
|
|
2271
2276
|
if (!config.primary && !config.boundSessionId) {
|
|
@@ -97,8 +97,8 @@ export class SessionFileMonitor extends EventEmitter {
|
|
|
97
97
|
resetState(agentId: string): void {
|
|
98
98
|
this.currentState.set(agentId, 'idle');
|
|
99
99
|
this.lastStableTime.set(agentId, Date.now());
|
|
100
|
-
|
|
101
|
-
//
|
|
100
|
+
// Don't reset warmupCount here — warmup only on startMonitoring (fresh start/restart)
|
|
101
|
+
// 10s suppress is enough to prevent immediate flip-back after hook/button
|
|
102
102
|
this.suppressUntil.set(agentId, Date.now() + 10_000);
|
|
103
103
|
}
|
|
104
104
|
|
package/next-env.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="next" />
|
|
2
2
|
/// <reference types="next/image-types/global" />
|
|
3
|
-
import "./.next/
|
|
3
|
+
import "./.next/types/routes.d.ts";
|
|
4
4
|
|
|
5
5
|
// NOTE: This file should not be edited
|
|
6
6
|
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
package/package.json
CHANGED