opencode-swarm 6.33.4 → 6.33.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/dist/index.js +19 -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,
|
|
@@ -55056,8 +55057,25 @@ async function rehydrateState(snapshot) {
|
|
|
55056
55057
|
for (const window2 of Object.values(session.windows)) {
|
|
55057
55058
|
window2.startedAtMs = now;
|
|
55058
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 = "";
|
|
55059
55066
|
}
|
|
55060
55067
|
}
|
|
55068
|
+
session.revisionLimitHit = false;
|
|
55069
|
+
session.coderRevisions = 0;
|
|
55070
|
+
session.selfFixAttempted = false;
|
|
55071
|
+
session.lastGateFailure = null;
|
|
55072
|
+
session.architectWriteCount = 0;
|
|
55073
|
+
session.selfCodingWarnedAtCount = 0;
|
|
55074
|
+
session.pendingAdvisoryMessages = [];
|
|
55075
|
+
session.model_fallback_index = 0;
|
|
55076
|
+
session.modelFallbackExhausted = false;
|
|
55077
|
+
session.scopeViolationDetected = false;
|
|
55078
|
+
session.delegationActive = false;
|
|
55061
55079
|
swarmState.agentSessions.set(sessionId, session);
|
|
55062
55080
|
}
|
|
55063
55081
|
}
|
|
@@ -65290,7 +65308,7 @@ var OpenCodeSwarm = async (ctx) => {
|
|
|
65290
65308
|
if (session && activeAgent && activeAgent !== ORCHESTRATOR_NAME) {
|
|
65291
65309
|
const stripActive = stripKnownSwarmPrefix(activeAgent);
|
|
65292
65310
|
if (stripActive !== ORCHESTRATOR_NAME) {
|
|
65293
|
-
const staleDelegation = !session.delegationActive
|
|
65311
|
+
const staleDelegation = !session.delegationActive && Date.now() - session.lastAgentEventTime > 1e4;
|
|
65294
65312
|
if (staleDelegation) {
|
|
65295
65313
|
swarmState.activeAgent.set(input.sessionID, ORCHESTRATOR_NAME);
|
|
65296
65314
|
ensureAgentSession(input.sessionID, ORCHESTRATOR_NAME);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "6.33.
|
|
3
|
+
"version": "6.33.6",
|
|
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",
|