@gobi-ai/cli 0.6.5 → 0.6.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.
@@ -74,7 +74,7 @@ export function registerBrainCommand(program) {
74
74
  }
75
75
  if (opts.mode != null)
76
76
  body.mode = opts.mode;
77
- const resp = (await apiPost(`/session/targeted`, body));
77
+ const resp = (await apiPost(`/chat/targeted`, body));
78
78
  const data = unwrapResp(resp);
79
79
  if (isJsonMode(brain)) {
80
80
  jsonOut(data);
@@ -16,7 +16,7 @@ export function registerSessionsCommand(program) {
16
16
  };
17
17
  if (opts.cursor)
18
18
  params.cursor = opts.cursor;
19
- const resp = (await apiGet(`/session/${sessionId}`, params));
19
+ const resp = (await apiGet(`/chat/${sessionId}`, params));
20
20
  const data = unwrapResp(resp);
21
21
  if (isJsonMode(sessions)) {
22
22
  jsonOut(data);
@@ -56,7 +56,7 @@ export function registerSessionsCommand(program) {
56
56
  const query = { limit: parseInt(opts.limit, 10) };
57
57
  if (opts.cursor)
58
58
  query.cursor = opts.cursor;
59
- const resp = (await apiGet(`/session/my-sessions`, query));
59
+ const resp = (await apiGet(`/chat/my-sessions`, query));
60
60
  const items = (resp.data || []);
61
61
  const pagination = (resp.pagination || {});
62
62
  if (isJsonMode(sessions)) {
@@ -115,7 +115,7 @@ export function registerSessionsCommand(program) {
115
115
  else {
116
116
  body.content = opts.content;
117
117
  }
118
- const resp = (await apiPost(`/session/${sessionId}/reply`, body));
118
+ const resp = (await apiPost(`/chat/${sessionId}/reply`, body));
119
119
  const msg = unwrapResp(resp);
120
120
  if (isJsonMode(sessions)) {
121
121
  jsonOut(msg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gobi-ai/cli",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
4
4
  "description": "CLI client for the Gobi collaborative knowledge platform",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -10,12 +10,12 @@ description: >-
10
10
  allowed-tools: Bash(gobi:*)
11
11
  metadata:
12
12
  author: gobi-ai
13
- version: "0.6.4"
13
+ version: "0.6.5"
14
14
  ---
15
15
 
16
16
  # gobi-cli
17
17
 
18
- A CLI client for the Gobi collaborative knowledge platform (v0.6.4).
18
+ A CLI client for the Gobi collaborative knowledge platform (v0.6.5).
19
19
 
20
20
  ## Prerequisites
21
21