@tscircuit/capacity-autorouter 0.0.59 → 0.0.60

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.d.ts CHANGED
@@ -1250,6 +1250,7 @@ interface CacheProvider {
1250
1250
  getCachedSolution(cacheKey: string): Promise<any>;
1251
1251
  setCachedSolutionSync(cacheKey: string, cachedSolution: any): void;
1252
1252
  setCachedSolution(cacheKey: string, cachedSolution: any): Promise<void>;
1253
+ getAllCacheKeys(): string[];
1253
1254
  clearCache(): void;
1254
1255
  }
1255
1256
 
package/dist/index.js CHANGED
@@ -10983,6 +10983,9 @@ var InMemoryCache = class {
10983
10983
  this.cacheHits = 0;
10984
10984
  this.cacheMisses = 0;
10985
10985
  }
10986
+ getAllCacheKeys() {
10987
+ return Array.from(this.cache.keys());
10988
+ }
10986
10989
  };
10987
10990
 
10988
10991
  // lib/cache/LocalStorageCache.ts
@@ -11089,6 +11092,16 @@ var LocalStorageCache = class {
11089
11092
  this.cacheMisses = 0;
11090
11093
  }
11091
11094
  }
11095
+ getAllCacheKeys() {
11096
+ const cacheKeys = [];
11097
+ for (let i = 0; i < 1e4; i++) {
11098
+ const keyName = localStorage.key(i);
11099
+ if (!keyName) break;
11100
+ if (!keyName.includes(CACHE_PREFIX)) continue;
11101
+ cacheKeys.push(keyName);
11102
+ }
11103
+ return cacheKeys;
11104
+ }
11092
11105
  };
11093
11106
 
11094
11107
  // lib/cache/setupGlobalCaches.ts