opencode-swarm 6.33.3 → 6.33.5
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 +18 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -54991,6 +54991,7 @@ function deserializeAgentSession(s) {
|
|
|
54991
54991
|
lastScopeViolation: null,
|
|
54992
54992
|
scopeViolationDetected: s.scopeViolationDetected,
|
|
54993
54993
|
modifiedFilesThisCoderTask: [],
|
|
54994
|
+
loopDetectionWindow: [],
|
|
54994
54995
|
pendingAdvisoryMessages: s.pendingAdvisoryMessages ?? [],
|
|
54995
54996
|
model_fallback_index: s.model_fallback_index ?? 0,
|
|
54996
54997
|
modelFallbackExhausted: s.modelFallbackExhausted ?? false,
|
|
@@ -55042,13 +55043,29 @@ async function rehydrateState(snapshot) {
|
|
|
55042
55043
|
swarmState.delegationChains.set(key, value);
|
|
55043
55044
|
}
|
|
55044
55045
|
}
|
|
55046
|
+
const now = Date.now();
|
|
55045
55047
|
if (snapshot.agentSessions) {
|
|
55046
55048
|
for (const [sessionId, serializedSession] of Object.entries(snapshot.agentSessions)) {
|
|
55047
55049
|
if (!serializedSession || typeof serializedSession !== "object" || typeof serializedSession.agentName !== "string" || typeof serializedSession.lastToolCallTime !== "number" || typeof serializedSession.delegationActive !== "boolean") {
|
|
55048
55050
|
console.warn("[snapshot-reader] Skipping malformed session %s: missing required fields (agentName, lastToolCallTime, delegationActive)", sessionId);
|
|
55049
55051
|
continue;
|
|
55050
55052
|
}
|
|
55051
|
-
|
|
55053
|
+
const session = deserializeAgentSession(serializedSession);
|
|
55054
|
+
session.lastToolCallTime = now;
|
|
55055
|
+
session.lastAgentEventTime = now;
|
|
55056
|
+
if (session.windows) {
|
|
55057
|
+
for (const window2 of Object.values(session.windows)) {
|
|
55058
|
+
window2.startedAtMs = now;
|
|
55059
|
+
window2.lastSuccessTimeMs = now;
|
|
55060
|
+
window2.hardLimitHit = false;
|
|
55061
|
+
window2.toolCalls = 0;
|
|
55062
|
+
window2.consecutiveErrors = 0;
|
|
55063
|
+
window2.recentToolCalls = [];
|
|
55064
|
+
window2.warningIssued = false;
|
|
55065
|
+
window2.warningReason = "";
|
|
55066
|
+
}
|
|
55067
|
+
}
|
|
55068
|
+
swarmState.agentSessions.set(sessionId, session);
|
|
55052
55069
|
}
|
|
55053
55070
|
}
|
|
55054
55071
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "6.33.
|
|
3
|
+
"version": "6.33.5",
|
|
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",
|