opencode-antigravity-img 0.2.0 → 0.2.1
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/CHANGELOG.md +31 -0
- package/README.md +2 -2
- package/package.json +1 -1
- package/src/index.ts +4 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [0.2.1] - 2026-01-28
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- Clarify in tool description that output is always JPEG format
|
|
12
|
+
- Fix default filename extension from `.png` to `.jpg`
|
|
13
|
+
- Remove unnecessary PNG check since API always returns JPEG
|
|
14
|
+
|
|
15
|
+
## [0.2.0] - 2026-01-27
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
- Related plugins section in README linking to sibling plugins
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
- Updated auth plugin link to correct repository (NoeFabris)
|
|
22
|
+
|
|
23
|
+
## [0.1.0] - 2026-01-26
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
- Initial release
|
|
27
|
+
- `generate_image` tool for generating images with Gemini 3 Pro Image model
|
|
28
|
+
- `image_quota` tool for checking remaining quota
|
|
29
|
+
- Support for aspect ratios: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
|
|
30
|
+
- Support for image sizes: 1K, 2K, 4K
|
|
31
|
+
- Automatic fallback between CloudCode API endpoints
|
package/README.md
CHANGED
|
@@ -118,8 +118,8 @@ The plugin uses Google's CloudCode API with fallback endpoints:
|
|
|
118
118
|
|
|
119
119
|
## Related Plugins
|
|
120
120
|
|
|
121
|
-
- [opencode-antigravity-auth](https://
|
|
122
|
-
- [opencode-antigravity-
|
|
121
|
+
- [opencode-antigravity-auth](https://github.com/NoeFabris/opencode-antigravity-auth) - Authentication (required)
|
|
122
|
+
- [opencode-antigravity-web](https://github.com/ominiverdi/opencode-antigravity-web) - Web search and URL reading
|
|
123
123
|
|
|
124
124
|
## License
|
|
125
125
|
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -72,13 +72,14 @@ export const plugin: Plugin = async (ctx) => {
|
|
|
72
72
|
description:
|
|
73
73
|
"Generate an image using Gemini 3 Pro Image model. " +
|
|
74
74
|
"Provide a text prompt describing the image you want. " +
|
|
75
|
+
"IMPORTANT: Output is always JPEG format regardless of filename extension. " +
|
|
75
76
|
"Returns the path to the generated image file.",
|
|
76
77
|
args: {
|
|
77
78
|
prompt: tool.schema.string().describe("Text description of the image to generate"),
|
|
78
79
|
filename: tool.schema
|
|
79
80
|
.string()
|
|
80
81
|
.optional()
|
|
81
|
-
.describe("Output filename (default: generated_<timestamp>.
|
|
82
|
+
.describe("Output filename (default: generated_<timestamp>.jpg). Note: format is always JPEG regardless of extension"),
|
|
82
83
|
output_dir: tool.schema
|
|
83
84
|
.string()
|
|
84
85
|
.optional()
|
|
@@ -125,10 +126,9 @@ export const plugin: Plugin = async (ctx) => {
|
|
|
125
126
|
return `Error generating image: ${result.error || "Unknown error"}`;
|
|
126
127
|
}
|
|
127
128
|
|
|
128
|
-
// Determine output path
|
|
129
|
+
// Determine output path (always JPEG regardless of extension)
|
|
129
130
|
const dir = output_dir || ctx.directory;
|
|
130
|
-
const
|
|
131
|
-
const name = filename || `generated_${Date.now()}.${ext}`;
|
|
131
|
+
const name = filename || `generated_${Date.now()}.jpg`;
|
|
132
132
|
const outputPath = join(dir, name);
|
|
133
133
|
|
|
134
134
|
// Ensure directory exists
|