superlocalmemory 2.7.1 → 2.7.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superlocalmemory",
3
- "version": "2.7.1",
3
+ "version": "2.7.2",
4
4
  "description": "Your AI Finally Remembers You - Local-first intelligent memory system for AI assistants. Works with Claude, Cursor, Windsurf, VS Code/Copilot, Codex, and 17+ AI tools. 100% local, zero cloud dependencies.",
5
5
  "keywords": [
6
6
  "ai-memory",
@@ -122,9 +122,16 @@ class FeedbackCollector:
122
122
  """
123
123
  Args:
124
124
  learning_db: LearningDB instance for persisting feedback.
125
- If None, feedback is logged but not stored.
125
+ If None, auto-creates a LearningDB instance.
126
126
  """
127
- self.learning_db = learning_db
127
+ if learning_db is None:
128
+ try:
129
+ from .learning_db import LearningDB
130
+ self.learning_db = LearningDB()
131
+ except Exception:
132
+ self.learning_db = None
133
+ else:
134
+ self.learning_db = learning_db
128
135
 
129
136
  # In-memory buffer for passive decay tracking.
130
137
  # Structure: {query_hash: {memory_id: times_returned_count}}