@gobi-ai/cli 0.7.0 → 0.7.2

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.
@@ -4,12 +4,12 @@
4
4
  "name": "gobi-ai"
5
5
  },
6
6
  "description": "Claude Code plugin for the Gobi collaborative knowledge platform CLI",
7
- "version": "0.6.20",
7
+ "version": "0.7.1",
8
8
  "plugins": [
9
9
  {
10
10
  "name": "gobi",
11
11
  "description": "Manage the Gobi collaborative knowledge platform from the command line. Search and ask brains, publish brain documents, create threads, manage sessions.",
12
- "version": "0.6.20",
12
+ "version": "0.7.1",
13
13
  "author": {
14
14
  "name": "gobi-ai"
15
15
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gobi",
3
3
  "description": "Manage the Gobi collaborative knowledge platform from the command line",
4
- "version": "0.6.20",
4
+ "version": "0.7.1",
5
5
  "author": {
6
6
  "name": "gobi-ai"
7
7
  },
@@ -16,15 +16,13 @@ export function registerSessionsCommand(program) {
16
16
  };
17
17
  if (opts.cursor)
18
18
  params.cursor = opts.cursor;
19
- const resp = (await apiGet(`/chat/${sessionId}`, params));
20
- const data = unwrapResp(resp);
19
+ const resp = (await apiGet(`/chat/${sessionId}/messages`, params));
20
+ const messages = (resp.data || []);
21
+ const pagination = (resp.pagination || {});
21
22
  if (isJsonMode(sessions)) {
22
- jsonOut(data);
23
+ jsonOut({ messages, pagination });
23
24
  return;
24
25
  }
25
- const session = (data.session || data);
26
- const messages = (data.messages || []);
27
- const pagination = (data.pagination || {});
28
26
  const msgLines = [];
29
27
  for (const m of messages) {
30
28
  const author = m.author?.name ||
@@ -35,10 +33,7 @@ export function registerSessionsCommand(program) {
35
33
  msgLines.push(` - ${author}: ${truncated} (${m.createdAt})`);
36
34
  }
37
35
  const output = [
38
- `Session: ${session.title}`,
39
- ` ID: ${session.id}`,
40
- ` Mode: ${session.mode}`,
41
- ` Last activity: ${session.lastMessageAt}`,
36
+ `Session: ${sessionId}`,
42
37
  "",
43
38
  `Messages (${messages.length} items):`,
44
39
  ...msgLines,
@@ -83,7 +78,7 @@ export function registerSessionsCommand(program) {
83
78
  if (overflow > 0)
84
79
  memberInfo += ` +${overflow} more`;
85
80
  }
86
- lines.push(`- [${s.id}] "${title}" (mode: ${s.mode}, last activity: ${s.lastMessageAt})${memberInfo}`);
81
+ lines.push(`- [${s.sessionId}] "${title}" (mode: ${s.mode}, last activity: ${s.lastMessageAt})${memberInfo}`);
87
82
  }
88
83
  const footer = pagination.hasMore ? `\n Next cursor: ${pagination.nextCursor}` : "";
89
84
  console.log(`Sessions (${items.length} items):\n` + lines.join("\n") + footer);
@@ -422,9 +422,9 @@ export async function runSync(opts) {
422
422
  for (const cachedPath of Object.keys(state.hashCache)) {
423
423
  if (!localPathSet.has(cachedPath) && !existsSync(join(vaultDir, cachedPath))) {
424
424
  // File was in our cache but no longer on disk — deleted offline.
425
- // In download-only mode, skip the DELETE: the server's client_deleted_paths
426
- // mechanism will re-download the file instead (server-side download_only path).
427
- if (opts.downloadOnly)
425
+ // In download-only or upload-only mode, skip the DELETE:
426
+ // upload-only should never remove files from the server.
427
+ if (opts.downloadOnly || opts.uploadOnly)
428
428
  continue;
429
429
  if (!opts.jsonMode)
430
430
  console.log(` Deleting remote (offline deletion): ${cachedPath}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gobi-ai/cli",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
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.20"
13
+ version: "0.7.1"
14
14
  ---
15
15
 
16
16
  # gobi-cli
17
17
 
18
- A CLI client for the Gobi collaborative knowledge platform (v0.6.20).
18
+ A CLI client for the Gobi collaborative knowledge platform (v0.7.1).
19
19
 
20
20
  ## Prerequisites
21
21