@cli4ai/nanobanana 1.0.5 → 1.0.7

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.
Files changed (3) hide show
  1. package/cli4ai.json +2 -2
  2. package/package.json +1 -1
  3. package/run.ts +3 -2
package/cli4ai.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "nanobanana",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Image generation with Gemini (Nano Banana Pro)",
5
5
  "author": "cliforai",
6
6
  "license": "MIT",
7
7
  "entry": "run.ts",
8
- "runtime": "bun",
8
+ "runtime": "node",
9
9
  "keywords": ["gemini", "image", "generation", "ai", "browser"],
10
10
  "commands": {
11
11
  "image": { "description": "Generate image with Gemini", "args": [{ "name": "prompt", "required": true }] }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cli4ai/nanobanana",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Image generation with Gemini (Nano Banana Pro)",
5
5
  "author": "cliforai",
6
6
  "license": "MIT",
package/run.ts CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env bun
1
+ #!/usr/bin/env npx tsx
2
2
  import puppeteer from 'puppeteer';
3
3
  import { readFileSync } from 'fs';
4
4
  import { execSync } from 'child_process';
@@ -16,7 +16,8 @@ function getGeminiFiles(): string[] {
16
16
  }
17
17
  }
18
18
 
19
- const WS_FILE = join(import.meta.dir, '../chrome/.ws-endpoint');
19
+ const __dirname = new URL('.', import.meta.url).pathname;
20
+ const WS_FILE = join(__dirname, '../chrome/.ws-endpoint');
20
21
  const DOWNLOADS_DIR = join(homedir(), 'Downloads');
21
22
 
22
23
  const program = cli('nanobanana', '1.0.0', 'Image generation with Gemini (Nano Banana Pro)');