@elizaos/cli 1.6.5-alpha.17 → 1.6.5-alpha.19

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 CHANGED
@@ -4653,7 +4653,7 @@ __export(exports_version, {
4653
4653
  BUILD_TIME: () => BUILD_TIME,
4654
4654
  BUILD_ENV: () => BUILD_ENV
4655
4655
  });
4656
- var CLI_VERSION = "1.6.5-alpha.17", CLI_NAME = "@elizaos/cli", CLI_DESCRIPTION = "elizaOS CLI - Manage your AI agents and plugins", BUILD_TIME = "2025-12-01T09:37:18.090Z", BUILD_ENV = "production", version_default;
4656
+ var CLI_VERSION = "1.6.5-alpha.19", CLI_NAME = "@elizaos/cli", CLI_DESCRIPTION = "elizaOS CLI - Manage your AI agents and plugins", BUILD_TIME = "2025-12-01T16:00:41.261Z", BUILD_ENV = "production", version_default;
4657
4657
  var init_version = __esm(() => {
4658
4658
  version_default = {
4659
4659
  version: CLI_VERSION,
@@ -291185,6 +291185,7 @@ class LRUCache {
291185
291185
  #sizes;
291186
291186
  #starts;
291187
291187
  #ttls;
291188
+ #autopurgeTimers;
291188
291189
  #hasDispose;
291189
291190
  #hasFetchMethod;
291190
291191
  #hasDisposeAfter;
@@ -291193,6 +291194,7 @@ class LRUCache {
291193
291194
  return {
291194
291195
  starts: c3.#starts,
291195
291196
  ttls: c3.#ttls,
291197
+ autopurgeTimers: c3.#autopurgeTimers,
291196
291198
  sizes: c3.#sizes,
291197
291199
  keyMap: c3.#keyMap,
291198
291200
  keyList: c3.#keyList,
@@ -291353,10 +291355,16 @@ class LRUCache {
291353
291355
  const starts = new ZeroArray(this.#max);
291354
291356
  this.#ttls = ttls;
291355
291357
  this.#starts = starts;
291358
+ const purgeTimers = this.ttlAutopurge ? new Array(this.#max) : undefined;
291359
+ this.#autopurgeTimers = purgeTimers;
291356
291360
  this.#setItemTTL = (index, ttl, start = this.#perf.now()) => {
291357
291361
  starts[index] = ttl !== 0 ? start : 0;
291358
291362
  ttls[index] = ttl;
291359
- if (ttl !== 0 && this.ttlAutopurge) {
291363
+ if (purgeTimers?.[index]) {
291364
+ clearTimeout(purgeTimers[index]);
291365
+ purgeTimers[index] = undefined;
291366
+ }
291367
+ if (ttl !== 0 && purgeTimers) {
291360
291368
  const t = setTimeout(() => {
291361
291369
  if (this.#isStale(index)) {
291362
291370
  this.#delete(this.#keyList[index], "expire");
@@ -291365,6 +291373,7 @@ class LRUCache {
291365
291373
  if (t.unref) {
291366
291374
  t.unref();
291367
291375
  }
291376
+ purgeTimers[index] = t;
291368
291377
  }
291369
291378
  };
291370
291379
  this.#updateItemAge = (index) => {
@@ -291777,6 +291786,10 @@ class LRUCache {
291777
291786
  }
291778
291787
  }
291779
291788
  this.#removeItemSize(head);
291789
+ if (this.#autopurgeTimers?.[head]) {
291790
+ clearTimeout(this.#autopurgeTimers[head]);
291791
+ this.#autopurgeTimers[head] = undefined;
291792
+ }
291780
291793
  if (free) {
291781
291794
  this.#keyList[head] = undefined;
291782
291795
  this.#valList[head] = undefined;
@@ -292111,6 +292124,10 @@ class LRUCache {
292111
292124
  if (this.#size !== 0) {
292112
292125
  const index = this.#keyMap.get(k3);
292113
292126
  if (index !== undefined) {
292127
+ if (this.#autopurgeTimers?.[index]) {
292128
+ clearTimeout(this.#autopurgeTimers?.[index]);
292129
+ this.#autopurgeTimers[index] = undefined;
292130
+ }
292114
292131
  deleted = true;
292115
292132
  if (this.#size === 1) {
292116
292133
  this.#clear(reason);
@@ -292178,6 +292195,11 @@ class LRUCache {
292178
292195
  if (this.#ttls && this.#starts) {
292179
292196
  this.#ttls.fill(0);
292180
292197
  this.#starts.fill(0);
292198
+ for (const t of this.#autopurgeTimers ?? []) {
292199
+ if (t !== undefined)
292200
+ clearTimeout(t);
292201
+ }
292202
+ this.#autopurgeTimers?.fill(undefined);
292181
292203
  }
292182
292204
  if (this.#sizes) {
292183
292205
  this.#sizes.fill(0);
@@ -313414,5 +313436,5 @@ main().catch((error46) => {
313414
313436
  process.exit(1);
313415
313437
  });
313416
313438
 
313417
- //# debugId=3D0740115BC676E964756E2164756E21
313439
+ //# debugId=6476EC5F7793D23464756E2164756E21
313418
313440
  //# sourceMappingURL=index.js.map