opencode-pollinations-plugin 5.1.20 → 5.1.21

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 (2) hide show
  1. package/bin/setup.js +9 -0
  2. package/package.json +1 -1
package/bin/setup.js CHANGED
@@ -7,6 +7,15 @@ import { fileURLToPath } from 'url';
7
7
  const __filename = fileURLToPath(import.meta.url);
8
8
  const __dirname = path.dirname(__filename);
9
9
 
10
+ const args = process.argv.slice(2);
11
+
12
+ // VERSION CHECK
13
+ if (args.includes('--version') || args.includes('-v')) {
14
+ const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '../package.json'), 'utf8'));
15
+ console.log(pkg.version);
16
+ process.exit(0);
17
+ }
18
+
10
19
  console.log('🌸 Pollinations Plugin Setup');
11
20
 
12
21
  // 1. Locate Config
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "opencode-pollinations-plugin",
3
3
  "displayName": "Pollinations AI (V5.1)",
4
- "version": "5.1.20",
4
+ "version": "5.1.21",
5
5
  "description": "Native Pollinations.ai Provider Plugin for OpenCode",
6
6
  "publisher": "pollinations",
7
7
  "repository": {