@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 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
 
@@ -404,13 +404,13 @@ export function registerAstraCommand(program) {
404
404
  limit,
405
405
  offset,
406
406
  }));
407
- const data = unwrapResp(resp);
408
- const items = (data.sessions || []);
409
- const total = data.total ?? items.length;
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
- sessions: items,
413
- pagination: { total, limit, offset },
412
+ items,
413
+ pagination: resp.pagination || {},
414
414
  });
415
415
  return;
416
416
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gobi-ai/cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "CLI client for the Gobi collaborative knowledge platform",
5
5
  "license": "MIT",
6
6
  "type": "module",