@fre4x/gemini 1.0.43 → 1.0.45
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/README.md +4 -5
- package/dist/index.js +52900 -40657
- package/package.json +10 -4
package/README.md
CHANGED
|
@@ -10,9 +10,8 @@ Google's Gemini is not a chatbot. It is a multimodal reasoning engine. This B1TE
|
|
|
10
10
|
|
|
11
11
|
| Tool | Capability |
|
|
12
12
|
|------|-----------|
|
|
13
|
-
| `
|
|
14
|
-
| `
|
|
15
|
-
| `list_models` | List available Gemini, Imagen, and Veo models. Filter by `text`, `image`, `video`, or `all`. |
|
|
13
|
+
| `analyze_media` | Analyze an image or audio file via URL or `file://` path. Prompt is optional. |
|
|
14
|
+
| `list_models` | List available Imagen and Veo models. Filter by `image`, `video`, or `all`. |
|
|
16
15
|
| `generate_image` | Image synthesis via Imagen 4 (`imagen-4.0-generate-001`). Optionally save to `output_dir`. |
|
|
17
16
|
| `generate_video` | Async video generation via Veo (`veo-2.0-generate-001`). Returns `operation_name` to poll. |
|
|
18
17
|
| `get_video_status` | Poll video generation status. Returns URLs when complete. Optionally saves to `output_dir`. |
|
|
@@ -49,7 +48,7 @@ MOCK=true npx @fre4x/gemini
|
|
|
49
48
|
|
|
50
49
|
- **Image generation** requires Imagen access — not available on all free-tier API keys. Check [AI Studio](https://aistudio.google.com/).
|
|
51
50
|
- **Video generation** is async. Call `generate_video` → poll `get_video_status` every ~30s until `done: true`.
|
|
52
|
-
- `analyze_media` accepts `file://` paths for local files and auto-detects MIME type from URL extension (jpg, png, mp4, mp3, pdf, etc.).
|
|
51
|
+
- `analyze_media` accepts `file://` paths for local files and auto-detects MIME type from URL extension (jpg, png, mp4, mp3, wav, pdf, etc.). If you omit `prompt`, it defaults to "Describe this media.".
|
|
53
52
|
- `output_dir` on `generate_image` and `get_video_status` saves files to disk. Directory is created if it doesn't exist.
|
|
54
53
|
|
|
55
54
|
## Development
|
|
@@ -59,7 +58,7 @@ npm install
|
|
|
59
58
|
npm run dev # tsx, no build
|
|
60
59
|
npm run build # esbuild → dist/
|
|
61
60
|
npm test # vitest unit tests
|
|
62
|
-
npm run
|
|
61
|
+
npm run inspector # MCP inspector in mock mode
|
|
63
62
|
```
|
|
64
63
|
|
|
65
64
|
## License
|