@hir4ta/memoria 0.16.3 → 0.16.5

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "memoria",
3
3
  "description": "A plugin that provides long-term memory for Claude Code. It automatically saves context lost during auto-compact, offering features for session restoration, recording technical decisions, and learning developer patterns.",
4
- "version": "0.16.3",
4
+ "version": "0.16.5",
5
5
  "author": {
6
6
  "name": "hir4ta"
7
7
  },
package/dist/lib/db.js CHANGED
@@ -140,7 +140,7 @@ function getInteractionsBySessionIds(db, sessionIds) {
140
140
  const stmt = db.prepare(`
141
141
  SELECT * FROM interactions
142
142
  WHERE session_id IN (${placeholders})
143
- ORDER BY timestamp ASC, session_id ASC, role ASC
143
+ ORDER BY timestamp ASC, id ASC
144
144
  `);
145
145
  return stmt.all(...sessionIds);
146
146
  }
@@ -152,7 +152,7 @@ function getInteractionsBySessionIdsAndOwner(db, sessionIds, owner) {
152
152
  const stmt = db.prepare(`
153
153
  SELECT * FROM interactions
154
154
  WHERE session_id IN (${placeholders}) AND owner = ?
155
- ORDER BY timestamp ASC, session_id ASC, role ASC
155
+ ORDER BY timestamp ASC, id ASC
156
156
  `);
157
157
  return stmt.all(...sessionIds, owner);
158
158
  }