opencode-swarm 6.22.12 → 6.22.13
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 +8 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -54491,6 +54491,11 @@ import * as fs25 from "fs";
|
|
|
54491
54491
|
import * as path37 from "path";
|
|
54492
54492
|
init_utils2();
|
|
54493
54493
|
init_create_tool();
|
|
54494
|
+
function safeWarn(message, error93) {
|
|
54495
|
+
try {
|
|
54496
|
+
console.warn(message, error93);
|
|
54497
|
+
} catch {}
|
|
54498
|
+
}
|
|
54494
54499
|
function collectCrossSessionDispatchedAgents(phaseReferenceTimestamp, callerSessionId) {
|
|
54495
54500
|
const agents = new Set;
|
|
54496
54501
|
const contributorSessionIds = [];
|
|
@@ -54502,11 +54507,6 @@ function collectCrossSessionDispatchedAgents(phaseReferenceTimestamp, callerSess
|
|
|
54502
54507
|
agents.add(agent);
|
|
54503
54508
|
}
|
|
54504
54509
|
}
|
|
54505
|
-
if (callerSession.lastCompletedPhaseAgentsDispatched) {
|
|
54506
|
-
for (const agent of callerSession.lastCompletedPhaseAgentsDispatched) {
|
|
54507
|
-
agents.add(agent);
|
|
54508
|
-
}
|
|
54509
|
-
}
|
|
54510
54510
|
const callerDelegations = swarmState.delegationChains.get(callerSessionId);
|
|
54511
54511
|
if (callerDelegations) {
|
|
54512
54512
|
for (const delegation of callerDelegations) {
|
|
@@ -54531,11 +54531,6 @@ function collectCrossSessionDispatchedAgents(phaseReferenceTimestamp, callerSess
|
|
|
54531
54531
|
agents.add(agent);
|
|
54532
54532
|
}
|
|
54533
54533
|
}
|
|
54534
|
-
if (session.lastCompletedPhaseAgentsDispatched) {
|
|
54535
|
-
for (const agent of session.lastCompletedPhaseAgentsDispatched) {
|
|
54536
|
-
agents.add(agent);
|
|
54537
|
-
}
|
|
54538
|
-
}
|
|
54539
54534
|
const delegations2 = swarmState.delegationChains.get(sessionId);
|
|
54540
54535
|
if (delegations2) {
|
|
54541
54536
|
for (const delegation of delegations2) {
|
|
@@ -54714,7 +54709,7 @@ async function executePhaseComplete(args2, workingDirectory) {
|
|
|
54714
54709
|
};
|
|
54715
54710
|
await curateAndStoreSwarm(retroEntry.lessons_learned, projectName, { phase_number: phase }, dir, knowledgeConfig);
|
|
54716
54711
|
} catch (error93) {
|
|
54717
|
-
|
|
54712
|
+
safeWarn("[phase_complete] Failed to curate lessons from retrospective:", error93);
|
|
54718
54713
|
}
|
|
54719
54714
|
}
|
|
54720
54715
|
try {
|
|
@@ -54725,7 +54720,7 @@ async function executePhaseComplete(args2, workingDirectory) {
|
|
|
54725
54720
|
await runCriticDriftCheck(dir, phase, curatorResult, curatorConfig);
|
|
54726
54721
|
}
|
|
54727
54722
|
} catch (curatorError) {
|
|
54728
|
-
|
|
54723
|
+
safeWarn("[phase_complete] Curator pipeline error (non-blocking):", curatorError);
|
|
54729
54724
|
}
|
|
54730
54725
|
const effectiveRequired = [...phaseCompleteConfig.required_agents];
|
|
54731
54726
|
if (phaseCompleteConfig.require_docs && !effectiveRequired.includes("docs")) {
|
|
@@ -54747,7 +54742,7 @@ async function executePhaseComplete(args2, workingDirectory) {
|
|
|
54747
54742
|
}
|
|
54748
54743
|
const VALID_TASK_COMPLEXITY = ["trivial", "simple", "moderate", "complex"];
|
|
54749
54744
|
const firstEntry = loadedRetroBundle?.entries?.[0];
|
|
54750
|
-
if (loadedRetroTaskId?.startsWith("retro-") && loadedRetroBundle?.schema_version === "1.0.0" && firstEntry?.task_complexity && VALID_TASK_COMPLEXITY.includes(firstEntry.task_complexity)) {
|
|
54745
|
+
if (loadedRetroTaskId !== primaryRetroTaskId && loadedRetroTaskId?.startsWith("retro-") && loadedRetroBundle?.schema_version === "1.0.0" && firstEntry?.task_complexity && VALID_TASK_COMPLEXITY.includes(firstEntry.task_complexity)) {
|
|
54751
54746
|
warnings.push(`Retrospective data for phase ${phase} may have been automatically migrated to current schema format.`);
|
|
54752
54747
|
}
|
|
54753
54748
|
let success3 = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "6.22.
|
|
3
|
+
"version": "6.22.13",
|
|
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",
|