@gobi-ai/cli 2.0.2 → 2.0.4
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/dist/commands/init.js +7 -3
- package/package.json +1 -1
- package/skills/gobi-core/SKILL.md +8 -0
- package/skills/gobi-draft/SKILL.md +9 -0
- package/skills/gobi-media/SKILL.md +11 -0
- package/skills/gobi-saved/SKILL.md +10 -0
- package/skills/gobi-space/SKILL.md +10 -0
- package/skills/gobi-vault/SKILL.md +8 -0
|
@@ -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.4",
|
|
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.4",
|
|
13
13
|
"author": {
|
|
14
14
|
"name": "gobi-ai"
|
|
15
15
|
},
|
package/dist/commands/init.js
CHANGED
|
@@ -96,9 +96,13 @@ export async function selectSpace() {
|
|
|
96
96
|
return { slug: selected.slug, name: selected.name };
|
|
97
97
|
}
|
|
98
98
|
async function selectExistingVault() {
|
|
99
|
-
const resp = (await apiGet("/
|
|
100
|
-
const vaults = (Array.isArray(resp)
|
|
101
|
-
|
|
99
|
+
const resp = (await apiGet("/vaults"));
|
|
100
|
+
const vaults = (Array.isArray(resp)
|
|
101
|
+
? resp
|
|
102
|
+
: Array.isArray(resp?.data)
|
|
103
|
+
? resp.data
|
|
104
|
+
: []);
|
|
105
|
+
if (vaults.length === 0) {
|
|
102
106
|
console.log("You don't have any vaults yet. Let's create one.");
|
|
103
107
|
return createNewVault();
|
|
104
108
|
}
|
package/package.json
CHANGED
|
@@ -117,6 +117,14 @@ JSON responses have the shape `{ "success": true, "data": ... }` on success or `
|
|
|
117
117
|
|
|
118
118
|
> File sync (`gobi vault sync`) lives in the **gobi-vault** skill.
|
|
119
119
|
|
|
120
|
+
## Confirm before mutating
|
|
121
|
+
|
|
122
|
+
`gobi session reply` posts a human-attributed message into a chat session — the message becomes part of the user's permanent chat history and triggers the agent to respond. Before running it, confirm with the user — show the exact session id and the message text. This applies even when running autonomously.
|
|
123
|
+
|
|
124
|
+
`auth login` / `auth logout` and `init` are explicit user-driven commands; they prompt the user themselves and don't need an extra confirmation layer. `update` upgrades the CLI binary — fine to run without extra confirmation.
|
|
125
|
+
|
|
126
|
+
Read-only commands (`auth status`, `session list`, `session get`, `space list`) run without confirmation.
|
|
127
|
+
|
|
120
128
|
## Reference Documentation
|
|
121
129
|
|
|
122
130
|
- [gobi auth](references/auth.md)
|
|
@@ -85,6 +85,15 @@ When the user picks an action via `gobi draft action <id> <index>`, the response
|
|
|
85
85
|
- `gobi draft action` — Take one of the draft's suggested actions by 0-based index. Posts the synthesized message into the originating session.
|
|
86
86
|
- `gobi draft revise` — Bump the draft to a new revision with a comment, optionally replacing title / content / actions.
|
|
87
87
|
|
|
88
|
+
## Confirm before mutating
|
|
89
|
+
|
|
90
|
+
Drafts are agent-authored proposals — `add` and `revise` are the agent's normal authoring path and run without extra confirmation. Two commands flip that:
|
|
91
|
+
|
|
92
|
+
- `draft action <id> <index>` — picking an action is **a user decision**. Marks the draft `actioned` (terminal — the agent can't take it back) and posts the action's `message` into the originating session. Don't pick on the user's behalf; only run this when the user has explicitly told you which action to take.
|
|
93
|
+
- `draft delete <id>` — irreversible. Confirm the target id with the user before running.
|
|
94
|
+
|
|
95
|
+
`draft prioritize` is low-stakes (just reorders the prompt feed) — fine to run when the user asks.
|
|
96
|
+
|
|
88
97
|
## Reference Documentation
|
|
89
98
|
|
|
90
99
|
- [gobi draft](references/draft.md)
|
|
@@ -171,6 +171,17 @@ Do NOT use markdown image/link syntax `` or `gobi://` URLs. Always use `
|
|
|
171
171
|
- `gobi media image-download` — Download a generated image.
|
|
172
172
|
- `gobi media image-status` — Check image generation job status.
|
|
173
173
|
|
|
174
|
+
## Confirm before mutating
|
|
175
|
+
|
|
176
|
+
Media generation jobs consume credits (real-world billable cost) and produce assets attached to the user's account. Videos and avatar work can take minutes per job. Before running any generation/upload command, confirm with the user — show the exact command and the prompt / script / source files / aspect ratio / duration. This applies even when running autonomously.
|
|
177
|
+
|
|
178
|
+
- `image-generate`, `image-edit`, `image-inpaint` — quick but billable per job.
|
|
179
|
+
- `video-create`, `cinematic-create` — slower and more expensive; confirm script, avatar/voice ids, and aspect ratio before submitting.
|
|
180
|
+
- `avatar-design`, `avatar-confirm`, `avatar-from-selfie` — produce assets the user will see in their avatar list. Confirm the photo/prompt and that the user wants the variant locked in (`avatar-confirm` is the commit step).
|
|
181
|
+
- `upload` — adds to the user's media. Low-stakes but still a write; mention the file before uploading.
|
|
182
|
+
|
|
183
|
+
Read-only commands (`avatars`, `voices`, `image-status`, `video-status`, `video-list`, `video-get`, `avatar-job-status`) and downloads (`image-download`, `video-download`) run without confirmation.
|
|
184
|
+
|
|
174
185
|
## Reference Documentation
|
|
175
186
|
|
|
176
187
|
- [gobi media](references/media.md)
|
|
@@ -54,6 +54,16 @@ gobi --json saved note list --date 2026-04-27
|
|
|
54
54
|
- `gobi saved post create --source <id>` — Save a post or reply by id. Records a snapshot in your saved-posts collection.
|
|
55
55
|
- `gobi saved post delete <postId>` — Remove a post from your saved-posts collection.
|
|
56
56
|
|
|
57
|
+
## Confirm before mutating
|
|
58
|
+
|
|
59
|
+
Saved items are the user's private collection but they still persist server-side and deletes are irreversible. Before running any write, confirm with the user — show the command and the note content / target id. This applies even when running autonomously.
|
|
60
|
+
|
|
61
|
+
- `note create`, `note edit` — confirm the content (or content delta on edit).
|
|
62
|
+
- `post create` (snapshotting a feed post) — confirm the source id you're about to bookmark.
|
|
63
|
+
- `note delete`, `post delete` — irreversible. Flag that explicitly and confirm the target id before running.
|
|
64
|
+
|
|
65
|
+
Read-only commands (`note list`, `note get`, `post list`, `post get`) run without confirmation.
|
|
66
|
+
|
|
57
67
|
## Reference Documentation
|
|
58
68
|
|
|
59
69
|
- [gobi saved](references/saved.md)
|
|
@@ -94,6 +94,16 @@ gobi --json space list-posts
|
|
|
94
94
|
- `gobi global edit-reply <replyId>` — Edit a reply you authored.
|
|
95
95
|
- `gobi global delete-reply <replyId>` — Delete a reply you authored.
|
|
96
96
|
|
|
97
|
+
## Confirm before mutating
|
|
98
|
+
|
|
99
|
+
Posts and replies are publicly visible — in a community space (`gobi space …`) or in the global feed (`gobi global …`). Before running any write, confirm with the user — show the exact command and the resolved title, content (or a short preview), and `authorVaultSlug` if `--vault-slug` / `--auto-attachments` is set. This applies even when running autonomously.
|
|
100
|
+
|
|
101
|
+
- `create-post` / `create-reply` — content goes live on submission.
|
|
102
|
+
- `edit-post` / `edit-reply` — confirm the *new* content; people who already saw the original may re-see it.
|
|
103
|
+
- `delete-post` / `delete-reply` — irreversible. Flag that explicitly and confirm the target id before running.
|
|
104
|
+
|
|
105
|
+
Read-only commands (`list-posts`, `get-post`, `feed`, `list-topics`, `list-topic-posts`, `get`) run without confirmation.
|
|
106
|
+
|
|
97
107
|
## Reference Documentation
|
|
98
108
|
|
|
99
109
|
- [gobi space](references/space.md)
|
|
@@ -34,6 +34,14 @@ gobi --json vault publish
|
|
|
34
34
|
- `gobi vault unpublish` — Delete `PUBLISH.md` from the vault on webdrive.
|
|
35
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
36
|
|
|
37
|
+
## Confirm before mutating
|
|
38
|
+
|
|
39
|
+
Every command in this skill writes external state — webdrive files, the public vault profile, and a Discord notification on `publish`. Before running any of them, confirm with the user — show the exact command and the key changes (which `PUBLISH.md` fields, which paths will sync, which conflict policy). This applies even when running autonomously.
|
|
40
|
+
|
|
41
|
+
- `vault publish` — public profile change + Discord ping. Always confirm.
|
|
42
|
+
- `vault unpublish` — removes the live profile. Always confirm.
|
|
43
|
+
- `vault sync` — can overwrite remote or local files. Run `--dry-run` first and show the user the plan before re-running without `--dry-run`. With `--conflict server` or `--conflict client`, name which side is going to be overwritten.
|
|
44
|
+
|
|
37
45
|
## PUBLISH.md Frontmatter Reference
|
|
38
46
|
|
|
39
47
|
`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:
|