@gobi-ai/cli 2.0.23 → 2.0.24

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.23",
7
+ "version": "2.0.24",
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, generate images and videos.",
12
- "version": "2.0.23",
12
+ "version": "2.0.24",
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.23",
4
+ "version": "2.0.24",
5
5
  "author": {
6
6
  "name": "gobi-ai"
7
7
  },
@@ -290,13 +290,16 @@ export function registerGlobalCommand(program) {
290
290
  .option("--rich-text <richText>", "Rich-text JSON array (mutually exclusive with --content)")
291
291
  .option("--vault-slug <vaultSlug>", "Attribute the post to this vault (sets authorVaultSlug).")
292
292
  .option("--auto-attachments", "Upload wiki-linked [[files]] to webdrive before editing (uses --vault-slug or .gobi vault)")
293
+ .option("--attach <file>", "Replace the post's media attachments with the given files (existing attachments are removed). Repeatable. X-style mix rule: up to 4 photos OR 1 GIF OR 1 video. Size ceilings: 5MB photos / 15MB GIFs / 512MB video. Omit to leave attachments unchanged.", (value, prev = []) => [...prev, value], [])
293
294
  .action(async (postId, opts) => {
294
295
  const wantsVaultChange = !!(opts.vaultSlug || opts.autoAttachments);
296
+ const wantsAttachChange = !!(opts.attach && opts.attach.length > 0);
295
297
  if (opts.title == null &&
296
298
  opts.content == null &&
297
299
  opts.richText == null &&
298
- !wantsVaultChange) {
299
- throw new Error("Provide at least --title, --content, --rich-text, or --vault-slug to update.");
300
+ !wantsVaultChange &&
301
+ !wantsAttachChange) {
302
+ throw new Error("Provide at least --title, --content, --rich-text, --vault-slug, or --attach to update.");
300
303
  }
301
304
  if (opts.content && opts.richText) {
302
305
  throw new Error("--content and --rich-text are mutually exclusive.");
@@ -329,6 +332,10 @@ export function registerGlobalCommand(program) {
329
332
  }
330
333
  if (authorVaultSlug !== undefined)
331
334
  body.authorVaultSlug = authorVaultSlug;
335
+ if (opts.attach && opts.attach.length > 0) {
336
+ assertPostAttachmentMix(opts.attach);
337
+ body.attachments = await uploadPostAttachments(opts.attach);
338
+ }
332
339
  const resp = (await apiPatch(`/posts/${postId}`, body));
333
340
  const post = unwrapResp(resp);
334
341
  if (isJsonMode(global)) {
@@ -289,13 +289,16 @@ export function registerPersonalCommand(program) {
289
289
  .option("--rich-text <richText>", "Rich-text JSON array (mutually exclusive with --content)")
290
290
  .option("--vault-slug <vaultSlug>", "Attribute the post to this vault (sets authorVaultSlug).")
291
291
  .option("--auto-attachments", "Upload wiki-linked [[files]] to webdrive before editing (uses --vault-slug or .gobi vault)")
292
+ .option("--attach <file>", "Replace the post's media attachments with the given files (existing attachments are removed). Repeatable. X-style mix rule: up to 4 photos OR 1 GIF OR 1 video. Size ceilings: 5MB photos / 15MB GIFs / 512MB video. Omit to leave attachments unchanged.", (value, prev = []) => [...prev, value], [])
292
293
  .action(async (postId, opts) => {
293
294
  const wantsVaultChange = !!(opts.vaultSlug || opts.autoAttachments);
295
+ const wantsAttachChange = !!(opts.attach && opts.attach.length > 0);
294
296
  if (opts.title == null &&
295
297
  opts.content == null &&
296
298
  opts.richText == null &&
297
- !wantsVaultChange) {
298
- throw new Error("Provide at least --title, --content, --rich-text, or --vault-slug to update.");
299
+ !wantsVaultChange &&
300
+ !wantsAttachChange) {
301
+ throw new Error("Provide at least --title, --content, --rich-text, --vault-slug, or --attach to update.");
299
302
  }
300
303
  if (opts.content && opts.richText) {
301
304
  throw new Error("--content and --rich-text are mutually exclusive.");
@@ -328,6 +331,10 @@ export function registerPersonalCommand(program) {
328
331
  }
329
332
  if (authorVaultSlug !== undefined)
330
333
  body.authorVaultSlug = authorVaultSlug;
334
+ if (opts.attach && opts.attach.length > 0) {
335
+ assertPostAttachmentMix(opts.attach);
336
+ body.attachments = await uploadPostAttachments(opts.attach);
337
+ }
331
338
  const resp = (await apiPatch(`/posts/${postId}`, body));
332
339
  const post = unwrapResp(resp);
333
340
  if (isJsonMode(personal)) {
@@ -416,13 +416,16 @@ export function registerSpaceCommand(program) {
416
416
  .option("--auto-attachments", "Upload wiki-linked [[files]] to webdrive before editing (also attributes the post to that vault)")
417
417
  .option("--vault-slug <vaultSlug>", "Attribute the post to this vault (sets authorVaultSlug). Also used as upload destination for --auto-attachments.")
418
418
  .option("--space-slug <spaceSlug>", "Space slug (overrides .gobi/settings.yaml)")
419
+ .option("--attach <file>", "Replace the post's media attachments with the given files (existing attachments are removed). Repeatable. X-style mix rule: up to 4 photos OR 1 GIF OR 1 video. Size ceilings: 5MB photos / 15MB GIFs / 512MB video. Omit to leave attachments unchanged.", (value, prev = []) => [...prev, value], [])
419
420
  .action(async (postId, opts) => {
420
421
  const wantsVaultChange = !!(opts.vaultSlug || opts.autoAttachments);
422
+ const wantsAttachChange = !!(opts.attach && opts.attach.length > 0);
421
423
  if (opts.title == null &&
422
424
  opts.content == null &&
423
425
  opts.richText == null &&
424
- !wantsVaultChange) {
425
- throw new Error("Provide at least --title, --content, --rich-text, or --vault-slug to update.");
426
+ !wantsVaultChange &&
427
+ !wantsAttachChange) {
428
+ throw new Error("Provide at least --title, --content, --rich-text, --vault-slug, or --attach to update.");
426
429
  }
427
430
  if (opts.content && opts.richText) {
428
431
  throw new Error("--content and --rich-text are mutually exclusive.");
@@ -456,6 +459,10 @@ export function registerSpaceCommand(program) {
456
459
  }
457
460
  if (authorVaultSlug !== undefined)
458
461
  body.authorVaultSlug = authorVaultSlug;
462
+ if (opts.attach && opts.attach.length > 0) {
463
+ assertPostAttachmentMix(opts.attach);
464
+ body.attachments = await uploadPostAttachments(opts.attach);
465
+ }
459
466
  const resp = (await apiPatch(`/spaces/${spaceSlug}/posts/${postId}`, body));
460
467
  const post = unwrapResp(resp);
461
468
  if (isJsonMode(space)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gobi-ai/cli",
3
- "version": "2.0.23",
3
+ "version": "2.0.24",
4
4
  "description": "CLI client for the Gobi collaborative knowledge platform",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -8,12 +8,12 @@ description: >-
8
8
  allowed-tools: Bash(gobi:*)
9
9
  metadata:
10
10
  author: gobi-ai
11
- version: "2.0.23"
11
+ version: "2.0.24"
12
12
  ---
13
13
 
14
14
  # gobi-core
15
15
 
16
- Core CLI commands for the Gobi collaborative knowledge platform (v2.0.23).
16
+ Core CLI commands for the Gobi collaborative knowledge platform (v2.0.24).
17
17
 
18
18
  ## Prerequisites
19
19
 
@@ -10,12 +10,12 @@ description: >-
10
10
  allowed-tools: Bash(gobi:*)
11
11
  metadata:
12
12
  author: gobi-ai
13
- version: "2.0.23"
13
+ version: "2.0.24"
14
14
  ---
15
15
 
16
16
  # gobi-draft
17
17
 
18
- Gobi draft commands for managing agent-authored drafts (v2.0.23).
18
+ Gobi draft commands for managing agent-authored drafts (v2.0.24).
19
19
 
20
20
  Requires gobi-cli installed and authenticated. See gobi-core skill for setup.
21
21
 
@@ -7,7 +7,7 @@ description: >-
7
7
  allowed-tools: Bash(gobi:*)
8
8
  metadata:
9
9
  author: gobi-ai
10
- version: "2.0.23"
10
+ version: "2.0.24"
11
11
  ---
12
12
 
13
13
  # Gobi Homepage Developer Guide
@@ -10,12 +10,12 @@ description: >-
10
10
  allowed-tools: Bash(gobi:*)
11
11
  metadata:
12
12
  author: gobi-ai
13
- version: "2.0.23"
13
+ version: "2.0.24"
14
14
  ---
15
15
 
16
16
  # gobi-media
17
17
 
18
- Gobi media generation commands (v2.0.23).
18
+ Gobi media generation commands (v2.0.24).
19
19
 
20
20
  Requires gobi-cli installed and authenticated. See gobi-core skill for setup.
21
21
 
@@ -7,12 +7,12 @@ description: >-
7
7
  allowed-tools: Bash(gobi:*)
8
8
  metadata:
9
9
  author: gobi-ai
10
- version: "2.0.23"
10
+ version: "2.0.24"
11
11
  ---
12
12
 
13
13
  # gobi-sense
14
14
 
15
- Gobi sense commands for activity and transcription data (v2.0.23).
15
+ Gobi sense commands for activity and transcription data (v2.0.24).
16
16
 
17
17
  Requires gobi-cli installed and authenticated. See the **gobi-core** skill for setup.
18
18
 
@@ -11,12 +11,12 @@ description: >-
11
11
  allowed-tools: Bash(gobi:*)
12
12
  metadata:
13
13
  author: gobi-ai
14
- version: "2.0.23"
14
+ version: "2.0.24"
15
15
  ---
16
16
 
17
17
  # gobi-space
18
18
 
19
- Gobi space, global, and personal-space posts (v2.0.23).
19
+ Gobi space, global, and personal-space posts (v2.0.24).
20
20
 
21
21
  Requires gobi-cli installed and authenticated. See the **gobi-core** skill for setup.
22
22
 
@@ -100,6 +100,8 @@ Options:
100
100
  --rich-text <richText> Rich-text JSON array (mutually exclusive with --content)
101
101
  --vault-slug <vaultSlug> Attribute the post to this vault (sets authorVaultSlug).
102
102
  --auto-attachments Upload wiki-linked [[files]] to webdrive before editing (uses --vault-slug or .gobi vault)
103
+ --attach <file> Replace the post's media attachments with the given files (existing attachments are removed). Repeatable. X-style mix rule: up to 4 photos OR 1 GIF OR 1 video. Size
104
+ ceilings: 5MB photos / 15MB GIFs / 512MB video. Omit to leave attachments unchanged. (default: [])
103
105
  -h, --help display help for command
104
106
  ```
105
107
 
@@ -96,6 +96,8 @@ Options:
96
96
  --rich-text <richText> Rich-text JSON array (mutually exclusive with --content)
97
97
  --vault-slug <vaultSlug> Attribute the post to this vault (sets authorVaultSlug).
98
98
  --auto-attachments Upload wiki-linked [[files]] to webdrive before editing (uses --vault-slug or .gobi vault)
99
+ --attach <file> Replace the post's media attachments with the given files (existing attachments are removed). Repeatable. X-style mix rule: up to 4 photos OR 1 GIF OR 1 video. Size
100
+ ceilings: 5MB photos / 15MB GIFs / 512MB video. Omit to leave attachments unchanged. (default: [])
99
101
  -h, --help display help for command
100
102
  ```
101
103
 
@@ -143,6 +143,8 @@ Options:
143
143
  --auto-attachments Upload wiki-linked [[files]] to webdrive before editing (also attributes the post to that vault)
144
144
  --vault-slug <vaultSlug> Attribute the post to this vault (sets authorVaultSlug). Also used as upload destination for --auto-attachments.
145
145
  --space-slug <spaceSlug> Space slug (overrides .gobi/settings.yaml)
146
+ --attach <file> Replace the post's media attachments with the given files (existing attachments are removed). Repeatable. X-style mix rule: up to 4 photos OR 1 GIF OR 1 video. Size
147
+ ceilings: 5MB photos / 15MB GIFs / 512MB video. Omit to leave attachments unchanged. (default: [])
146
148
  -h, --help display help for command
147
149
  ```
148
150
 
@@ -8,12 +8,12 @@ description: >-
8
8
  allowed-tools: Bash(gobi:*)
9
9
  metadata:
10
10
  author: gobi-ai
11
- version: "2.0.23"
11
+ version: "2.0.24"
12
12
  ---
13
13
 
14
14
  # gobi-vault
15
15
 
16
- Gobi vault commands for publishing your vault profile and syncing files (v2.0.23).
16
+ Gobi vault commands for publishing your vault profile and syncing files (v2.0.24).
17
17
 
18
18
  Requires gobi-cli installed and authenticated. See gobi-core skill for setup.
19
19