@gobi-ai/cli 0.6.19 → 0.6.20
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/login.md +17 -0
- package/commands/logout.md +11 -0
- package/commands/space-explore.md +18 -0
- package/commands/space-share.md +45 -0
- package/commands/warp.md +17 -0
- package/package.json +3 -2
- package/skills/gobi/SKILL.md +2 -2
|
@@ -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": "0.6.
|
|
7
|
+
"version": "0.6.19",
|
|
8
8
|
"plugins": [
|
|
9
9
|
{
|
|
10
10
|
"name": "gobi",
|
|
11
11
|
"description": "Manage the Gobi collaborative knowledge platform from the command line. Search and ask brains, publish brain documents, create threads, manage sessions.",
|
|
12
|
-
"version": "0.6.
|
|
12
|
+
"version": "0.6.19",
|
|
13
13
|
"author": {
|
|
14
14
|
"name": "gobi-ai"
|
|
15
15
|
},
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: login
|
|
3
|
+
description: Log in to Gobi via Google OAuth
|
|
4
|
+
argument-hint: ""
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Always use the globally installed `gobi` binary (not via npx or ts-node).
|
|
8
|
+
|
|
9
|
+
Log the user in to Gobi using device code flow:
|
|
10
|
+
|
|
11
|
+
1. Run `gobi auth login` as a **background task** (use run_in_background).
|
|
12
|
+
2. Poll the task output every 2 seconds until the login URL appears in stdout.
|
|
13
|
+
3. Extract the URL and display it to the user as a clickable markdown link: `[Click here to log in to Gobi](<url>)`. Also show the user code separately.
|
|
14
|
+
4. Tell the user to open the link in their browser and approve the login.
|
|
15
|
+
5. Continue polling the background task until it exits (success or failure).
|
|
16
|
+
6. On success, confirm the user is now logged in.
|
|
17
|
+
7. On failure, show the error and suggest retrying.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: logout
|
|
3
|
+
description: Log out of Gobi and remove stored credentials
|
|
4
|
+
argument-hint: ""
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Always use the globally installed `gobi` binary (not via npx or ts-node).
|
|
8
|
+
|
|
9
|
+
Run `gobi auth logout` to log out of Gobi.
|
|
10
|
+
|
|
11
|
+
Confirm to the user that they have been logged out.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: space-explore
|
|
3
|
+
description: Explore what's happening in the active Gobi space — threads and learnings shared by others.
|
|
4
|
+
argument-hint: "[topic or keyword]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Always use the globally installed `gobi` binary (not via npx or ts-node).
|
|
8
|
+
|
|
9
|
+
Explore the active Gobi space to surface both discussions and learnings from others:
|
|
10
|
+
|
|
11
|
+
1. Run these two commands in parallel:
|
|
12
|
+
- `gobi space list-threads` — recent discussions in the space
|
|
13
|
+
- `gobi brain list-updates` — learnings and brain updates shared by members
|
|
14
|
+
2. Display both in a readable summary, grouped by type (Discussions / Learnings).
|
|
15
|
+
3. If `$ARGUMENTS` is provided, filter or highlight entries relevant to that topic or keyword.
|
|
16
|
+
4. Ask the user if they'd like to read anything in full:
|
|
17
|
+
- For a thread: run `gobi space get-thread <threadId>` and show it with replies.
|
|
18
|
+
- For a brain update: show the full content from the list output.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: space-share
|
|
3
|
+
description: Summarize recent learnings from this session and draft a brain update to share to the active Gobi space.
|
|
4
|
+
argument-hint: "[context]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Always use the globally installed `gobi` binary (not via npx or ts-node).
|
|
8
|
+
|
|
9
|
+
## Pre-flight check
|
|
10
|
+
|
|
11
|
+
First, verify the user is warped into a space:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
gobi --json auth status
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Check that `.gobi/settings.yaml` exists and contains both `vaultSlug` and `selectedSpaceSlug`. If not warped, stop and ask the user to run `/gobi:warp` first.
|
|
18
|
+
|
|
19
|
+
## Draft a brain update
|
|
20
|
+
|
|
21
|
+
If `$ARGUMENTS` is provided, treat it as additional context or emphasis to guide the draft (e.g. "Emphasize the auth fix" or "Focus on the API design decision").
|
|
22
|
+
|
|
23
|
+
Review the conversation history and extract learnings that meet ALL of these criteria:
|
|
24
|
+
- **Reusable**: Other AI agents or developers could apply this knowledge to do better work
|
|
25
|
+
- **Generalizable**: Not specific to a one-off task — patterns, decisions, constraints, or discoveries
|
|
26
|
+
- **Not sensitive**: Exclude code snippets, file paths, PII, personal information, credentials, internal URLs, and proprietary implementation details
|
|
27
|
+
|
|
28
|
+
Focus on:
|
|
29
|
+
- Architectural decisions and the reasoning behind them
|
|
30
|
+
- Workflow patterns that worked well
|
|
31
|
+
- Constraints or gotchas discovered
|
|
32
|
+
- Tool or API behaviors worth knowing
|
|
33
|
+
- Process improvements
|
|
34
|
+
|
|
35
|
+
## Present to the user
|
|
36
|
+
|
|
37
|
+
Format the draft as a short brain update (2–5 bullet points max). Show it to the user and ask for confirmation before posting.
|
|
38
|
+
|
|
39
|
+
Once confirmed, post it:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
gobi brain post-update --title "<short title>" --content "<confirmed content>"
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Confirm success and show the user the result.
|
package/commands/warp.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: warp
|
|
3
|
+
description: Warp to a Gobi space. Pass a space slug to warp directly, or omit to choose from available spaces.
|
|
4
|
+
argument-hint: "[spaceSlug]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Warp to a Gobi space:
|
|
8
|
+
|
|
9
|
+
Always use the globally installed `gobi` binary (not npx or ts-node).
|
|
10
|
+
|
|
11
|
+
- If a space slug is provided as `$ARGUMENTS`, run `gobi space warp $ARGUMENTS` directly.
|
|
12
|
+
- If no argument is given:
|
|
13
|
+
1. Run `gobi space list` to get available spaces.
|
|
14
|
+
2. Show the list to the user and ask them to pick one.
|
|
15
|
+
3. Run `gobi space warp <chosen-slug>` with their selection.
|
|
16
|
+
|
|
17
|
+
After warping, confirm the active space to the user.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gobi-ai/cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.20",
|
|
4
4
|
"description": "CLI client for the Gobi collaborative knowledge platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"dist",
|
|
29
29
|
"!dist/**/*.test.js",
|
|
30
30
|
"skills",
|
|
31
|
-
".claude-plugin"
|
|
31
|
+
".claude-plugin",
|
|
32
|
+
"commands"
|
|
32
33
|
],
|
|
33
34
|
"bin": {
|
|
34
35
|
"gobi": "./dist/index.js"
|
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.19"
|
|
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.19).
|
|
19
19
|
|
|
20
20
|
## Prerequisites
|
|
21
21
|
|