@gobi-ai/cli 2.0.3 → 2.0.4

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": "2.0.3",
7
+ "version": "2.0.4",
8
8
  "plugins": [
9
9
  {
10
10
  "name": "gobi",
11
11
  "description": "Manage the Gobi collaborative knowledge platform from the command line. Publish vault profiles, create posts and replies, manage saved notes and posts, manage sessions, generate images and videos.",
12
- "version": "2.0.3",
12
+ "version": "2.0.4",
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": "2.0.3",
4
+ "version": "2.0.4",
5
5
  "author": {
6
6
  "name": "gobi-ai"
7
7
  },
@@ -96,9 +96,13 @@ export async function selectSpace() {
96
96
  return { slug: selected.slug, name: selected.name };
97
97
  }
98
98
  async function selectExistingVault() {
99
- const resp = (await apiGet("/vault"));
100
- const vaults = (Array.isArray(resp) ? resp : resp.data || resp);
101
- if (!vaults || vaults.length === 0) {
99
+ const resp = (await apiGet("/vaults"));
100
+ const vaults = (Array.isArray(resp)
101
+ ? resp
102
+ : Array.isArray(resp?.data)
103
+ ? resp.data
104
+ : []);
105
+ if (vaults.length === 0) {
102
106
  console.log("You don't have any vaults yet. Let's create one.");
103
107
  return createNewVault();
104
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gobi-ai/cli",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "CLI client for the Gobi collaborative knowledge platform",
5
5
  "license": "MIT",
6
6
  "type": "module",