@gobi-ai/cli 0.2.0 → 0.2.1
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 +1 -0
- package/dist/commands/astra.js +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -98,6 +98,7 @@ gobi astra ask-brain --vault-slug my-vault --question "What is RAG?"
|
|
|
98
98
|
| `gobi astra list-sessions` | List your sessions |
|
|
99
99
|
| `gobi astra get-session <id>` | Get a session and its messages |
|
|
100
100
|
| `gobi astra reply-session <id> --content <c>` | Send a message in a session |
|
|
101
|
+
| `gobi astra update-session <id> --mode <mode>` | Set session mode (auto/manual) |
|
|
101
102
|
|
|
102
103
|
### Brain updates
|
|
103
104
|
|
package/dist/commands/astra.js
CHANGED
|
@@ -404,13 +404,13 @@ export function registerAstraCommand(program) {
|
|
|
404
404
|
limit,
|
|
405
405
|
offset,
|
|
406
406
|
}));
|
|
407
|
-
const
|
|
408
|
-
const
|
|
409
|
-
const total =
|
|
407
|
+
const items = (resp.data || []);
|
|
408
|
+
const pagination = (resp.pagination || {});
|
|
409
|
+
const total = pagination.total ?? items.length;
|
|
410
410
|
if (isJsonMode(astra)) {
|
|
411
411
|
jsonOut({
|
|
412
|
-
|
|
413
|
-
pagination:
|
|
412
|
+
items,
|
|
413
|
+
pagination: resp.pagination || {},
|
|
414
414
|
});
|
|
415
415
|
return;
|
|
416
416
|
}
|