agent-swarm-kit 1.0.108 → 1.0.109
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 +8 -1
- package/build/index.mjs +8 -1
- package/package.json +1 -1
package/build/index.cjs
CHANGED
|
@@ -5383,6 +5383,10 @@ var SessionValidationService = /** @class */ (function () {
|
|
|
5383
5383
|
_this.loggerService.info("sessionValidationService addSession", {
|
|
5384
5384
|
clientId: clientId,
|
|
5385
5385
|
});
|
|
5386
|
+
if (!clientId) {
|
|
5387
|
+
console.error("agent-swarm session clientId=".concat(clientId, " already exist"));
|
|
5388
|
+
return;
|
|
5389
|
+
}
|
|
5386
5390
|
if (_this._sessionSwarmMap.has(clientId)) {
|
|
5387
5391
|
throw new Error("agent-swarm session clientId=".concat(clientId, " already exist"));
|
|
5388
5392
|
}
|
|
@@ -5665,6 +5669,9 @@ var SessionValidationService = /** @class */ (function () {
|
|
|
5665
5669
|
_this.loggerService.info("sessionValidationService validate", {
|
|
5666
5670
|
clientId: clientId,
|
|
5667
5671
|
});
|
|
5672
|
+
if (!clientId) {
|
|
5673
|
+
throw new Error("agent-swarm session clientId is missing source=".concat(source));
|
|
5674
|
+
}
|
|
5668
5675
|
if (!_this._sessionSwarmMap.has(clientId)) {
|
|
5669
5676
|
throw new Error("agent-swarm session clientId=".concat(clientId, " not exist source=").concat(source));
|
|
5670
5677
|
}
|
|
@@ -5676,7 +5683,7 @@ var SessionValidationService = /** @class */ (function () {
|
|
|
5676
5683
|
*/
|
|
5677
5684
|
this.removeSession = function (clientId) {
|
|
5678
5685
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO &&
|
|
5679
|
-
_this.loggerService.info("sessionValidationService
|
|
5686
|
+
_this.loggerService.info("sessionValidationService removeSession", {
|
|
5680
5687
|
clientId: clientId,
|
|
5681
5688
|
});
|
|
5682
5689
|
_this._sessionSwarmMap.delete(clientId);
|
package/build/index.mjs
CHANGED
|
@@ -5381,6 +5381,10 @@ var SessionValidationService = /** @class */ (function () {
|
|
|
5381
5381
|
_this.loggerService.info("sessionValidationService addSession", {
|
|
5382
5382
|
clientId: clientId,
|
|
5383
5383
|
});
|
|
5384
|
+
if (!clientId) {
|
|
5385
|
+
console.error("agent-swarm session clientId=".concat(clientId, " already exist"));
|
|
5386
|
+
return;
|
|
5387
|
+
}
|
|
5384
5388
|
if (_this._sessionSwarmMap.has(clientId)) {
|
|
5385
5389
|
throw new Error("agent-swarm session clientId=".concat(clientId, " already exist"));
|
|
5386
5390
|
}
|
|
@@ -5663,6 +5667,9 @@ var SessionValidationService = /** @class */ (function () {
|
|
|
5663
5667
|
_this.loggerService.info("sessionValidationService validate", {
|
|
5664
5668
|
clientId: clientId,
|
|
5665
5669
|
});
|
|
5670
|
+
if (!clientId) {
|
|
5671
|
+
throw new Error("agent-swarm session clientId is missing source=".concat(source));
|
|
5672
|
+
}
|
|
5666
5673
|
if (!_this._sessionSwarmMap.has(clientId)) {
|
|
5667
5674
|
throw new Error("agent-swarm session clientId=".concat(clientId, " not exist source=").concat(source));
|
|
5668
5675
|
}
|
|
@@ -5674,7 +5681,7 @@ var SessionValidationService = /** @class */ (function () {
|
|
|
5674
5681
|
*/
|
|
5675
5682
|
this.removeSession = function (clientId) {
|
|
5676
5683
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO &&
|
|
5677
|
-
_this.loggerService.info("sessionValidationService
|
|
5684
|
+
_this.loggerService.info("sessionValidationService removeSession", {
|
|
5678
5685
|
clientId: clientId,
|
|
5679
5686
|
});
|
|
5680
5687
|
_this._sessionSwarmMap.delete(clientId);
|