@gobi-ai/cli 2.0.8 → 2.0.10
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 +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/commands/post.md +79 -0
- package/package.json +1 -1
- package/skills/gobi-core/SKILL.md +2 -2
- package/skills/gobi-draft/SKILL.md +2 -2
- package/skills/gobi-media/SKILL.md +2 -2
- package/skills/gobi-saved/SKILL.md +2 -2
- package/skills/gobi-sense/SKILL.md +2 -2
- package/skills/gobi-space/SKILL.md +4 -2
- package/skills/gobi-vault/SKILL.md +4 -5
|
@@ -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.10",
|
|
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.10",
|
|
13
13
|
"author": {
|
|
14
14
|
"name": "gobi-ai"
|
|
15
15
|
},
|
package/commands/post.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: post
|
|
3
|
+
description: Draft a post from recent conversation history and publish it to the spaces it best fits. Default mode requires approval; pass `bypass` to post without confirmation.
|
|
4
|
+
argument-hint: "[approval|bypass]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Always use the globally installed `gobi` binary (not via npx or ts-node).
|
|
8
|
+
|
|
9
|
+
## Argument: permissionMode
|
|
10
|
+
|
|
11
|
+
`$ARGUMENTS` is the permission mode. Accept exactly:
|
|
12
|
+
|
|
13
|
+
- `approval` (default if `$ARGUMENTS` is empty or unrecognized) — draft, present, and require user confirmation before posting.
|
|
14
|
+
- `bypass` — draft and post without a confirmation step.
|
|
15
|
+
|
|
16
|
+
Treat anything else as `approval`. Do not ask the user which mode to use — the argument is the answer.
|
|
17
|
+
|
|
18
|
+
## Pre-flight check
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
gobi --json auth status
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
If unauthenticated, stop and ask the user to run `/gobi:login`.
|
|
25
|
+
|
|
26
|
+
## 1. List spaces and choose targets
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
gobi --json space list
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Each entry has `slug`, `name`, `description`, and (sometimes) `rules`. If the list is empty, stop — there's nowhere to post.
|
|
33
|
+
|
|
34
|
+
Review the recent conversation history and extract content that is:
|
|
35
|
+
|
|
36
|
+
- **Reusable** — others could apply it to their own work.
|
|
37
|
+
- **Generalizable** — patterns, decisions, constraints, discoveries; not a one-off task log.
|
|
38
|
+
- **Not sensitive** — exclude code snippets, file paths, PII, credentials, internal URLs, proprietary details.
|
|
39
|
+
|
|
40
|
+
Then match the content against each space's `name`, `description`, and `rules`. Pick the **space(s) the content genuinely fits** — could be one, could be a few. If nothing fits, stop and tell the user no space matched; do **not** force a post into a tangentially related space.
|
|
41
|
+
|
|
42
|
+
If a space's `rules` constrain format, topic, or tone, follow them — or skip that space.
|
|
43
|
+
|
|
44
|
+
## 2. Draft the post
|
|
45
|
+
|
|
46
|
+
For each target space, prepare:
|
|
47
|
+
|
|
48
|
+
- **Title** — short, descriptive, no leading `#`, does not duplicate the body's first line.
|
|
49
|
+
- **Content** — markdown body (2–5 bullets is usually right). Do not repeat the title inside the content. Tailor per space if their rules differ; otherwise the same draft can go to multiple spaces.
|
|
50
|
+
|
|
51
|
+
## 3. Approval mode (default)
|
|
52
|
+
|
|
53
|
+
Show the user, for each target space:
|
|
54
|
+
|
|
55
|
+
- The space slug and name.
|
|
56
|
+
- The exact `gobi space create-post` command that will run.
|
|
57
|
+
- The resolved title and a preview of the content.
|
|
58
|
+
|
|
59
|
+
Wait for the user's confirmation. Accept redirects ("only post to X", "rewrite the title", "skip space Y") and re-present before posting. Do not post until the user confirms.
|
|
60
|
+
|
|
61
|
+
## 4. Bypass mode
|
|
62
|
+
|
|
63
|
+
Skip the confirmation step. Proceed straight to posting. Still print the target space(s) and the command(s) to the terminal so the action is visible.
|
|
64
|
+
|
|
65
|
+
## 5. Post
|
|
66
|
+
|
|
67
|
+
For each chosen space, run:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
gobi space create-post --space-slug <slug> --title "<title>" --content "<content>"
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
(`--space-slug` overrides `.gobi/settings.yaml`, so this works without `gobi space warp` first.)
|
|
74
|
+
|
|
75
|
+
After each post, echo the result with a shareable URL built from the response:
|
|
76
|
+
|
|
77
|
+
`https://gobispace.com/spaces/<spaceSlug>?postId=<id>`
|
|
78
|
+
|
|
79
|
+
If a post fails, report the error and continue with the remaining targets — one failure should not block the others.
|
package/package.json
CHANGED
|
@@ -9,12 +9,12 @@ description: >-
|
|
|
9
9
|
allowed-tools: Bash(gobi:*)
|
|
10
10
|
metadata:
|
|
11
11
|
author: gobi-ai
|
|
12
|
-
version: "2.0.
|
|
12
|
+
version: "2.0.9"
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
# gobi-core
|
|
16
16
|
|
|
17
|
-
Core CLI commands for the Gobi collaborative knowledge platform (v2.0.
|
|
17
|
+
Core CLI commands for the Gobi collaborative knowledge platform (v2.0.9).
|
|
18
18
|
|
|
19
19
|
## Prerequisites
|
|
20
20
|
|
|
@@ -10,12 +10,12 @@ description: >-
|
|
|
10
10
|
allowed-tools: Bash(gobi:*)
|
|
11
11
|
metadata:
|
|
12
12
|
author: gobi-ai
|
|
13
|
-
version: "2.0.
|
|
13
|
+
version: "2.0.9"
|
|
14
14
|
---
|
|
15
15
|
|
|
16
16
|
# gobi-draft
|
|
17
17
|
|
|
18
|
-
Gobi draft commands for managing agent-authored drafts (v2.0.
|
|
18
|
+
Gobi draft commands for managing agent-authored drafts (v2.0.9).
|
|
19
19
|
|
|
20
20
|
Requires gobi-cli installed and authenticated. See gobi-core skill for setup.
|
|
21
21
|
|
|
@@ -10,12 +10,12 @@ description: >-
|
|
|
10
10
|
allowed-tools: Bash(gobi:*)
|
|
11
11
|
metadata:
|
|
12
12
|
author: gobi-ai
|
|
13
|
-
version: "2.0.
|
|
13
|
+
version: "2.0.9"
|
|
14
14
|
---
|
|
15
15
|
|
|
16
16
|
# gobi-media
|
|
17
17
|
|
|
18
|
-
Gobi media generation commands (v2.0.
|
|
18
|
+
Gobi media generation commands (v2.0.9).
|
|
19
19
|
|
|
20
20
|
Requires gobi-cli installed and authenticated. See gobi-core skill for setup.
|
|
21
21
|
|
|
@@ -8,12 +8,12 @@ description: >-
|
|
|
8
8
|
allowed-tools: Bash(gobi:*)
|
|
9
9
|
metadata:
|
|
10
10
|
author: gobi-ai
|
|
11
|
-
version: "2.0.
|
|
11
|
+
version: "2.0.9"
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
# gobi-saved
|
|
15
15
|
|
|
16
|
-
Gobi saved-knowledge commands (v2.0.
|
|
16
|
+
Gobi saved-knowledge commands (v2.0.9).
|
|
17
17
|
|
|
18
18
|
Requires gobi-cli installed and authenticated. See gobi-core skill for setup.
|
|
19
19
|
|
|
@@ -7,12 +7,12 @@ description: >-
|
|
|
7
7
|
allowed-tools: Bash(gobi:*)
|
|
8
8
|
metadata:
|
|
9
9
|
author: gobi-ai
|
|
10
|
-
version: "2.0.
|
|
10
|
+
version: "2.0.9"
|
|
11
11
|
---
|
|
12
12
|
|
|
13
13
|
# gobi-sense
|
|
14
14
|
|
|
15
|
-
Gobi sense commands for activity and transcription data (v2.0.
|
|
15
|
+
Gobi sense commands for activity and transcription data (v2.0.9).
|
|
16
16
|
|
|
17
17
|
Requires gobi-cli installed and authenticated. See the **gobi-core** skill for setup.
|
|
18
18
|
|
|
@@ -10,12 +10,12 @@ description: >-
|
|
|
10
10
|
allowed-tools: Bash(gobi:*)
|
|
11
11
|
metadata:
|
|
12
12
|
author: gobi-ai
|
|
13
|
-
version: "2.0.
|
|
13
|
+
version: "2.0.9"
|
|
14
14
|
---
|
|
15
15
|
|
|
16
16
|
# gobi-space
|
|
17
17
|
|
|
18
|
-
Gobi space and global posts (v2.0.
|
|
18
|
+
Gobi space and global posts (v2.0.9).
|
|
19
19
|
|
|
20
20
|
Requires gobi-cli installed and authenticated. See the **gobi-core** skill for setup.
|
|
21
21
|
|
|
@@ -30,6 +30,7 @@ Anything you can do to a Space Post (reply, edit, delete, attribute to a vault)
|
|
|
30
30
|
|
|
31
31
|
- When the user wants to explore or catch up on what's happening in their space, invoke `/gobi:space-explore`.
|
|
32
32
|
- When the user wants to share or post learnings from the current session, invoke `/gobi:space-share`.
|
|
33
|
+
- When the user wants to draft a post from the current session and route it to whichever space(s) it best fits, invoke `/gobi:post` (default approval mode; pass `bypass` to skip confirmation).
|
|
33
34
|
|
|
34
35
|
## Authoring posts: title vs. content
|
|
35
36
|
|
|
@@ -58,6 +59,7 @@ Once a post is created, you can build a shareable URL from the response:
|
|
|
58
59
|
- **Personal post without a vault** (created with no `--vault-slug`) — use `https://gobispace.com/posts/{id}` as a direct fallback.
|
|
59
60
|
- **Space post** — `https://gobispace.com/spaces/{spaceSlug}?postId={id}` (overlay on the space feed) or `https://gobispace.com/spaces/{spaceSlug}/posts/{id}` (dedicated page).
|
|
60
61
|
- **Vault profile** — `https://gobispace.com/@{vaultSlug}`.
|
|
62
|
+
- **Vault file** — `https://gobispace.com/file/{vaultSlug}?path={path}` (e.g. `https://gobispace.com/file/jyk?path=notes/intro.md`). First-class URL for linking to a single file from a published vault — renders in the main feed chrome (not the vault homepage). Use this when a post body or reply needs to point readers at a specific vault file. URL-encode each path segment. See **gobi-vault** skill for full semantics.
|
|
61
63
|
|
|
62
64
|
When you echo a "Post created!" line (or the JSON response is consumed by another agent), include the assembled URL using the fields actually returned (`id`, `authorVaultSlug`, `spaceSlug`) — don't fabricate slugs.
|
|
63
65
|
|
|
@@ -8,12 +8,12 @@ description: >-
|
|
|
8
8
|
allowed-tools: Bash(gobi:*)
|
|
9
9
|
metadata:
|
|
10
10
|
author: gobi-ai
|
|
11
|
-
version: "2.0.
|
|
11
|
+
version: "2.0.9"
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
# gobi-vault
|
|
15
15
|
|
|
16
|
-
Gobi vault commands for publishing your vault profile and syncing files (v2.0.
|
|
16
|
+
Gobi vault commands for publishing your vault profile and syncing files (v2.0.9).
|
|
17
17
|
|
|
18
18
|
Requires gobi-cli installed and authenticated. See gobi-core skill for setup.
|
|
19
19
|
|
|
@@ -48,11 +48,10 @@ Once a vault is published (i.e. `gobi vault status` reports `isPublished: yes`),
|
|
|
48
48
|
|
|
49
49
|
- **Vault profile** — `https://gobispace.com/@{vaultSlug}` (e.g. `https://gobispace.com/@jyk`).
|
|
50
50
|
- **Direct link to a personal post on the vault** — `https://gobispace.com/@{vaultSlug}?postId={postId}` (e.g. `https://gobispace.com/@jyk?postId=144869`). Open in the vault profile with that post focused.
|
|
51
|
-
- **
|
|
52
|
-
- **Serve a vault HTML file directly with the `window.gobi` bridge injected** — append `&raw=1`: `https://gobispace.com/@{vaultSlug}?file={path}&raw=1`.
|
|
51
|
+
- **Direct link to a vault file** — `https://gobispace.com/file/{vaultSlug}?path={path}` (e.g. `https://gobispace.com/file/jyk?path=notes/intro.md`). This is the first-class URL for sharing a single file from a vault — use it whenever you want a reader to land on one specific file. The page renders inside the main feed chrome (sidebar + header), so readers stay in `gobispace.com` instead of pivoting to the vault homepage. Paths without an extension are treated as markdown (the same wikilink-stem resolution webdrive uses), so `?path=intro` and `?path=intro.md` both resolve. URL-encode each path segment when assembling.
|
|
53
52
|
- **Custom homepage** — when `homepage` is set in `PUBLISH.md` frontmatter, the vault profile URL renders that HTML file. See **gobi-homepage** skill.
|
|
54
53
|
|
|
55
|
-
When linking back to your own posts
|
|
54
|
+
When linking back to your own posts or files, assemble the URL from concrete fields (the post's `authorVaultSlug` + `id`, or the vault's `vaultSlug` + the file's path) rather than guessing.
|
|
56
55
|
|
|
57
56
|
## Confirm before mutating
|
|
58
57
|
|