@cli4ai/nanobanana 1.0.2 → 1.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/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # @cli4ai/nanobanana
2
+
3
+ > Official @cli4ai package • https://cli4ai.com • Install c4ai: `npm i -g c4ai`
4
+
5
+ Image generation with Gemini (Nano Banana Pro) via a connected Chrome session.
6
+
7
+ ## Setup
8
+
9
+ ```bash
10
+ npm i -g c4ai
11
+ c4ai add -g chrome nanobanana
12
+ ```
13
+
14
+ 1) Start Chrome with remote debugging (see `@cli4ai/chrome`), then:
15
+
16
+ ```bash
17
+ c4ai run chrome connect
18
+ ```
19
+
20
+ 2) Make sure you’re logged into Gemini in that Chrome session.
21
+
22
+ ## Commands
23
+
24
+ ```bash
25
+ c4ai run nanobanana image "<prompt>"
26
+ ```
27
+
28
+ ## Notes
29
+
30
+ - The tool triggers a download to `~/Downloads` and returns the downloaded file path as JSON.
package/c4ai.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nanobanana",
3
- "version": "1.0.0",
3
+ "version": "1.0.4",
4
4
  "description": "Image generation with Gemini (Nano Banana Pro)",
5
5
  "author": "cliforai",
6
6
  "license": "MIT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cli4ai/nanobanana",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Image generation with Gemini (Nano Banana Pro)",
5
5
  "author": "cliforai",
6
6
  "license": "MIT",
package/run.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bun
2
- import puppeteer from '../chrome/node_modules/puppeteer';
2
+ import puppeteer from 'puppeteer';
3
3
  import { readFileSync } from 'fs';
4
4
  import { execSync } from 'child_process';
5
5
  import { join } from 'path';