@gobi-ai/cli 0.6.12 → 0.6.13
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.
- package/dist/attachments.js +1 -1
- package/dist/commands/brain.js +2 -2
- package/dist/commands/sync.js +1 -1
- package/package.json +1 -1
- package/skills/gobi/SKILL.md +2 -2
package/dist/attachments.js
CHANGED
|
@@ -54,7 +54,7 @@ export async function uploadAttachments(vaultSlug, links, token, options) {
|
|
|
54
54
|
console.log(`Uploading [[${link}]]...`);
|
|
55
55
|
const content = readFileSync(localPath);
|
|
56
56
|
const queryString = addToSyncfiles ? "?add_to_syncfiles=true" : "";
|
|
57
|
-
const url = `${WEBDRIVE_BASE_URL}/api/v1/vaults/${vaultSlug}/
|
|
57
|
+
const url = `${WEBDRIVE_BASE_URL}/api/v1/vaults/${vaultSlug}/file/${filePath}${queryString}`;
|
|
58
58
|
const res = await fetch(url, {
|
|
59
59
|
method: "PUT",
|
|
60
60
|
headers: {
|
package/dist/commands/brain.js
CHANGED
|
@@ -100,7 +100,7 @@ export function registerBrainCommand(program) {
|
|
|
100
100
|
}
|
|
101
101
|
const content = readFileSync(filePath, "utf-8");
|
|
102
102
|
const token = await getValidToken();
|
|
103
|
-
const url = `${WEBDRIVE_BASE_URL}/api/v1/vaults/${vaultId}/
|
|
103
|
+
const url = `${WEBDRIVE_BASE_URL}/api/v1/vaults/${vaultId}/file/BRAIN.md`;
|
|
104
104
|
const res = await fetch(url, {
|
|
105
105
|
method: "PUT",
|
|
106
106
|
headers: {
|
|
@@ -125,7 +125,7 @@ export function registerBrainCommand(program) {
|
|
|
125
125
|
.action(async () => {
|
|
126
126
|
const vaultId = getVaultSlug();
|
|
127
127
|
const token = await getValidToken();
|
|
128
|
-
const url = `${WEBDRIVE_BASE_URL}/api/v1/vaults/${vaultId}/
|
|
128
|
+
const url = `${WEBDRIVE_BASE_URL}/api/v1/vaults/${vaultId}/file/BRAIN.md`;
|
|
129
129
|
const res = await fetch(url, {
|
|
130
130
|
method: "DELETE",
|
|
131
131
|
headers: { Authorization: `Bearer ${token}` },
|
package/dist/commands/sync.js
CHANGED
|
@@ -232,7 +232,7 @@ function fileUrl(baseUrl, vaultSlug, filePath) {
|
|
|
232
232
|
.split("/")
|
|
233
233
|
.map((s) => encodeURIComponent(s))
|
|
234
234
|
.join("/");
|
|
235
|
-
return `${baseUrl}/api/v1/vaults/${vaultSlug}/
|
|
235
|
+
return `${baseUrl}/api/v1/vaults/${vaultSlug}/file/${encoded}`;
|
|
236
236
|
}
|
|
237
237
|
async function webdriveGet(baseUrl, vaultSlug, filePath, token) {
|
|
238
238
|
const res = await fetch(fileUrl(baseUrl, vaultSlug, filePath), {
|
package/package.json
CHANGED
package/skills/gobi/SKILL.md
CHANGED
|
@@ -10,12 +10,12 @@ description: >-
|
|
|
10
10
|
allowed-tools: Bash(gobi:*)
|
|
11
11
|
metadata:
|
|
12
12
|
author: gobi-ai
|
|
13
|
-
version: "0.6.
|
|
13
|
+
version: "0.6.13"
|
|
14
14
|
---
|
|
15
15
|
|
|
16
16
|
# gobi-cli
|
|
17
17
|
|
|
18
|
-
A CLI client for the Gobi collaborative knowledge platform (v0.6.
|
|
18
|
+
A CLI client for the Gobi collaborative knowledge platform (v0.6.13).
|
|
19
19
|
|
|
20
20
|
## Prerequisites
|
|
21
21
|
|