@cef-ai/cli 0.2.4 → 0.2.6

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/README.md CHANGED
@@ -510,7 +510,7 @@ cef service create --name my-agent --bucket-id 1505
510
510
  |-|-|-|-|
511
511
  | `--name <name>` | - | Yes | Name of the new agent service |
512
512
  | `--config <path>` | `./cef.config.yaml` | No | Path to config file |
513
- | `--bucket-id <id>` | `0` | No | DDC bucket ID |
513
+ | `--bucket-id <id>` | `1` | No | DDC bucket ID |
514
514
 
515
515
  Requires `CEF_ROB_API_URL` (defaults to stage URL if not set).
516
516
 
@@ -1042,7 +1042,7 @@ To override URLs, set them as environment variables or in a `.env` file next to
1042
1042
  | `--output-dir <dir>` | clone | (config dir) | Directory to write cloned files into |
1043
1043
  | `--force` | clone, delete | `false` | Skip confirmation / overwrite existing files |
1044
1044
  | `--name <name>` | service create | - | Name of the new agent service (required) |
1045
- | `--bucket-id <id>` | service create | `0` | DDC bucket ID |
1045
+ | `--bucket-id <id>` | service create | `1` | DDC bucket ID |
1046
1046
  | `--port <port>` | dev | `8787` | Server port |
1047
1047
  | `--host <host>` | dev | `localhost` | Server host |
1048
1048
  | `--persist` | dev | `false` | Keep `.cef-dev/` data after shutdown |
@@ -70,6 +70,6 @@ export function registerServiceCommands(program) {
70
70
  .description('Create a new agent service')
71
71
  .requiredOption('--name <name>', 'Name of the new agent service')
72
72
  .option('--config <path>', 'Config file path', './cef.config.yaml')
73
- .option('--bucket-id <id>', 'DDC bucket ID', '0')
73
+ .option('--bucket-id <id>', 'DDC bucket ID', '1')
74
74
  .action(handleCreate);
75
75
  }
@@ -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.6",
4
4
  "description": "CEF AI command-line interface",
5
5
  "type": "module",
6
6
  "bin": {