agent-swarm-kit 1.1.0 → 1.1.1
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/build/index.cjs +3 -0
- package/build/index.mjs +3 -0
- package/package.json +1 -1
package/build/index.cjs
CHANGED
|
@@ -17228,6 +17228,7 @@ const CHANGE_AGENT_GC$2 = 60 * 1000;
|
|
|
17228
17228
|
*/
|
|
17229
17229
|
const createChangeToAgent = functoolsKit.ttl((clientId) => functoolsKit.queued(async (methodName, agentName, swarmName) => {
|
|
17230
17230
|
if (!swarm$1.navigationValidationService.shouldNavigate(agentName, clientId, swarmName)) {
|
|
17231
|
+
console.warn(`function "changeToAgent" skipped due to circular route found clientId=${clientId} swarmName=${swarmName} agentNameTo=${agentName}`);
|
|
17231
17232
|
return false;
|
|
17232
17233
|
}
|
|
17233
17234
|
// Notify all agents in the swarm of the change
|
|
@@ -17297,7 +17298,9 @@ const changeToAgent = beginContext(async (agentName, clientId) => {
|
|
|
17297
17298
|
swarm$1.loggerService.log('function "changeToAgent" skipped due to the agent is not in the swarm', {
|
|
17298
17299
|
agentName,
|
|
17299
17300
|
clientId,
|
|
17301
|
+
swarmName,
|
|
17300
17302
|
});
|
|
17303
|
+
console.warn(`function "changeToAgent" skipped due to the agent is not in the swarm clientId=${clientId} agentName=${agentName} swarmName=${swarmName}`);
|
|
17301
17304
|
return false;
|
|
17302
17305
|
}
|
|
17303
17306
|
// Execute the agent change with TTL and queuing
|
package/build/index.mjs
CHANGED
|
@@ -17226,6 +17226,7 @@ const CHANGE_AGENT_GC$2 = 60 * 1000;
|
|
|
17226
17226
|
*/
|
|
17227
17227
|
const createChangeToAgent = ttl((clientId) => queued(async (methodName, agentName, swarmName) => {
|
|
17228
17228
|
if (!swarm$1.navigationValidationService.shouldNavigate(agentName, clientId, swarmName)) {
|
|
17229
|
+
console.warn(`function "changeToAgent" skipped due to circular route found clientId=${clientId} swarmName=${swarmName} agentNameTo=${agentName}`);
|
|
17229
17230
|
return false;
|
|
17230
17231
|
}
|
|
17231
17232
|
// Notify all agents in the swarm of the change
|
|
@@ -17295,7 +17296,9 @@ const changeToAgent = beginContext(async (agentName, clientId) => {
|
|
|
17295
17296
|
swarm$1.loggerService.log('function "changeToAgent" skipped due to the agent is not in the swarm', {
|
|
17296
17297
|
agentName,
|
|
17297
17298
|
clientId,
|
|
17299
|
+
swarmName,
|
|
17298
17300
|
});
|
|
17301
|
+
console.warn(`function "changeToAgent" skipped due to the agent is not in the swarm clientId=${clientId} agentName=${agentName} swarmName=${swarmName}`);
|
|
17299
17302
|
return false;
|
|
17300
17303
|
}
|
|
17301
17304
|
// Execute the agent change with TTL and queuing
|