@gobi-ai/cli 0.6.5 → 0.6.7

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.7",
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.7"
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.7).
19
19
 
20
20
  ## Prerequisites
21
21
 
@@ -109,9 +109,11 @@ Usage: gobi brain edit-update [options] <updateId>
109
109
  Edit a published brain update. You must be the author.
110
110
 
111
111
  Options:
112
- --title <title> New title for the update
113
- --content <content> New content for the update (markdown supported)
114
- -h, --help display help for command
112
+ --title <title> New title for the update
113
+ --content <content> New content for the update (markdown supported)
114
+ --vault-slug <vaultSlug> Vault slug for attachment uploads (overrides .gobi/settings.yaml)
115
+ --auto-attachments Upload wiki-linked [[files]] to webdrive before editing
116
+ -h, --help display help for command
115
117
  ```
116
118
 
117
119
  ## delete-update
@@ -94,9 +94,11 @@ Usage: gobi space edit-thread [options] <threadId>
94
94
  Edit a thread. You must be the author.
95
95
 
96
96
  Options:
97
- --title <title> New title for the thread
98
- --content <content> New content for the thread (markdown supported)
99
- -h, --help display help for command
97
+ --title <title> New title for the thread
98
+ --content <content> New content for the thread (markdown supported)
99
+ --auto-attachments Upload wiki-linked [[files]] to webdrive before editing
100
+ --vault-slug <vaultSlug> Vault slug for attachment uploads (overrides .gobi/settings.yaml)
101
+ -h, --help display help for command
100
102
  ```
101
103
 
102
104
  ## delete-thread
@@ -130,8 +132,10 @@ Usage: gobi space edit-reply [options] <replyId>
130
132
  Edit a reply. You must be the author.
131
133
 
132
134
  Options:
133
- --content <content> New content for the reply (markdown supported)
134
- -h, --help display help for command
135
+ --content <content> New content for the reply (markdown supported)
136
+ --auto-attachments Upload wiki-linked [[files]] to webdrive before editing
137
+ --vault-slug <vaultSlug> Vault slug for attachment uploads (overrides .gobi/settings.yaml)
138
+ -h, --help display help for command
135
139
  ```
136
140
 
137
141
  ## delete-reply