opencode-swarm 6.33.3 → 6.33.4
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/dist/index.js +11 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -55042,13 +55042,23 @@ async function rehydrateState(snapshot) {
|
|
|
55042
55042
|
swarmState.delegationChains.set(key, value);
|
|
55043
55043
|
}
|
|
55044
55044
|
}
|
|
55045
|
+
const now = Date.now();
|
|
55045
55046
|
if (snapshot.agentSessions) {
|
|
55046
55047
|
for (const [sessionId, serializedSession] of Object.entries(snapshot.agentSessions)) {
|
|
55047
55048
|
if (!serializedSession || typeof serializedSession !== "object" || typeof serializedSession.agentName !== "string" || typeof serializedSession.lastToolCallTime !== "number" || typeof serializedSession.delegationActive !== "boolean") {
|
|
55048
55049
|
console.warn("[snapshot-reader] Skipping malformed session %s: missing required fields (agentName, lastToolCallTime, delegationActive)", sessionId);
|
|
55049
55050
|
continue;
|
|
55050
55051
|
}
|
|
55051
|
-
|
|
55052
|
+
const session = deserializeAgentSession(serializedSession);
|
|
55053
|
+
session.lastToolCallTime = now;
|
|
55054
|
+
session.lastAgentEventTime = now;
|
|
55055
|
+
if (session.windows) {
|
|
55056
|
+
for (const window2 of Object.values(session.windows)) {
|
|
55057
|
+
window2.startedAtMs = now;
|
|
55058
|
+
window2.lastSuccessTimeMs = now;
|
|
55059
|
+
}
|
|
55060
|
+
}
|
|
55061
|
+
swarmState.agentSessions.set(sessionId, session);
|
|
55052
55062
|
}
|
|
55053
55063
|
}
|
|
55054
55064
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "6.33.
|
|
3
|
+
"version": "6.33.4",
|
|
4
4
|
"description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|