@cef-ai/cli 0.2.4 → 0.2.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.
@@ -26,9 +26,10 @@ export class CubbyManager {
26
26
  try {
27
27
  const stmt = db.prepare(sql);
28
28
  const columns = stmt.columns().map(c => c.name);
29
- const rows = stmt.raw().all(...params);
29
+ const rawRows = stmt.raw().all(...params);
30
+ const rows = rawRows.length === 0 ? null : rawRows;
30
31
  const duration = (performance.now() - start) / 1000;
31
- return { columns, rows, meta: { duration, rowsRead: rows.length } };
32
+ return { columns, rows, meta: { duration, rowsRead: rawRows.length } };
32
33
  }
33
34
  catch (err) {
34
35
  throw new Error(`Cubby "${alias}" query error: ${err.message}`);
@@ -50,7 +50,7 @@ export interface TraceEvent {
50
50
  }
51
51
  export interface QueryResult {
52
52
  columns: string[];
53
- rows: unknown[][];
53
+ rows: unknown[][] | null;
54
54
  meta: {
55
55
  duration: number;
56
56
  rowsRead: number;
@@ -24,7 +24,7 @@ interface VectorMatch { id: string; score: number; metadata?: Record<string, any
24
24
 
25
25
  interface QueryResult {
26
26
  columns: string[];
27
- rows: unknown[][];
27
+ rows: unknown[][] | null;
28
28
  meta: { duration: number; rowsRead: number };
29
29
  }
30
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cef-ai/cli",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "CEF AI command-line interface",
5
5
  "type": "module",
6
6
  "bin": {