@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.
- package/.claude-plugin/marketplace.json +5 -6
- package/.claude-plugin/plugin.json +3 -4
- package/README.md +174 -82
- package/commands/space-explore.md +10 -10
- package/commands/space-share.md +13 -7
- package/dist/attachments.js +2 -1
- package/dist/commands/draft.js +2 -3
- package/dist/commands/global.js +212 -72
- package/dist/commands/init.js +5 -5
- package/dist/commands/{notes.js → saved.js} +115 -23
- package/dist/commands/space.js +121 -111
- package/dist/commands/sync.js +2 -56
- package/dist/commands/update.js +14 -8
- package/dist/commands/utils.js +6 -0
- package/dist/commands/vault.js +113 -0
- package/dist/main.js +4 -8
- package/package.json +2 -2
- package/skills/gobi-core/SKILL.md +19 -15
- package/skills/gobi-core/references/space.md +18 -19
- package/skills/gobi-draft/SKILL.md +3 -3
- package/skills/gobi-homepage/SKILL.md +21 -19
- package/skills/gobi-media/SKILL.md +2 -2
- package/skills/gobi-saved/SKILL.md +59 -0
- package/skills/gobi-saved/references/saved.md +52 -0
- package/skills/gobi-sense/SKILL.md +8 -4
- package/skills/gobi-space/SKILL.md +55 -38
- package/skills/gobi-space/references/global.md +87 -26
- package/skills/gobi-space/references/space.md +49 -61
- package/skills/gobi-vault/SKILL.md +92 -0
- package/skills/{gobi-core/references/sync.md → gobi-vault/references/vault.md} +41 -2
- package/dist/commands/brain.js +0 -141
- package/dist/commands/feed.js +0 -148
- package/skills/gobi-brain/SKILL.md +0 -100
- package/skills/gobi-brain/references/brain.md +0 -66
- package/skills/gobi-feed/SKILL.md +0 -43
- package/skills/gobi-feed/references/feed.md +0 -80
- package/skills/gobi-notes/SKILL.md +0 -52
- 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
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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.
|
|
13
|
+
version: "2.0.0"
|
|
13
14
|
---
|
|
14
15
|
|
|
15
16
|
# gobi-space
|
|
16
17
|
|
|
17
|
-
Gobi space
|
|
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
|
-
##
|
|
22
|
+
## Two scopes, one data model
|
|
22
23
|
|
|
23
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
54
|
-
|
|
55
|
-
### Feed
|
|
56
|
-
- `gobi space
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
- `gobi space get-
|
|
61
|
-
- `gobi space
|
|
62
|
-
- `gobi space
|
|
63
|
-
- `gobi space
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
- `gobi space
|
|
68
|
-
- `gobi space
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
- `gobi global
|
|
75
|
-
- `gobi global
|
|
76
|
-
- `gobi global
|
|
77
|
-
- `gobi global create-
|
|
78
|
-
- `gobi global
|
|
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
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
create-
|
|
16
|
-
|
|
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
|
-
##
|
|
24
|
+
## feed
|
|
21
25
|
|
|
22
26
|
```
|
|
23
|
-
Usage: gobi global
|
|
27
|
+
Usage: gobi global feed [options]
|
|
24
28
|
|
|
25
|
-
List the global
|
|
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
|
-
##
|
|
38
|
+
## list-posts
|
|
34
39
|
|
|
35
40
|
```
|
|
36
|
-
Usage: gobi global
|
|
41
|
+
Usage: gobi global list-posts [options]
|
|
37
42
|
|
|
38
|
-
|
|
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
|
-
##
|
|
67
|
+
## create-post
|
|
47
68
|
|
|
48
69
|
```
|
|
49
|
-
Usage: gobi global
|
|
70
|
+
Usage: gobi global create-post [options]
|
|
50
71
|
|
|
51
|
-
|
|
72
|
+
Create a post in the global feed (publishes from your vault).
|
|
52
73
|
|
|
53
74
|
Options:
|
|
54
|
-
|
|
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
|
-
##
|
|
83
|
+
## edit-post
|
|
58
84
|
|
|
59
85
|
```
|
|
60
|
-
Usage: gobi global
|
|
86
|
+
Usage: gobi global edit-post [options] <postId>
|
|
61
87
|
|
|
62
|
-
|
|
88
|
+
Edit a post you authored in the global feed.
|
|
63
89
|
|
|
64
90
|
Options:
|
|
65
|
-
--title <title>
|
|
66
|
-
--content <content>
|
|
67
|
-
--rich-text <richText>
|
|
68
|
-
-
|
|
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
|
-
##
|
|
98
|
+
## delete-post
|
|
72
99
|
|
|
73
100
|
```
|
|
74
|
-
Usage: gobi global
|
|
101
|
+
Usage: gobi global delete-post [options] <postId>
|
|
75
102
|
|
|
76
|
-
|
|
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 (
|
|
6
|
+
Space commands (posts, replies). Space and member admin is web-UI only.
|
|
7
7
|
|
|
8
8
|
Options:
|
|
9
|
-
--space-slug <slug>
|
|
10
|
-
-h, --help
|
|
9
|
+
--space-slug <slug> Space slug (overrides .gobi/settings.yaml)
|
|
10
|
+
-h, --help display help for command
|
|
11
11
|
|
|
12
12
|
Commands:
|
|
13
|
-
list
|
|
14
|
-
get [spaceSlug]
|
|
15
|
-
warp [spaceSlug]
|
|
16
|
-
list-topics [options]
|
|
17
|
-
list-topic-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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-
|
|
53
|
+
## list-topic-posts
|
|
55
54
|
|
|
56
55
|
```
|
|
57
|
-
Usage: gobi space list-topic-
|
|
56
|
+
Usage: gobi space list-topic-posts [options] <topicSlug>
|
|
58
57
|
|
|
59
|
-
List
|
|
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
|
-
##
|
|
66
|
+
## feed
|
|
68
67
|
|
|
69
68
|
```
|
|
70
|
-
Usage: gobi space
|
|
69
|
+
Usage: gobi space feed [options]
|
|
71
70
|
|
|
72
|
-
List the unified
|
|
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
|
-
##
|
|
79
|
+
## get-post
|
|
81
80
|
|
|
82
81
|
```
|
|
83
|
-
Usage: gobi space
|
|
82
|
+
Usage: gobi space get-post [options] <postId>
|
|
84
83
|
|
|
85
|
-
|
|
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-
|
|
92
|
+
## list-posts
|
|
105
93
|
|
|
106
94
|
```
|
|
107
|
-
Usage: gobi space list-
|
|
95
|
+
Usage: gobi space list-posts [options]
|
|
108
96
|
|
|
109
|
-
List
|
|
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-
|
|
105
|
+
## create-post
|
|
118
106
|
|
|
119
107
|
```
|
|
120
|
-
Usage: gobi space create-
|
|
108
|
+
Usage: gobi space create-post [options]
|
|
121
109
|
|
|
122
|
-
Create a
|
|
110
|
+
Create a post in a space.
|
|
123
111
|
|
|
124
112
|
Options:
|
|
125
|
-
--title <title> Title of the
|
|
126
|
-
--content <content>
|
|
127
|
-
--auto-attachments Upload wiki-linked [[files]] to webdrive before posting
|
|
128
|
-
--vault-slug <vaultSlug>
|
|
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-
|
|
120
|
+
## edit-post
|
|
133
121
|
|
|
134
122
|
```
|
|
135
|
-
Usage: gobi space edit-
|
|
123
|
+
Usage: gobi space edit-post [options] <postId>
|
|
136
124
|
|
|
137
|
-
Edit a
|
|
125
|
+
Edit a post. You must be the author.
|
|
138
126
|
|
|
139
127
|
Options:
|
|
140
|
-
--title <title> New title for the
|
|
141
|
-
--content <content> New content for the
|
|
142
|
-
--auto-attachments Upload wiki-linked [[files]] to webdrive before editing
|
|
143
|
-
--vault-slug <vaultSlug>
|
|
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-
|
|
135
|
+
## delete-post
|
|
148
136
|
|
|
149
137
|
```
|
|
150
|
-
Usage: gobi space delete-
|
|
138
|
+
Usage: gobi space delete-post [options] <postId>
|
|
151
139
|
|
|
152
|
-
Delete a
|
|
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] <
|
|
149
|
+
Usage: gobi space create-reply [options] <postId>
|
|
162
150
|
|
|
163
|
-
Create a reply to a
|
|
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
|
|
1
|
+
# gobi vault
|
|
2
2
|
|
|
3
3
|
```
|
|
4
|
-
Usage: gobi
|
|
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
|
|