agent-swarm-kit 1.0.22 → 1.0.23

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 CHANGED
@@ -4200,17 +4200,14 @@ var DEFAULT_TIMEOUT = 15 * 60;
4200
4200
  */
4201
4201
  var makeAutoDispose = function (clientId, swarmName, _a) {
4202
4202
  var _b = _a === void 0 ? {} : _a, _c = _b.timeoutSeconds, timeoutSeconds = _c === void 0 ? DEFAULT_TIMEOUT : _c;
4203
- var stateEmitter = new functoolsKit.Subject();
4204
- var unSource = functoolsKit.Source.join([
4205
- stateEmitter.toObserver(),
4206
- functoolsKit.Source.fromInterval(1000),
4207
- ])
4208
- .reduce(function (acm, _a) {
4209
- var _b = __read(_a, 1), isOk = _b[0];
4203
+ var isOk = true;
4204
+ var unSource = functoolsKit.Source.fromInterval(1000)
4205
+ .reduce(function (acm) {
4210
4206
  if (isOk) {
4211
- return acm + 1;
4207
+ isOk = false;
4208
+ return 0;
4212
4209
  }
4213
- return 0;
4210
+ return acm + 1;
4214
4211
  }, 0)
4215
4212
  .filter(function (ticker) { return ticker >= timeoutSeconds; })
4216
4213
  .once(function () { return __awaiter(void 0, void 0, void 0, function () {
@@ -4232,7 +4229,7 @@ var makeAutoDispose = function (clientId, swarmName, _a) {
4232
4229
  * Signals that the client is active, resetting the auto-dispose timer.
4233
4230
  */
4234
4231
  tick: function () {
4235
- stateEmitter.next(true);
4232
+ isOk = true;
4236
4233
  },
4237
4234
  /**
4238
4235
  * Stops the auto-dispose mechanism.
package/build/index.mjs CHANGED
@@ -4198,17 +4198,14 @@ var DEFAULT_TIMEOUT = 15 * 60;
4198
4198
  */
4199
4199
  var makeAutoDispose = function (clientId, swarmName, _a) {
4200
4200
  var _b = _a === void 0 ? {} : _a, _c = _b.timeoutSeconds, timeoutSeconds = _c === void 0 ? DEFAULT_TIMEOUT : _c;
4201
- var stateEmitter = new Subject();
4202
- var unSource = Source.join([
4203
- stateEmitter.toObserver(),
4204
- Source.fromInterval(1000),
4205
- ])
4206
- .reduce(function (acm, _a) {
4207
- var _b = __read(_a, 1), isOk = _b[0];
4201
+ var isOk = true;
4202
+ var unSource = Source.fromInterval(1000)
4203
+ .reduce(function (acm) {
4208
4204
  if (isOk) {
4209
- return acm + 1;
4205
+ isOk = false;
4206
+ return 0;
4210
4207
  }
4211
- return 0;
4208
+ return acm + 1;
4212
4209
  }, 0)
4213
4210
  .filter(function (ticker) { return ticker >= timeoutSeconds; })
4214
4211
  .once(function () { return __awaiter(void 0, void 0, void 0, function () {
@@ -4230,7 +4227,7 @@ var makeAutoDispose = function (clientId, swarmName, _a) {
4230
4227
  * Signals that the client is active, resetting the auto-dispose timer.
4231
4228
  */
4232
4229
  tick: function () {
4233
- stateEmitter.next(true);
4230
+ isOk = true;
4234
4231
  },
4235
4232
  /**
4236
4233
  * Stops the auto-dispose mechanism.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-swarm-kit",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "A TypeScript library for building orchestrated framework-agnostic multi-agent AI systems",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",