pi-banana 2.0.0 → 2.0.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/README.md CHANGED
@@ -41,7 +41,9 @@ Just ask pi for what you want:
41
41
 
42
42
  The model calls `generate_image` automatically. The PNG is shown inline and written to disk.
43
43
 
44
- ## Tool: `generate_image`
44
+ ## Tool: `banana_image`
45
+
46
+ > Renamed from `generate_image` in v2.0.1 to avoid colliding with `@benvargas/pi-antigravity-image-gen`. Both extensions can now coexist in the same pi install.
45
47
 
46
48
  | Param | Type | Default | Description |
47
49
  |---|---|---|---|
@@ -178,8 +178,8 @@ async function resolveOutputPath(
178
178
 
179
179
  export default function (pi: ExtensionAPI) {
180
180
  pi.registerTool({
181
- name: "generate_image",
182
- label: "Image Gen",
181
+ name: "banana_image",
182
+ label: "Banana Image",
183
183
  description:
184
184
  "Generate or edit a PNG/JPEG image with Google's Nano Banana 2 " +
185
185
  "(Gemini 3.1 Flash Image) or Nano Banana Pro. The image is shown " +
@@ -188,8 +188,8 @@ export default function (pi: ExtensionAPI) {
188
188
  promptSnippet:
189
189
  "Generate or edit images with Google Nano Banana via the GOOGLE_API_KEY env var.",
190
190
  promptGuidelines: [
191
- "Call generate_image when the user asks to create, draw, illustrate, or edit a picture.",
192
- "For tweaks like 'make the sky purple', pass the previous file path as referenceImage to generate_image.",
191
+ "Call banana_image when the user asks to create, draw, illustrate, or edit a picture.",
192
+ "For tweaks like 'make the sky purple', pass the previous file path as referenceImage to banana_image.",
193
193
  "Default quality 'fast' is right for most asks; switch to 'high' only when the user explicitly wants top quality.",
194
194
  ],
195
195
  parameters: Type.Object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-banana",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Generate and edit images in pi using Google Nano Banana 2 (gemini-3.1-flash-image) and Nano Banana Pro. Inline terminal preview, reference-image editing, auto-save.",
5
5
  "author": "Francesco Frapporti <effedue@gmail.com>",
6
6
  "license": "MIT",