@gobi-ai/cli 0.9.1 → 0.9.2
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.
|
@@ -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.9.
|
|
7
|
+
"version": "0.9.1",
|
|
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, generate images and videos.",
|
|
12
|
-
"version": "0.9.
|
|
12
|
+
"version": "0.9.1",
|
|
13
13
|
"author": {
|
|
14
14
|
"name": "gobi-ai"
|
|
15
15
|
},
|
package/dist/commands/media.js
CHANGED
|
@@ -246,7 +246,7 @@ export function registerMediaCommand(program) {
|
|
|
246
246
|
.command("image-generate")
|
|
247
247
|
.description("Generate an image from a text prompt. Types: image (default), thumbnail (YouTube-optimized), asset (logo/product). Aspect ratios: 1:1, 16:9, 9:16, 4:3, 3:4")
|
|
248
248
|
.requiredOption("--prompt <prompt>", "Text prompt for image generation")
|
|
249
|
-
.
|
|
249
|
+
.option("--name <name>", "Name for the generated image (auto-generated from prompt if omitted)")
|
|
250
250
|
.option("--type <type>", "Generation type: image (default), thumbnail (YouTube-optimized), asset (logo/product)")
|
|
251
251
|
.option("--aspect-ratio <aspectRatio>", "Aspect ratio (1:1, 16:9, 9:16, 4:3, 3:4)")
|
|
252
252
|
.option("--negative-prompt <negativePrompt>", "Negative prompt")
|
|
@@ -254,9 +254,10 @@ export function registerMediaCommand(program) {
|
|
|
254
254
|
.option("--reference-media-id <referenceMediaId>", "Reference image media ID")
|
|
255
255
|
.option("--wait", "Poll until generation completes")
|
|
256
256
|
.action(async (opts) => {
|
|
257
|
+
const name = opts.name || opts.prompt.slice(0, 50).replace(/[^a-zA-Z0-9-_ ]/g, "").trim().replace(/\s+/g, "-");
|
|
257
258
|
const body = {
|
|
258
259
|
prompt: opts.prompt,
|
|
259
|
-
name
|
|
260
|
+
name,
|
|
260
261
|
};
|
|
261
262
|
if (opts.type)
|
|
262
263
|
body.type = opts.type;
|
package/package.json
CHANGED
|
@@ -25,6 +25,18 @@ For programmatic/agent usage, always pass `--json` as a **global** option (befor
|
|
|
25
25
|
gobi --json media image-generate --prompt "a sunset over mountains"
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
+
## Typical Workflow (Image Generation)
|
|
29
|
+
|
|
30
|
+
Always use `--wait` to poll until completion in a single command:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
gobi --json media image-generate --prompt "a sunset over mountains" --wait
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
- `--name` is **optional** — auto-derived from prompt if omitted.
|
|
37
|
+
- `--wait` avoids needing a separate `image-status` call.
|
|
38
|
+
- `image-status` takes a **positional** jobId (NOT `--job-id`): `gobi media image-status <jobId>`
|
|
39
|
+
|
|
28
40
|
## Available Commands
|
|
29
41
|
|
|
30
42
|
### Upload
|
|
@@ -6,23 +6,24 @@ Usage: gobi media [options] [command]
|
|
|
6
6
|
Media generation commands (videos, images).
|
|
7
7
|
|
|
8
8
|
Options:
|
|
9
|
-
-h, --help
|
|
9
|
+
-h, --help display help for command
|
|
10
10
|
|
|
11
11
|
Commands:
|
|
12
|
-
upload-init [options]
|
|
13
|
-
upload-finalize [options]
|
|
14
|
-
avatars
|
|
15
|
-
voices
|
|
16
|
-
video-create [options]
|
|
17
|
-
video-list
|
|
18
|
-
video-get <id>
|
|
19
|
-
video-status [options] <id>
|
|
20
|
-
video-download <id>
|
|
21
|
-
image-generate [options]
|
|
22
|
-
image-edit [options]
|
|
23
|
-
image-inpaint [options]
|
|
24
|
-
image-status [options] <jobId>
|
|
25
|
-
|
|
12
|
+
upload-init [options] Get a presigned upload URL for a media file.
|
|
13
|
+
upload-finalize [options] Confirm that a media upload is complete.
|
|
14
|
+
avatars List available avatars.
|
|
15
|
+
voices List available voices.
|
|
16
|
+
video-create [options] Create an avatar video generation job.
|
|
17
|
+
video-list List all videos.
|
|
18
|
+
video-get <id> Get video metadata.
|
|
19
|
+
video-status [options] <id> Poll video generation status.
|
|
20
|
+
video-download <id> Get the download URL for a completed video.
|
|
21
|
+
image-generate [options] Generate an image from a text prompt. Types: image (default), thumbnail (YouTube-optimized), asset (logo/product). Aspect ratios: 1:1, 16:9, 9:16, 4:3, 3:4
|
|
22
|
+
image-edit [options] Edit an existing image with a prompt (image-to-image).
|
|
23
|
+
image-inpaint [options] Inpaint an image region using a mask.
|
|
24
|
+
image-status [options] <jobId> Check image generation job status.
|
|
25
|
+
image-download [options] <jobId> Download a generated image.
|
|
26
|
+
help [command] display help for command
|
|
26
27
|
```
|
|
27
28
|
|
|
28
29
|
## upload-init
|
|
@@ -144,7 +145,7 @@ Generate an image from a text prompt. Types: image (default), thumbnail (YouTube
|
|
|
144
145
|
|
|
145
146
|
Options:
|
|
146
147
|
--prompt <prompt> Text prompt for image generation
|
|
147
|
-
--name <name> Name for the generated image
|
|
148
|
+
--name <name> Name for the generated image (auto-generated from prompt if omitted)
|
|
148
149
|
--type <type> Generation type: image (default), thumbnail (YouTube-optimized), asset (logo/product)
|
|
149
150
|
--aspect-ratio <aspectRatio> Aspect ratio (1:1, 16:9, 9:16, 4:3, 3:4)
|
|
150
151
|
--negative-prompt <negativePrompt> Negative prompt
|
|
@@ -196,3 +197,16 @@ Options:
|
|
|
196
197
|
--wait Poll until a terminal state is reached
|
|
197
198
|
-h, --help display help for command
|
|
198
199
|
```
|
|
200
|
+
|
|
201
|
+
## image-download
|
|
202
|
+
|
|
203
|
+
```
|
|
204
|
+
Usage: gobi media image-download [options] <jobId>
|
|
205
|
+
|
|
206
|
+
Download a generated image.
|
|
207
|
+
|
|
208
|
+
Options:
|
|
209
|
+
--wait Poll until generation completes before downloading
|
|
210
|
+
--type <type> Image type (image, thumbnail, asset)
|
|
211
|
+
-h, --help display help for command
|
|
212
|
+
```
|