Fixes critical production bug where HNSW index operations would fail and spam thousands of console.error messages during large imports. Root cause: rebuild() nullifies entryPointId via clear(), and if getHNSWSystem() returns null (missing/corrupted system data), the entry point was never recovered from loaded nouns. Changes: - Add entry point recovery in rebuild() after loading nouns - Add entry point recovery in search() for corrupted state - Add entry point recovery in search() when entry point noun deleted - Remove console.error spam in search() and addItem() - Standardize 404 error detection in GCS/S3/Azure storage adapters Tested: All entry point scenarios now recover gracefully without log spam. Empty index returns empty results silently. |
||
|---|---|---|
| .. | ||
| adapters | ||
| cow | ||
| backwardCompatibility.ts | ||
| baseStorage.ts | ||
| cacheManager.ts | ||
| enhancedCacheManager.ts | ||
| enhancedClearOperations.ts | ||
| readOnlyOptimizations.ts | ||
| sharding.ts | ||
| storageFactory.ts | ||