opencode-swarm 6.78.0 → 6.79.0
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 +30 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25944,6 +25944,36 @@ function applyRehydrationCache(session) {
|
|
|
25944
25944
|
}
|
|
25945
25945
|
}
|
|
25946
25946
|
}
|
|
25947
|
+
const VALID_COUNCIL_VERDICTS = new Set([
|
|
25948
|
+
"APPROVE",
|
|
25949
|
+
"REJECT",
|
|
25950
|
+
"CONCERNS"
|
|
25951
|
+
]);
|
|
25952
|
+
for (const [taskId, evidence] of evidenceMap) {
|
|
25953
|
+
if (session.taskCouncilApproved.has(taskId)) {
|
|
25954
|
+
continue;
|
|
25955
|
+
}
|
|
25956
|
+
const council = evidence.gates?.council;
|
|
25957
|
+
if (!council) {
|
|
25958
|
+
continue;
|
|
25959
|
+
}
|
|
25960
|
+
const rawVerdict = council.verdict;
|
|
25961
|
+
if (!rawVerdict || typeof rawVerdict !== "string") {
|
|
25962
|
+
continue;
|
|
25963
|
+
}
|
|
25964
|
+
if (!VALID_COUNCIL_VERDICTS.has(rawVerdict)) {
|
|
25965
|
+
continue;
|
|
25966
|
+
}
|
|
25967
|
+
const verdict = rawVerdict;
|
|
25968
|
+
let roundNumber = council.roundNumber;
|
|
25969
|
+
if (typeof roundNumber !== "number" || !Number.isFinite(roundNumber)) {
|
|
25970
|
+
roundNumber = 1;
|
|
25971
|
+
}
|
|
25972
|
+
session.taskCouncilApproved.set(taskId, {
|
|
25973
|
+
verdict,
|
|
25974
|
+
roundNumber
|
|
25975
|
+
});
|
|
25976
|
+
}
|
|
25947
25977
|
}
|
|
25948
25978
|
async function rehydrateSessionFromDisk(directory, session) {
|
|
25949
25979
|
await buildRehydrationCache(directory);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.79.0",
|
|
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",
|