@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.
|
|
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.
|
|
12
|
+
"version": "2.0.4",
|
|
13
13
|
"author": {
|
|
14
14
|
"name": "gobi-ai"
|
|
15
15
|
},
|
package/dist/commands/init.js
CHANGED
|
@@ -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("/
|
|
100
|
-
const vaults = (Array.isArray(resp)
|
|
101
|
-
|
|
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
|
}
|