@cli4ai/nanobanana 1.0.6 → 1.0.8
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/cli4ai.json +3 -2
- package/package.json +2 -2
- package/run.ts +3 -2
package/cli4ai.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nanobanana",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
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": "
|
|
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 }] }
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
+
"@cli4ai/lib": "^1.0.0",
|
|
14
15
|
"puppeteer": "^24.0.0",
|
|
15
16
|
"commander": "^14.0.0"
|
|
16
17
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cli4ai/nanobanana",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Image generation with Gemini (Nano Banana Pro)",
|
|
5
5
|
"author": "cliforai",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"url": "https://github.com/cliforai/packages/issues"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@cli4ai/lib": "^1.0.
|
|
32
|
+
"@cli4ai/lib": "^1.0.0",
|
|
33
33
|
"puppeteer": "^24.0.0",
|
|
34
34
|
"commander": "^14.0.0"
|
|
35
35
|
},
|
package/run.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env
|
|
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
|
|
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)');
|