@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>` | `
|
|
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 | `
|
|
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', '
|
|
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
|
|
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:
|
|
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}`);
|
package/dist/lib/typecheck.js
CHANGED