@avalw/search-worker 2.3.4 → 2.3.6

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.
Files changed (3) hide show
  1. package/bin/cli.js +4 -6
  2. package/index.js +4 -5
  3. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  /**
4
- * AVALW Search Worker CLI v2.3.2
4
+ * AVALW Search Worker CLI v2.3.6
5
5
  * Distributed Cache Worker for AVALW Search Network
6
6
  *
7
7
  * Features:
@@ -133,7 +133,7 @@ Or set environment variable:
133
133
  // Print banner
134
134
  console.log('');
135
135
  console.log('===============================================================');
136
- console.log(' AVALW SEARCH WORKER v2.3.2 - Intelligent Distributed Cache');
136
+ console.log(' AVALW SEARCH WORKER v2.3.6 - Intelligent Distributed Cache');
137
137
  console.log('===============================================================');
138
138
  console.log('');
139
139
 
@@ -185,13 +185,11 @@ const worker = new SearchWorker({
185
185
  },
186
186
 
187
187
  onCacheHit: (key) => {
188
- const query = key.split(':')[0];
189
- console.log(` [CACHE HIT] Served: "${query.substring(0, 30)}..."`);
188
+ // Privacy: Don't log search queries
190
189
  },
191
190
 
192
191
  onCacheStore: (key) => {
193
- const query = key.split(':')[0];
194
- console.log(` [CACHED] Stored: "${query.substring(0, 30)}..."`);
192
+ // Privacy: Don't log search queries
195
193
  },
196
194
 
197
195
  onError: (err) => {
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @avalw/search-worker v2.3.4
2
+ * @avalw/search-worker v2.3.6
3
3
  * Distributed Cache Worker for AVALW Search Network
4
4
  *
5
5
  * Workers connect to the coordinator via WebSocket and serve as
@@ -606,7 +606,7 @@ class SearchWorker {
606
606
  // Invalidate a cache key
607
607
  if (message.key) {
608
608
  this.cache._evict(message.key, 'invalidate');
609
- this.onLog(`Cache invalidated: ${message.key.substring(0, 30)}...`);
609
+ // Privacy: Don't log cache keys
610
610
  }
611
611
  break;
612
612
 
@@ -647,7 +647,7 @@ class SearchWorker {
647
647
  value
648
648
  });
649
649
 
650
- this.onLog(`Cache HIT: ${key.substring(0, 30)}...`);
650
+ // Privacy: Don't log cache keys (they contain search queries)
651
651
  } else {
652
652
  this.stats.cacheMisses++;
653
653
 
@@ -676,8 +676,7 @@ class SearchWorker {
676
676
  this.stats.cacheStored++;
677
677
  this.onCacheStore(key);
678
678
 
679
- const cacheStats = this.cache.getStats();
680
- this.onLog(`Cached: ${key.substring(0, 30)}... (${cacheStats.entries} entries, ${cacheStats.sizeFormatted})`);
679
+ // Privacy: Don't log cache keys (they contain search queries)
681
680
  }
682
681
 
683
682
  // Send cache registry to coordinator
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avalw/search-worker",
3
- "version": "2.3.4",
3
+ "version": "2.3.6",
4
4
  "description": "AVALW Distributed Cache Worker - Intelligent caching with size limits and auto-cleanup",
5
5
  "main": "index.js",
6
6
  "bin": {