@eko-ai/eko 2.1.9-alpha.1 → 2.1.9-alpha.2
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.cjs.js +8 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -12
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -17011,10 +17011,8 @@ function detectAndBreakCycles(agents) {
|
|
|
17011
17011
|
filteredDependsOn.push(firstValidDep);
|
|
17012
17012
|
}
|
|
17013
17013
|
}
|
|
17014
|
-
|
|
17015
|
-
|
|
17016
|
-
dependsOn: filteredDependsOn,
|
|
17017
|
-
});
|
|
17014
|
+
agent.dependsOn = filteredDependsOn;
|
|
17015
|
+
fixedAgents.push(agent);
|
|
17018
17016
|
if (filteredDependsOn.length !== agent.dependsOn.length) {
|
|
17019
17017
|
console.warn(`The partial cyclic dependency of agent ${agent.id} has been disconnected.`);
|
|
17020
17018
|
}
|
|
@@ -17022,19 +17020,17 @@ function detectAndBreakCycles(agents) {
|
|
|
17022
17020
|
else {
|
|
17023
17021
|
// Non-cyclic node, filter out non-existent dependencies
|
|
17024
17022
|
const validDependsOn = agent.dependsOn.filter((depId) => agentMap.has(depId));
|
|
17025
|
-
|
|
17026
|
-
|
|
17027
|
-
dependsOn: validDependsOn,
|
|
17028
|
-
});
|
|
17023
|
+
agent.dependsOn = validDependsOn;
|
|
17024
|
+
fixedAgents.push(agent);
|
|
17029
17025
|
}
|
|
17030
17026
|
}
|
|
17031
17027
|
return fixedAgents;
|
|
17032
17028
|
}
|
|
17033
17029
|
// No loops, just need to filter out non-existent dependencies
|
|
17034
|
-
return agents.map((agent) =>
|
|
17035
|
-
|
|
17036
|
-
|
|
17037
|
-
})
|
|
17030
|
+
return agents.map((agent) => {
|
|
17031
|
+
agent.dependsOn = agent.dependsOn.filter((depId) => agentMap.has(depId));
|
|
17032
|
+
return agent;
|
|
17033
|
+
});
|
|
17038
17034
|
}
|
|
17039
17035
|
|
|
17040
17036
|
function parseWorkflow(taskId, xml, done, thinking) {
|