@voidwire/lore 0.5.1 → 0.5.3

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 (2) hide show
  1. package/lib/list.ts +3 -0
  2. package/package.json +3 -2
package/lib/list.ts CHANGED
@@ -128,6 +128,9 @@ function queryBySource(
128
128
  params.push(type);
129
129
  }
130
130
 
131
+ // Order by timestamp descending (most recent first)
132
+ sql += " ORDER BY json_extract(metadata, '$.timestamp') DESC";
133
+
131
134
  if (limit) {
132
135
  sql += " LIMIT ?";
133
136
  params.push(limit);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidwire/lore",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "Unified knowledge CLI - Search, list, and capture your indexed knowledge",
5
5
  "type": "module",
6
6
  "main": "./index.ts",
@@ -9,7 +9,8 @@
9
9
  },
10
10
  "exports": {
11
11
  ".": "./index.ts",
12
- "./cli": "./cli.ts"
12
+ "./cli": "./cli.ts",
13
+ "./capture": "./lib/capture.ts"
13
14
  },
14
15
  "files": [
15
16
  "index.ts",