@gobi-ai/cli 1.3.8 → 2.0.1

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.
Files changed (38) hide show
  1. package/.claude-plugin/marketplace.json +5 -6
  2. package/.claude-plugin/plugin.json +3 -4
  3. package/README.md +174 -82
  4. package/commands/space-explore.md +10 -10
  5. package/commands/space-share.md +13 -7
  6. package/dist/attachments.js +2 -1
  7. package/dist/commands/draft.js +2 -3
  8. package/dist/commands/global.js +212 -72
  9. package/dist/commands/init.js +5 -5
  10. package/dist/commands/{notes.js → saved.js} +115 -23
  11. package/dist/commands/space.js +121 -111
  12. package/dist/commands/sync.js +2 -56
  13. package/dist/commands/update.js +14 -8
  14. package/dist/commands/utils.js +6 -0
  15. package/dist/commands/vault.js +113 -0
  16. package/dist/main.js +4 -8
  17. package/package.json +2 -2
  18. package/skills/gobi-core/SKILL.md +19 -15
  19. package/skills/gobi-core/references/space.md +18 -19
  20. package/skills/gobi-draft/SKILL.md +3 -3
  21. package/skills/gobi-homepage/SKILL.md +21 -19
  22. package/skills/gobi-media/SKILL.md +2 -2
  23. package/skills/gobi-saved/SKILL.md +59 -0
  24. package/skills/gobi-saved/references/saved.md +52 -0
  25. package/skills/gobi-sense/SKILL.md +8 -4
  26. package/skills/gobi-space/SKILL.md +55 -38
  27. package/skills/gobi-space/references/global.md +87 -26
  28. package/skills/gobi-space/references/space.md +49 -61
  29. package/skills/gobi-vault/SKILL.md +92 -0
  30. package/skills/{gobi-core/references/sync.md → gobi-vault/references/vault.md} +41 -2
  31. package/dist/commands/brain.js +0 -141
  32. package/dist/commands/feed.js +0 -148
  33. package/skills/gobi-brain/SKILL.md +0 -100
  34. package/skills/gobi-brain/references/brain.md +0 -66
  35. package/skills/gobi-feed/SKILL.md +0 -43
  36. package/skills/gobi-feed/references/feed.md +0 -80
  37. package/skills/gobi-notes/SKILL.md +0 -52
  38. package/skills/gobi-notes/references/notes.md +0 -82
@@ -1,36 +1,48 @@
1
1
  ---
2
2
  name: gobi-space
3
3
  description: >-
4
- Gobi space commands for community interaction: post threads and
5
- replies, browse the unified message feed and topic feeds, walk reply
6
- lineage, and post to the global (slugless) space. Use when the user
7
- wants to read or write threads and replies in their Gobi community
8
- spaces. Space and member administration is web-UI only.
4
+ Gobi space and global commands: read and write posts and replies, browse the
5
+ unified feed and topic feeds in a community space (`gobi space`) or in the
6
+ public global feed of personal posts (`gobi global`). Personal Posts and
7
+ Space Posts share the same data model; only the scope differs. Use when the
8
+ user wants to read or write posts and replies. Space and member admin is
9
+ web-UI only.
9
10
  allowed-tools: Bash(gobi:*)
10
11
  metadata:
11
12
  author: gobi-ai
12
- version: "0.9.13"
13
+ version: "2.0.0"
13
14
  ---
14
15
 
15
16
  # gobi-space
16
17
 
17
- Gobi space commands for community interaction (v0.9.13).
18
+ Gobi space and global posts (v2.0.0).
18
19
 
19
- Requires gobi-cli installed and authenticated. See gobi-core skill for setup.
20
+ Requires gobi-cli installed and authenticated. See the **gobi-core** skill for setup.
20
21
 
21
- ## Gobi Space Community Channel
22
+ ## Two scopes, one data model
22
23
 
23
- `gobi space` is the main interface for interacting with the user's Gobi community. When the user asks about what's happening, what others are discussing, or wants to engage with their community use `gobi space` commands. Think of it as the user's community feed and communication hub.
24
+ The same `Post` data type drives both surfaces — the difference is **scope**:
25
+
26
+ - **Space Post** — `gobi space …` — lives in a community space's feed.
27
+ - **Personal Post** — `gobi global …` — lives on the author's profile (their primary vault) and surfaces in the public global feed.
28
+
29
+ Anything you can do to a Space Post (reply, edit, delete, attribute to a vault) you can do to a Personal Post.
24
30
 
25
31
  - When the user wants to explore or catch up on what's happening in their space, invoke `/gobi:space-explore`.
26
32
  - When the user wants to share or post learnings from the current session, invoke `/gobi:space-share`.
27
33
 
34
+ ## Author vault attribution (`--vault-slug`)
35
+
36
+ Both `gobi space create-post` / `edit-post` and `gobi global create-post` / `edit-post` accept `--vault-slug <slug>`. When set, the slug becomes the post's `authorVaultSlug` — the vault the user is posting on behalf of. The caller must hold `role: 'owner'` on that vault. Pass `--vault-slug ""` on edit to detach.
37
+
38
+ `--auto-attachments` resolves a vault for upload and **also** uses it as `authorVaultSlug` automatically — one flag, two effects.
39
+
28
40
  ## Space Slug Override
29
41
 
30
42
  `gobi space` commands use the space from `.gobi/settings.yaml`. Override it with a parent-level flag:
31
43
 
32
44
  ```bash
33
- gobi space --space-slug <slug> list-threads
45
+ gobi space --space-slug <slug> list-posts
34
46
  ```
35
47
 
36
48
  ## Important: JSON Mode
@@ -38,7 +50,7 @@ gobi space --space-slug <slug> list-threads
38
50
  For programmatic/agent usage, always pass `--json` as a **global** option (before the subcommand):
39
51
 
40
52
  ```bash
41
- gobi --json space list-threads
53
+ gobi --json space list-posts
42
54
  ```
43
55
 
44
56
  > Space and member administration (creating spaces, inviting/approving members, joining/leaving) is web-UI only and not available in the CLI.
@@ -47,35 +59,40 @@ gobi --json space list-threads
47
59
 
48
60
  ### Space details
49
61
  - `gobi space get` — Get details for a space.
62
+ - `gobi space warp` — Select the active space.
50
63
 
51
64
  ### Topics
52
65
  - `gobi space list-topics` — List topics in a space, ordered by most recent content linkage.
53
- - `gobi space list-topic-threads` — List threads tagged with a topic in a space (cursor-paginated).
54
-
55
- ### Feed & lineage
56
- - `gobi space messages` — List the unified message feed (threads and replies, newest first).
57
- - `gobi space ancestors` — Show the ancestor lineage of a thread or reply (root → immediate parent).
58
-
59
- ### Threads
60
- - `gobi space get-thread` — Get a thread and its replies (paginated).
61
- - `gobi space list-threads` — List threads in a space (paginated).
62
- - `gobi space create-thread`Create a thread in a space.
63
- - `gobi space edit-thread`Edit a thread. You must be the author.
64
- - `gobi space delete-thread` — Delete a thread. You must be the author.
65
-
66
- ### Replies
67
- - `gobi space create-reply`Create a reply to a thread in a space.
68
- - `gobi space edit-reply`Edit a reply. You must be the author.
69
- - `gobi space delete-reply` — Delete a reply. You must be the author.
70
-
71
- ### Global thread space
72
- The global thread space has no slug and is visible across all spaces.
73
-
74
- - `gobi global messages` — List the global unified message feed (newest first).
75
- - `gobi global get-thread` — Get a global thread and its direct replies.
76
- - `gobi global ancestors`Show the ancestor lineage of a global thread or reply.
77
- - `gobi global create-thread` — Create a thread in the global space.
78
- - `gobi global reply`Reply to a thread in the global space.
66
+ - `gobi space list-topic-posts` — List posts tagged with a topic in a space (cursor-paginated).
67
+
68
+ ### Feed
69
+ - `gobi space feed` — List the unified feed (posts and replies, newest first).
70
+
71
+ ### Space posts
72
+ - `gobi space list-posts` — List posts in a space (paginated).
73
+ - `gobi space get-post <postId>` — Get a post with its ancestors and replies (paginated). Ancestors and replies are returned together; there is no separate `ancestors` or `list-replies` command.
74
+ - `gobi space create-post` — Create a space post. `--vault-slug` attributes it to a vault you own; `--auto-attachments` uploads `[[wikilinks]]` to that vault and uses it as `authorVaultSlug`.
75
+ - `gobi space edit-post <postId>` Edit a space post. You must be the author. `--vault-slug ""` detaches the vault.
76
+ - `gobi space delete-post <postId>` Delete a space post. You must be the author.
77
+
78
+ ### Space replies
79
+ - `gobi space create-reply <postId>` — Create a reply to a space post.
80
+ - `gobi space edit-reply <replyId>` Edit a reply. You must be the author.
81
+ - `gobi space delete-reply <replyId>` Delete a reply. You must be the author.
82
+
83
+ ### Personal posts (global feed)
84
+
85
+ `gobi global` is the same surface for Personal Posts — posts that live on the author's profile and surface in the public global feed.
86
+
87
+ - `gobi global feed` — List the public global feed (posts and replies, newest first).
88
+ - `gobi global list-posts` — List personal posts. `--mine` for your own; `--vault-slug <slug>` to filter by author vault.
89
+ - `gobi global get-post <postId>` Get a personal post with its ancestors and replies.
90
+ - `gobi global create-post` — Create a personal post. `--vault-slug` and `--auto-attachments` work the same as on `space create-post`.
91
+ - `gobi global edit-post <postId>` Edit a personal post you authored. `--vault-slug ""` detaches the vault.
92
+ - `gobi global delete-post <postId>` — Delete a personal post you authored.
93
+ - `gobi global create-reply <postId>` — Reply to a personal post.
94
+ - `gobi global edit-reply <replyId>` — Edit a reply you authored.
95
+ - `gobi global delete-reply <replyId>` — Delete a reply you authored.
79
96
 
80
97
  ## Reference Documentation
81
98
 
@@ -3,80 +3,141 @@
3
3
  ```
4
4
  Usage: gobi global [options] [command]
5
5
 
6
- Global thread space commands (no slug; visible across all spaces).
6
+ Global commands (posts and replies in the public feed across all vaults).
7
7
 
8
8
  Options:
9
9
  -h, --help display help for command
10
10
 
11
11
  Commands:
12
- messages [options] List the global unified message feed (threads and replies, newest first).
13
- get-thread [options] <threadId> Get a global thread and its direct replies (paginated).
14
- ancestors <threadId> Show the ancestor lineage of a global thread or reply (root immediate parent).
15
- create-thread [options] Create a thread in the global space.
16
- reply [options] <threadId> Reply to a thread in the global space.
12
+ feed [options] List the global public feed (posts and replies, newest first).
13
+ list-posts [options] List posts in the global feed (paginated). Pass --mine to limit to your own posts.
14
+ get-post [options] <postId> Get a global post with its ancestors and replies (paginated).
15
+ create-post [options] Create a post in the global feed (publishes from your vault).
16
+ edit-post [options] <postId> Edit a post you authored in the global feed.
17
+ delete-post <postId> Delete a post you authored in the global feed.
18
+ create-reply [options] <postId> Reply to a post in the global feed.
19
+ edit-reply [options] <replyId> Edit a reply you authored in the global feed.
20
+ delete-reply <replyId> Delete a reply you authored in the global feed.
17
21
  help [command] display help for command
18
22
  ```
19
23
 
20
- ## messages
24
+ ## feed
21
25
 
22
26
  ```
23
- Usage: gobi global messages [options]
27
+ Usage: gobi global feed [options]
24
28
 
25
- List the global unified message feed (threads and replies, newest first).
29
+ List the global public feed (posts and replies, newest first).
26
30
 
27
31
  Options:
28
32
  --limit <number> Items per page (default: "20")
29
33
  --cursor <string> Pagination cursor from previous response
34
+ --following Only include posts from authors you follow
30
35
  -h, --help display help for command
31
36
  ```
32
37
 
33
- ## get-thread
38
+ ## list-posts
34
39
 
35
40
  ```
36
- Usage: gobi global get-thread [options] <threadId>
41
+ Usage: gobi global list-posts [options]
37
42
 
38
- Get a global thread and its direct replies (paginated).
43
+ List posts in the global feed (paginated). Pass --mine to limit to your own posts.
44
+
45
+ Options:
46
+ --limit <number> Items per page (default: "20")
47
+ --cursor <string> Pagination cursor from previous response
48
+ --mine Only include posts authored by you
49
+ --vault-slug <vaultSlug> Filter by author vault slug
50
+ -h, --help display help for command
51
+ ```
52
+
53
+ ## get-post
54
+
55
+ ```
56
+ Usage: gobi global get-post [options] <postId>
57
+
58
+ Get a global post with its ancestors and replies (paginated).
39
59
 
40
60
  Options:
41
61
  --limit <number> Replies per page (default: "20")
42
62
  --cursor <string> Pagination cursor from previous response
63
+ --full Show full reply content without truncation
43
64
  -h, --help display help for command
44
65
  ```
45
66
 
46
- ## ancestors
67
+ ## create-post
47
68
 
48
69
  ```
49
- Usage: gobi global ancestors [options] <threadId>
70
+ Usage: gobi global create-post [options]
50
71
 
51
- Show the ancestor lineage of a global thread or reply (root immediate parent).
72
+ Create a post in the global feed (publishes from your vault).
52
73
 
53
74
  Options:
54
- -h, --help display help for command
75
+ --title <title> Title of the post
76
+ --content <content> Post content (markdown supported, use "-" for stdin)
77
+ --rich-text <richText> Rich-text JSON array (mutually exclusive with --content)
78
+ --vault-slug <vaultSlug> Author vault slug (overrides .gobi/settings.yaml)
79
+ --auto-attachments Upload wiki-linked [[files]] to webdrive before posting
80
+ -h, --help display help for command
55
81
  ```
56
82
 
57
- ## create-thread
83
+ ## edit-post
58
84
 
59
85
  ```
60
- Usage: gobi global create-thread [options]
86
+ Usage: gobi global edit-post [options] <postId>
61
87
 
62
- Create a thread in the global space.
88
+ Edit a post you authored in the global feed.
63
89
 
64
90
  Options:
65
- --title <title> Title of the thread
66
- --content <content> Thread content (markdown supported, use "-" for stdin)
67
- --rich-text <richText> Rich-text JSON array (mutually exclusive with --content)
68
- -h, --help display help for command
91
+ --title <title> New title
92
+ --content <content> New content (markdown supported, use "-" for stdin)
93
+ --rich-text <richText> Rich-text JSON array (mutually exclusive with --content)
94
+ --vault-slug <vaultSlug> Attribute the post to this vault (sets authorVaultId). Pass an empty string to detach.
95
+ -h, --help display help for command
69
96
  ```
70
97
 
71
- ## reply
98
+ ## delete-post
72
99
 
73
100
  ```
74
- Usage: gobi global reply [options] <threadId>
101
+ Usage: gobi global delete-post [options] <postId>
75
102
 
76
- Reply to a thread in the global space.
103
+ Delete a post you authored in the global feed.
104
+
105
+ Options:
106
+ -h, --help display help for command
107
+ ```
108
+
109
+ ## create-reply
110
+
111
+ ```
112
+ Usage: gobi global create-reply [options] <postId>
113
+
114
+ Reply to a post in the global feed.
77
115
 
78
116
  Options:
79
117
  --content <content> Reply content (markdown supported, use "-" for stdin)
80
118
  --rich-text <richText> Rich-text JSON array (mutually exclusive with --content)
81
119
  -h, --help display help for command
82
120
  ```
121
+
122
+ ## edit-reply
123
+
124
+ ```
125
+ Usage: gobi global edit-reply [options] <replyId>
126
+
127
+ Edit a reply you authored in the global feed.
128
+
129
+ Options:
130
+ --content <content> New reply content (markdown supported, use "-" for stdin)
131
+ -h, --help display help for command
132
+ ```
133
+
134
+ ## delete-reply
135
+
136
+ ```
137
+ Usage: gobi global delete-reply [options] <replyId>
138
+
139
+ Delete a reply you authored in the global feed.
140
+
141
+ Options:
142
+ -h, --help display help for command
143
+ ```
@@ -3,29 +3,28 @@
3
3
  ```
4
4
  Usage: gobi space [options] [command]
5
5
 
6
- Space commands (threads, replies). Space and member admin is web-UI only.
6
+ Space commands (posts, replies). Space and member admin is web-UI only.
7
7
 
8
8
  Options:
9
- --space-slug <slug> Space slug (overrides .gobi/settings.yaml)
10
- -h, --help display help for command
9
+ --space-slug <slug> Space slug (overrides .gobi/settings.yaml)
10
+ -h, --help display help for command
11
11
 
12
12
  Commands:
13
- list List spaces you are a member of.
14
- get [spaceSlug] Get details for a space. Pass a slug or omit to use the current space (from .gobi/settings.yaml or --space-slug).
15
- warp [spaceSlug] Select the active space. Pass a slug to warp directly, or omit for interactive selection.
16
- list-topics [options] List topics in a space, ordered by most recent content linkage.
17
- list-topic-threads [options] <topicSlug> List threads tagged with a topic in a space (cursor-paginated).
18
- messages [options] List the unified message feed (threads and replies, newest first) in a space.
19
- ancestors <threadId> Show the ancestor lineage of a thread or reply (root → immediate parent).
20
- get-thread [options] <threadId> Get a thread and its replies (paginated).
21
- list-threads [options] List threads in a space (paginated).
22
- create-thread [options] Create a thread in a space.
23
- edit-thread [options] <threadId> Edit a thread. You must be the author.
24
- delete-thread <threadId> Delete a thread. You must be the author.
25
- create-reply [options] <threadId> Create a reply to a thread in a space.
26
- edit-reply [options] <replyId> Edit a reply. You must be the author.
27
- delete-reply <replyId> Delete a reply. You must be the author.
28
- help [command] display help for command
13
+ list List spaces you are a member of.
14
+ get [spaceSlug] Get details for a space. Pass a slug or omit to use the current space (from .gobi/settings.yaml or --space-slug).
15
+ warp [spaceSlug] Select the active space. Pass a slug to warp directly, or omit for interactive selection.
16
+ list-topics [options] List topics in a space, ordered by most recent content linkage.
17
+ list-topic-posts [options] <topicSlug> List posts tagged with a topic in a space (cursor-paginated).
18
+ feed [options] List the unified feed (posts and replies, newest first) in a space.
19
+ get-post [options] <postId> Get a post with its ancestors and replies (paginated).
20
+ list-posts [options] List posts in a space (paginated).
21
+ create-post [options] Create a post in a space.
22
+ edit-post [options] <postId> Edit a post. You must be the author.
23
+ delete-post <postId> Delete a post. You must be the author.
24
+ create-reply [options] <postId> Create a reply to a post in a space.
25
+ edit-reply [options] <replyId> Edit a reply. You must be the author.
26
+ delete-reply <replyId> Delete a reply. You must be the author.
27
+ help [command] display help for command
29
28
  ```
30
29
 
31
30
  ## get
@@ -51,12 +50,12 @@ Options:
51
50
  -h, --help display help for command
52
51
  ```
53
52
 
54
- ## list-topic-threads
53
+ ## list-topic-posts
55
54
 
56
55
  ```
57
- Usage: gobi space list-topic-threads [options] <topicSlug>
56
+ Usage: gobi space list-topic-posts [options] <topicSlug>
58
57
 
59
- List threads tagged with a topic in a space (cursor-paginated).
58
+ List posts tagged with a topic in a space (cursor-paginated).
60
59
 
61
60
  Options:
62
61
  --limit <number> Items per page (default: "20")
@@ -64,12 +63,12 @@ Options:
64
63
  -h, --help display help for command
65
64
  ```
66
65
 
67
- ## messages
66
+ ## feed
68
67
 
69
68
  ```
70
- Usage: gobi space messages [options]
69
+ Usage: gobi space feed [options]
71
70
 
72
- List the unified message feed (threads and replies, newest first) in a space.
71
+ List the unified feed (posts and replies, newest first) in a space.
73
72
 
74
73
  Options:
75
74
  --limit <number> Items per page (default: "20")
@@ -77,23 +76,12 @@ Options:
77
76
  -h, --help display help for command
78
77
  ```
79
78
 
80
- ## ancestors
79
+ ## get-post
81
80
 
82
81
  ```
83
- Usage: gobi space ancestors [options] <threadId>
82
+ Usage: gobi space get-post [options] <postId>
84
83
 
85
- Show the ancestor lineage of a thread or reply (root → immediate parent).
86
-
87
- Options:
88
- -h, --help display help for command
89
- ```
90
-
91
- ## get-thread
92
-
93
- ```
94
- Usage: gobi space get-thread [options] <threadId>
95
-
96
- Get a thread and its replies (paginated).
84
+ Get a post with its ancestors and replies (paginated).
97
85
 
98
86
  Options:
99
87
  --limit <number> Replies per page (default: "20")
@@ -101,12 +89,12 @@ Options:
101
89
  -h, --help display help for command
102
90
  ```
103
91
 
104
- ## list-threads
92
+ ## list-posts
105
93
 
106
94
  ```
107
- Usage: gobi space list-threads [options]
95
+ Usage: gobi space list-posts [options]
108
96
 
109
- List threads in a space (paginated).
97
+ List posts in a space (paginated).
110
98
 
111
99
  Options:
112
100
  --limit <number> Items per page (default: "20")
@@ -114,42 +102,42 @@ Options:
114
102
  -h, --help display help for command
115
103
  ```
116
104
 
117
- ## create-thread
105
+ ## create-post
118
106
 
119
107
  ```
120
- Usage: gobi space create-thread [options]
108
+ Usage: gobi space create-post [options]
121
109
 
122
- Create a thread in a space.
110
+ Create a post in a space.
123
111
 
124
112
  Options:
125
- --title <title> Title of the thread
126
- --content <content> Thread content (markdown supported)
127
- --auto-attachments Upload wiki-linked [[files]] to webdrive before posting
128
- --vault-slug <vaultSlug> Vault slug for attachment uploads (overrides .gobi/settings.yaml)
113
+ --title <title> Title of the post
114
+ --content <content> Post content (markdown supported)
115
+ --auto-attachments Upload wiki-linked [[files]] to webdrive before posting (also attributes the post to that vault)
116
+ --vault-slug <vaultSlug> Attribute the post to this vault (sets authorVaultId). Also used as upload destination for --auto-attachments.
129
117
  -h, --help display help for command
130
118
  ```
131
119
 
132
- ## edit-thread
120
+ ## edit-post
133
121
 
134
122
  ```
135
- Usage: gobi space edit-thread [options] <threadId>
123
+ Usage: gobi space edit-post [options] <postId>
136
124
 
137
- Edit a thread. You must be the author.
125
+ Edit a post. You must be the author.
138
126
 
139
127
  Options:
140
- --title <title> New title for the thread
141
- --content <content> New content for the thread (markdown supported)
142
- --auto-attachments Upload wiki-linked [[files]] to webdrive before editing
143
- --vault-slug <vaultSlug> Vault slug for attachment uploads (overrides .gobi/settings.yaml)
128
+ --title <title> New title for the post
129
+ --content <content> New content for the post (markdown supported)
130
+ --auto-attachments Upload wiki-linked [[files]] to webdrive before editing (also attributes the post to that vault)
131
+ --vault-slug <vaultSlug> Attribute the post to this vault (sets authorVaultId). Also used as upload destination for --auto-attachments. Pass an empty string to detach.
144
132
  -h, --help display help for command
145
133
  ```
146
134
 
147
- ## delete-thread
135
+ ## delete-post
148
136
 
149
137
  ```
150
- Usage: gobi space delete-thread [options] <threadId>
138
+ Usage: gobi space delete-post [options] <postId>
151
139
 
152
- Delete a thread. You must be the author.
140
+ Delete a post. You must be the author.
153
141
 
154
142
  Options:
155
143
  -h, --help display help for command
@@ -158,9 +146,9 @@ Options:
158
146
  ## create-reply
159
147
 
160
148
  ```
161
- Usage: gobi space create-reply [options] <threadId>
149
+ Usage: gobi space create-reply [options] <postId>
162
150
 
163
- Create a reply to a thread in a space.
151
+ Create a reply to a post in a space.
164
152
 
165
153
  Options:
166
154
  --content <content> Reply content (markdown supported)
@@ -0,0 +1,92 @@
1
+ ---
2
+ name: gobi-vault
3
+ description: >-
4
+ Gobi vault commands for publishing your vault profile and syncing files:
5
+ publish/unpublish PUBLISH.md and run the local-to-webdrive sync. Use when
6
+ the user wants to publish their vault, unpublish it, or push/pull files.
7
+ allowed-tools: Bash(gobi:*)
8
+ metadata:
9
+ author: gobi-ai
10
+ version: "2.0.0"
11
+ ---
12
+
13
+ # gobi-vault
14
+
15
+ Gobi vault commands for publishing your vault profile and syncing files (v2.0.0).
16
+
17
+ Requires gobi-cli installed and authenticated. See gobi-core skill for setup.
18
+
19
+ ## Gobi Vault
20
+
21
+ A "vault" is your file-backed knowledge home. Public vaults are accessible at `https://gobispace.com/@{vaultSlug}`. Each vault has a profile written to `PUBLISH.md` at its root; publishing pushes that file to webdrive, which then updates vault metadata and the public profile.
22
+
23
+ ## Important: JSON Mode
24
+
25
+ For programmatic/agent usage, always pass `--json` as a **global** option (before the subcommand):
26
+
27
+ ```bash
28
+ gobi --json vault publish
29
+ ```
30
+
31
+ ## Available Commands
32
+
33
+ - `gobi vault publish` — Upload `PUBLISH.md` to the vault root on webdrive. Triggers post-processing (vault profile sync, metadata update, Discord notification).
34
+ - `gobi vault unpublish` — Delete `PUBLISH.md` from the vault on webdrive.
35
+ - `gobi vault sync` — Sync local vault files with Gobi Webdrive. Supports `--upload-only`, `--download-only`, `--conflict <ask|server|client|skip>`, `--dry-run`, `--full`, `--path <p>`, `--plan-file`, `--execute`.
36
+
37
+ ## PUBLISH.md Frontmatter Reference
38
+
39
+ `PUBLISH.md` is the metadata file at the root of every vault. Its YAML frontmatter controls the vault's public profile, homepage, and AI agent behavior. Example:
40
+
41
+ ```yaml
42
+ ---
43
+ title: My Vault
44
+ tags:
45
+ - topic1
46
+ - topic2
47
+ description: A short description of what this vault is about.
48
+ thumbnail: "[[PROFILE.png]]"
49
+ homepage: "[[app/home.html?nav=false]]"
50
+ prompt: "[[system-prompt.md]]"
51
+ ---
52
+ ```
53
+
54
+ ### Fields
55
+
56
+ - **`title`** (required) — Display name of the vault.
57
+ - **`description`** (required for public listing) — Short description shown on the vault card and public profile. Without both `title` and `description`, the vault won't appear in the public catalog.
58
+ - **`tags`** — Tags for categorization and discovery. Supports YAML block list or inline array format:
59
+ ```yaml
60
+ # Block list
61
+ tags:
62
+ - ambient ai
63
+ - wearables
64
+
65
+ # Inline array
66
+ tags: [ambient ai, wearables]
67
+ ```
68
+ - **`thumbnail`** — Profile image for the vault card. Uses wiki-link syntax pointing to an image file in the vault (e.g. `"[[PROFILE.png]]"`).
69
+ - **`homepage`** — Custom HTML page to serve as the vault's public homepage at `gobispace.com/@{vaultSlug}`. Uses wiki-link syntax pointing to an HTML file in the vault. Supports a `nav` query parameter to control Gobi's sidebar navigation:
70
+ - `"[[app/home.html]]"` — Shows the Gobi sidebar alongside the homepage (default)
71
+ - `"[[app/home.html?nav=false]]"` — Full-screen, no Gobi sidebar/chrome
72
+ - **`prompt`** — Wiki-link to a custom system prompt file for the vault's AI agent (e.g. `"[[system-prompt.md]]"`).
73
+
74
+ > For details on building custom HTML homepages and using the `window.gobi` API, see the **gobi-homepage** skill.
75
+
76
+ ## Publishing Workflow
77
+
78
+ After editing `PUBLISH.md` frontmatter, follow these steps to make your changes live:
79
+
80
+ 1. **Edit `PUBLISH.md`** in the vault root with the desired frontmatter fields.
81
+ 2. **Sync referenced files** — if the homepage HTML, thumbnail image, or prompt file is new or updated, upload them first:
82
+ ```bash
83
+ gobi vault sync
84
+ ```
85
+ 3. **Publish the vault**:
86
+ ```bash
87
+ gobi vault publish
88
+ ```
89
+ This uploads `PUBLISH.md` to webdrive, triggers post-processing that extracts metadata (title, description, tags, thumbnail, homepage path), updates the vault's public profile, and sends a Discord notification.
90
+ 4. The vault is now live at `https://gobispace.com/@{vaultSlug}`.
91
+
92
+ > **Important:** Any time you change `PUBLISH.md` frontmatter (e.g. adding or updating `homepage`), you must re-run `gobi vault publish` for the changes to take effect.
@@ -1,7 +1,46 @@
1
- # gobi sync
1
+ # gobi vault
2
2
 
3
3
  ```
4
- Usage: gobi sync [options]
4
+ Usage: gobi vault [options] [command]
5
+
6
+ Vault commands (publish/unpublish profile, sync files).
7
+
8
+ Options:
9
+ -h, --help display help for command
10
+
11
+ Commands:
12
+ publish Upload PUBLISH.md to the vault root on webdrive. Triggers post-processing (vault sync, metadata update, Discord notification).
13
+ unpublish Delete PUBLISH.md from the vault on webdrive.
14
+ sync [options] Sync local vault files with Gobi Webdrive.
15
+ help [command] display help for command
16
+ ```
17
+
18
+ ## publish
19
+
20
+ ```
21
+ Usage: gobi vault publish [options]
22
+
23
+ Upload PUBLISH.md to the vault root on webdrive. Triggers post-processing (vault sync, metadata update, Discord notification).
24
+
25
+ Options:
26
+ -h, --help display help for command
27
+ ```
28
+
29
+ ## unpublish
30
+
31
+ ```
32
+ Usage: gobi vault unpublish [options]
33
+
34
+ Delete PUBLISH.md from the vault on webdrive.
35
+
36
+ Options:
37
+ -h, --help display help for command
38
+ ```
39
+
40
+ ## sync
41
+
42
+ ```
43
+ Usage: gobi vault sync [options]
5
44
 
6
45
  Sync local vault files with Gobi Webdrive.
7
46