@gobi-ai/cli 0.9.13 → 1.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gobi-ai/cli",
3
- "version": "0.9.13",
3
+ "version": "1.0.0",
4
4
  "description": "CLI client for the Gobi collaborative knowledge platform",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -38,9 +38,8 @@ brew tap gobi-ai/tap && brew install gobi
38
38
 
39
39
  ## Key Concepts
40
40
 
41
- - **Space**: A shared space for a group or community. A logged-in user can be a member of one or more spaces. A space contains threads, sessions, brain updates, and connected vaults.
42
- - **Vault**: A filetree storage of information and knowledge. A local directory becomes a vault when it contains `.gobi/settings.yaml` with a vault slug and a space slug. Each vault is identified by a slug (e.g. `brave-path-zr962w`).
43
- - **Brain**: Another name for a vault when referring to its AI-searchable knowledge. You can search brains, ask them questions, and publish a `BRAIN.md` document to configure your vault's brain.
41
+ - **Space**: A shared space for a group or community. A logged-in user can be a member of one or more spaces. A space contains threads, sessions, and connected vaults.
42
+ - **Vault**: A personal knowledge container — a filetree storage of information and knowledge that can also be searched and asked questions like a knowledge base. A local directory becomes a vault when it contains `.gobi/settings.yaml` with a vault slug and a space slug. Each vault is identified by a slug (e.g. `brave-path-zr962w`). Publish a `BRAIN.md` document at the vault root to configure the vault's public profile and AI agent.
44
43
 
45
44
  ## First-Time Setup
46
45
 
@@ -128,7 +127,7 @@ JSON responses have the shape `{ "success": true, "data": ... }` on success or `
128
127
  |------|-------------|
129
128
  | `~/.gobi/credentials.json` | Stored authentication tokens (auto-managed) |
130
129
  | `.gobi/settings.yaml` | Per-project vault and space configuration |
131
- | `BRAIN.md` | Brain document with YAML frontmatter, published via `gobi brain publish` |
130
+ | `BRAIN.md` | Vault profile document with YAML frontmatter, published via `gobi vault publish` |
132
131
 
133
132
  ## Environment Variables
134
133
 
@@ -3,7 +3,7 @@
3
3
  ```
4
4
  Usage: gobi space [options] [command]
5
5
 
6
- Space commands (threads, replies).
6
+ Space commands. A Space is a shared room of members where they post threads and replies, organized by topics.
7
7
 
8
8
  Options:
9
9
  --space-slug <slug> Space slug (overrides .gobi/settings.yaml)
@@ -11,9 +11,12 @@ Options:
11
11
 
12
12
  Commands:
13
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).
14
15
  warp [spaceSlug] Select the active space. Pass a slug to warp directly, or omit for interactive selection.
15
16
  list-topics [options] List topics in a space, ordered by most recent content linkage.
16
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).
17
20
  get-thread [options] <threadId> Get a thread and its replies (paginated).
18
21
  list-threads [options] List threads in a space (paginated).
19
22
  create-thread [options] Create a thread in a space.
@@ -1,19 +1,20 @@
1
1
  ---
2
2
  name: gobi-space
3
3
  description: >-
4
- Gobi space commands for community interaction: list/create/edit/delete
5
- threads and replies, browse topics and topic threads, explore what's
6
- happening in a space. Use when the user wants to read, write, or manage
7
- threads and replies in their Gobi community spaces.
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.
8
9
  allowed-tools: Bash(gobi:*)
9
10
  metadata:
10
11
  author: gobi-ai
11
- version: "0.8.0"
12
+ version: "0.9.13"
12
13
  ---
13
14
 
14
15
  # gobi-space
15
16
 
16
- Gobi space commands for community interaction (v0.8.0).
17
+ Gobi space commands for community interaction (v0.9.13).
17
18
 
18
19
  Requires gobi-cli installed and authenticated. See gobi-core skill for setup.
19
20
 
@@ -40,19 +41,43 @@ For programmatic/agent usage, always pass `--json` as a **global** option (befor
40
41
  gobi --json space list-threads
41
42
  ```
42
43
 
44
+ > Space and member administration (creating spaces, inviting/approving members, joining/leaving) is web-UI only and not available in the CLI.
45
+
43
46
  ## Available Commands
44
47
 
48
+ ### Space details
49
+ - `gobi space get` — Get details for a space.
50
+
51
+ ### Topics
45
52
  - `gobi space list-topics` — List topics in a space, ordered by most recent content linkage.
46
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
47
60
  - `gobi space get-thread` — Get a thread and its replies (paginated).
48
61
  - `gobi space list-threads` — List threads in a space (paginated).
49
62
  - `gobi space create-thread` — Create a thread in a space.
50
63
  - `gobi space edit-thread` — Edit a thread. You must be the author.
51
64
  - `gobi space delete-thread` — Delete a thread. You must be the author.
65
+
66
+ ### Replies
52
67
  - `gobi space create-reply` — Create a reply to a thread in a space.
53
68
  - `gobi space edit-reply` — Edit a reply. You must be the author.
54
69
  - `gobi space delete-reply` — Delete a reply. You must be the author.
55
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.
79
+
56
80
  ## Reference Documentation
57
81
 
58
82
  - [gobi space](references/space.md)
83
+ - [gobi global](references/global.md)
@@ -0,0 +1,82 @@
1
+ # gobi global
2
+
3
+ ```
4
+ Usage: gobi global [options] [command]
5
+
6
+ Global thread commands. Global is the platform-wide thread feed visible to everyone on Gobi.
7
+
8
+ Options:
9
+ -h, --help display help for command
10
+
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 global thread (visible platform-wide).
16
+ reply [options] <threadId> Reply to a global thread.
17
+ help [command] display help for command
18
+ ```
19
+
20
+ ## messages
21
+
22
+ ```
23
+ Usage: gobi global messages [options]
24
+
25
+ List the global unified message feed (threads and replies, newest first).
26
+
27
+ Options:
28
+ --limit <number> Items per page (default: "20")
29
+ --cursor <string> Pagination cursor from previous response
30
+ -h, --help display help for command
31
+ ```
32
+
33
+ ## get-thread
34
+
35
+ ```
36
+ Usage: gobi global get-thread [options] <threadId>
37
+
38
+ Get a global thread and its direct replies (paginated).
39
+
40
+ Options:
41
+ --limit <number> Replies per page (default: "20")
42
+ --cursor <string> Pagination cursor from previous response
43
+ -h, --help display help for command
44
+ ```
45
+
46
+ ## ancestors
47
+
48
+ ```
49
+ Usage: gobi global ancestors [options] <threadId>
50
+
51
+ Show the ancestor lineage of a global thread or reply (root → immediate parent).
52
+
53
+ Options:
54
+ -h, --help display help for command
55
+ ```
56
+
57
+ ## create-thread
58
+
59
+ ```
60
+ Usage: gobi global create-thread [options]
61
+
62
+ Create a global thread (visible platform-wide).
63
+
64
+ 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
69
+ ```
70
+
71
+ ## reply
72
+
73
+ ```
74
+ Usage: gobi global reply [options] <threadId>
75
+
76
+ Reply to a global thread.
77
+
78
+ Options:
79
+ --content <content> Reply content (markdown supported, use "-" for stdin)
80
+ --rich-text <richText> Rich-text JSON array (mutually exclusive with --content)
81
+ -h, --help display help for command
82
+ ```
@@ -3,7 +3,7 @@
3
3
  ```
4
4
  Usage: gobi space [options] [command]
5
5
 
6
- Space commands (threads, replies).
6
+ Space commands. A Space is a shared room of members where they post threads and replies, organized by topics.
7
7
 
8
8
  Options:
9
9
  --space-slug <slug> Space slug (overrides .gobi/settings.yaml)
@@ -11,9 +11,12 @@ Options:
11
11
 
12
12
  Commands:
13
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).
14
15
  warp [spaceSlug] Select the active space. Pass a slug to warp directly, or omit for interactive selection.
15
16
  list-topics [options] List topics in a space, ordered by most recent content linkage.
16
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).
17
20
  get-thread [options] <threadId> Get a thread and its replies (paginated).
18
21
  list-threads [options] List threads in a space (paginated).
19
22
  create-thread [options] Create a thread in a space.
@@ -25,6 +28,17 @@ Commands:
25
28
  help [command] display help for command
26
29
  ```
27
30
 
31
+ ## get
32
+
33
+ ```
34
+ Usage: gobi space get [options] [spaceSlug]
35
+
36
+ Get details for a space. Pass a slug or omit to use the current space (from .gobi/settings.yaml or --space-slug).
37
+
38
+ Options:
39
+ -h, --help display help for command
40
+ ```
41
+
28
42
  ## list-topics
29
43
 
30
44
  ```
@@ -50,6 +64,30 @@ Options:
50
64
  -h, --help display help for command
51
65
  ```
52
66
 
67
+ ## messages
68
+
69
+ ```
70
+ Usage: gobi space messages [options]
71
+
72
+ List the unified message feed (threads and replies, newest first) in a space.
73
+
74
+ Options:
75
+ --limit <number> Items per page (default: "20")
76
+ --cursor <string> Pagination cursor from previous response
77
+ -h, --help display help for command
78
+ ```
79
+
80
+ ## ancestors
81
+
82
+ ```
83
+ Usage: gobi space ancestors [options] <threadId>
84
+
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
+
53
91
  ## get-thread
54
92
 
55
93
  ```
@@ -1,55 +1,42 @@
1
1
  ---
2
- name: gobi-brain
2
+ name: gobi-vault
3
3
  description: >-
4
- Gobi brain commands for knowledge management: search public brains by text
5
- and semantic similarity, ask brains questions, publish/unpublish BRAIN.md,
6
- and manage brain updates (list/post/edit/delete). Use when the user wants
7
- to search knowledge, ask a brain, publish their brain document, or manage
8
- brain updates.
4
+ Gobi vault commands for knowledge management: search public vaults by text
5
+ and semantic similarity, ask vaults questions, and publish/unpublish
6
+ BRAIN.md. Use when the user wants to search knowledge, ask a vault, or
7
+ publish their vault document.
9
8
  allowed-tools: Bash(gobi:*)
10
9
  metadata:
11
10
  author: gobi-ai
12
- version: "0.8.0"
11
+ version: "1.0.0"
13
12
  ---
14
13
 
15
- # gobi-brain
14
+ # gobi-vault
16
15
 
17
- Gobi brain commands for knowledge management (v0.8.0).
16
+ Gobi vault commands for knowledge management (v1.0.0).
18
17
 
19
18
  Requires gobi-cli installed and authenticated. See gobi-core skill for setup.
20
19
 
21
- ## Gobi Brain — Knowledge Management
20
+ ## Gobi Vault — Knowledge Management
22
21
 
23
- `gobi brain` commands manage your vault's brain: search across all spaces, ask brains questions, and publish/unpublish your BRAIN.md. Public brains are accessible at `https://gobispace.com/@{vaultSlug}`.
22
+ `gobi vault` commands manage your vault: search public vaults, ask them questions, and publish/unpublish your `BRAIN.md`. Public vaults are accessible at `https://gobispace.com/@{vaultSlug}`.
24
23
 
25
- ## Space Slug Override
26
-
27
- For `gobi brain list-updates`, you can filter by space with a subcommand option:
28
-
29
- ```bash
30
- gobi brain list-updates --space-slug <slug>
31
- ```
32
-
33
- Note: `--space-slug` is not available on other `brain` subcommands.
24
+ > **Vault updates have moved to threads.** To post user-level content, use `gobi global create-thread` (platform-wide global) or `gobi space create-thread` (a specific space). See the **gobi-space** skill.
34
25
 
35
26
  ## Important: JSON Mode
36
27
 
37
28
  For programmatic/agent usage, always pass `--json` as a **global** option (before the subcommand):
38
29
 
39
30
  ```bash
40
- gobi --json brain search --query "machine learning"
31
+ gobi --json vault search --query "machine learning"
41
32
  ```
42
33
 
43
34
  ## Available Commands
44
35
 
45
- - `gobi brain search` — Search public brains by text and semantic similarity.
46
- - `gobi brain ask` — Ask a brain a question. Creates a targeted session (1:1 conversation).
47
- - `gobi brain publish` — Upload BRAIN.md to the vault root on webdrive. Triggers post-processing (brain sync, metadata update, Discord notification).
48
- - `gobi brain unpublish` — Delete BRAIN.md from the vault on webdrive.
49
- - `gobi brain list-updates` — List recent brain updates. Without --space-slug, lists all updates for you. With --space-slug, lists updates for that space. Use --mine to show only updates by you.
50
- - `gobi brain post-update` — Post a brain update for a vault.
51
- - `gobi brain edit-update` — Edit a published brain update. You must be the author.
52
- - `gobi brain delete-update` — Delete a published brain update. You must be the author.
36
+ - `gobi vault search` — Search public vaults by text and semantic similarity.
37
+ - `gobi vault ask` — Ask a vault a question. Creates a targeted session (1:1 conversation).
38
+ - `gobi vault publish` — Upload BRAIN.md to the vault root on webdrive. Triggers post-processing (vault sync, metadata update, Discord notification).
39
+ - `gobi vault unpublish` — Delete BRAIN.md from the vault on webdrive.
53
40
 
54
41
  ## BRAIN.md Frontmatter Reference
55
42
 
@@ -57,11 +44,11 @@ gobi --json brain search --query "machine learning"
57
44
 
58
45
  ```yaml
59
46
  ---
60
- title: My Brain
47
+ title: My Vault
61
48
  tags:
62
49
  - topic1
63
50
  - topic2
64
- description: A short description of what this brain is about.
51
+ description: A short description of what this vault is about.
65
52
  thumbnail: "[[BRAIN.png]]"
66
53
  homepage: "[[app/home.html?nav=false]]"
67
54
  prompt: "[[system-prompt.md]]"
@@ -70,8 +57,8 @@ prompt: "[[system-prompt.md]]"
70
57
 
71
58
  ### Fields
72
59
 
73
- - **`title`** (required) — Display name of the brain/vault.
74
- - **`description`** (required for public listing) — Short description shown on the brain card and public profile. Without both `title` and `description`, the brain won't appear in the public catalog.
60
+ - **`title`** (required) — Display name of the vault.
61
+ - **`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.
75
62
  - **`tags`** — Tags for categorization and discovery. Supports YAML block list or inline array format:
76
63
  ```yaml
77
64
  # Block list
@@ -82,11 +69,11 @@ prompt: "[[system-prompt.md]]"
82
69
  # Inline array
83
70
  tags: [ambient ai, wearables]
84
71
  ```
85
- - **`thumbnail`** — Profile image for the brain card. Uses wiki-link syntax pointing to an image file in the vault (e.g. `"[[BRAIN.png]]"`).
72
+ - **`thumbnail`** — Profile image for the vault card. Uses wiki-link syntax pointing to an image file in the vault (e.g. `"[[BRAIN.png]]"`).
86
73
  - **`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:
87
74
  - `"[[app/home.html]]"` — Shows the Gobi sidebar alongside the homepage (default)
88
75
  - `"[[app/home.html?nav=false]]"` — Full-screen, no Gobi sidebar/chrome
89
- - **`prompt`** — Wiki-link to a custom system prompt file for the brain's AI agent (e.g. `"[[system-prompt.md]]"`).
76
+ - **`prompt`** — Wiki-link to a custom system prompt file for the vault's AI agent (e.g. `"[[system-prompt.md]]"`).
90
77
 
91
78
  > For details on building custom HTML homepages and using the `window.gobi` API, see the **gobi-homepage** skill.
92
79
 
@@ -99,15 +86,15 @@ After editing `BRAIN.md` frontmatter, follow these steps to make your changes li
99
86
  ```bash
100
87
  gobi sync
101
88
  ```
102
- 3. **Publish the brain**:
89
+ 3. **Publish the vault**:
103
90
  ```bash
104
- gobi brain publish
91
+ gobi vault publish
105
92
  ```
106
93
  This uploads `BRAIN.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.
107
94
  4. The vault is now live at `https://gobispace.com/@{vaultSlug}`.
108
95
 
109
- > **Important:** Any time you change `BRAIN.md` frontmatter (e.g. adding or updating `homepage`), you must re-run `gobi brain publish` for the changes to take effect.
96
+ > **Important:** Any time you change `BRAIN.md` frontmatter (e.g. adding or updating `homepage`), you must re-run `gobi vault publish` for the changes to take effect.
110
97
 
111
98
  ## Reference Documentation
112
99
 
113
- - [gobi brain](references/brain.md)
100
+ - [gobi vault](references/vault.md)
@@ -0,0 +1,66 @@
1
+ # gobi vault
2
+
3
+ ```
4
+ Usage: gobi vault [options] [command]
5
+
6
+ Vault commands. A Vault is your personal knowledge container — search public vaults, ask them questions, and publish your BRAIN.md profile.
7
+
8
+ Options:
9
+ -h, --help display help for command
10
+
11
+ Commands:
12
+ search [options] Search public vaults by text and semantic similarity.
13
+ ask [options] Ask a vault a question. Creates a targeted session (1:1 conversation).
14
+ publish Upload BRAIN.md to the vault root on webdrive. Triggers post-processing (vault sync, metadata update, Discord notification).
15
+ unpublish Delete BRAIN.md from the vault on webdrive.
16
+ help [command] display help for command
17
+ ```
18
+
19
+ ## search
20
+
21
+ ```
22
+ Usage: gobi vault search [options]
23
+
24
+ Search public vaults by text and semantic similarity.
25
+
26
+ Options:
27
+ --query <query> Search query
28
+ -h, --help display help for command
29
+ ```
30
+
31
+ ## ask
32
+
33
+ ```
34
+ Usage: gobi vault ask [options]
35
+
36
+ Ask a vault a question. Creates a targeted session (1:1 conversation).
37
+
38
+ Options:
39
+ --vault-slug <vaultSlug> Slug of the vault to ask
40
+ --question <question> The question to ask (markdown supported)
41
+ --rich-text <richText> Rich-text JSON array (e.g. [{"type":"text","text":"hello"}])
42
+ --mode <mode> Session mode: "auto" or "manual"
43
+ -h, --help display help for command
44
+ ```
45
+
46
+ ## publish
47
+
48
+ ```
49
+ Usage: gobi vault publish [options]
50
+
51
+ Upload BRAIN.md to the vault root on webdrive. Triggers post-processing (vault sync, metadata update, Discord notification).
52
+
53
+ Options:
54
+ -h, --help display help for command
55
+ ```
56
+
57
+ ## unpublish
58
+
59
+ ```
60
+ Usage: gobi vault unpublish [options]
61
+
62
+ Delete BRAIN.md from the vault on webdrive.
63
+
64
+ Options:
65
+ -h, --help display help for command
66
+ ```