opencode-pollinations-plugin 6.2.1 → 6.2.2
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.de.md +1 -1
- package/README.es.md +1 -1
- package/README.fr.md +1 -1
- package/README.it.md +1 -1
- package/README.md +1 -1
- package/package.json +2 -2
- package/bin/setup.js +0 -69
package/README.de.md
CHANGED
|
@@ -42,7 +42,7 @@ Pollinations.ai ist eine von der Community für die Community entwickelte Open-S
|
|
|
42
42
|
|
|
43
43
|
### 🧰 Creator Bonus Tools
|
|
44
44
|
- `remove_background` : Ultraschnelle, integrierte Bildhintergrundentfernung (Immer gratis).
|
|
45
|
-
- `gen_qrcode`, `extract_frames`, `extract_audio`
|
|
45
|
+
- `gen_qrcode(diagram and palettes)`, `extract_frames`, `extract_audio`, `file_to_url`: Dienstprogramme (Immer gratis).
|
|
46
46
|
|
|
47
47
|
### 💻 Komplette Liste der Terminal-Befehle
|
|
48
48
|
Verwenden Sie den Alias **`/poll`** oder **`/pollinations`**.
|
package/README.es.md
CHANGED
|
@@ -42,7 +42,7 @@ Más allá de la discusión textual, conectar su clave da a los Agentes de OpenC
|
|
|
42
42
|
|
|
43
43
|
### 🧰 Herramientas Bonus para Creadores
|
|
44
44
|
- `remove_background` : Eliminación de fondo de imagen ultrarrápida integrada (Siempre Gratis).
|
|
45
|
-
- `gen_qrcode`, `extract_frames`, `extract_audio`
|
|
45
|
+
- `gen_qrcode(diagram and palettes)`, `extract_frames`, `extract_audio`, `file_to_url`: Utilidades (Siempre Gratis).
|
|
46
46
|
|
|
47
47
|
### 💻 Lista Completa de Comandos del Terminal
|
|
48
48
|
Use el alias **`/poll`** o **`/pollinations`**.
|
package/README.fr.md
CHANGED
|
@@ -42,7 +42,7 @@ Au-delà de la discussion textuelle, connecter votre clé donne aux Agents OpenC
|
|
|
42
42
|
|
|
43
43
|
### 🧰 Outils Bonus créateur
|
|
44
44
|
- `remove_background` : Détourage de fond d'image ultra-rapide intégré (Toujours Gratuit).
|
|
45
|
-
- `gen_qrcode`, `extract_frames`, `extract_audio`
|
|
45
|
+
- `gen_qrcode(diagram and palettes)`, `extract_frames`, `extract_audio`, `file_to_url`: Utilitaires (Toujours Gratuit).
|
|
46
46
|
|
|
47
47
|
### 💻 Liste Complète des Commandes du Terminal
|
|
48
48
|
Utilisez l'alias **`/poll`** ou **`/pollinations`**.
|
package/README.it.md
CHANGED
|
@@ -42,7 +42,7 @@ Oltre alla discussione testuale, la connessione della tua chiave dà agli Agenti
|
|
|
42
42
|
|
|
43
43
|
### 🧰 Strumenti Bonus per Creatori
|
|
44
44
|
- `remove_background` : Rimozione ultra-veloce integrata dello sfondo delle immagini (Sempre Gratuita).
|
|
45
|
-
- `gen_qrcode`, `extract_frames`, `extract_audio`
|
|
45
|
+
- `gen_qrcode(diagram and palettes)`, `extract_frames`, `extract_audio`, `file_to_url`: Utilità (Sempre Gratuite).
|
|
46
46
|
|
|
47
47
|
### 💻 Elenco Completo dei Comandi del Terminale
|
|
48
48
|
Usa l'alias **`/poll`** oppure **`/pollinations`**.
|
package/README.md
CHANGED
|
@@ -46,7 +46,7 @@ Beyond text discussion, connecting your key gives OpenCode Agents access to our
|
|
|
46
46
|
|
|
47
47
|
### 🧰 Free Creator Bonus Tools (Always available)
|
|
48
48
|
- `remove_background` : Built-in ultra-fast image background removal.
|
|
49
|
-
- `gen_qrcode`, `extract_frames`, `extract_audio`
|
|
49
|
+
- `gen_qrcode(diagram and palettes)`, `extract_frames`, `extract_audio`, `file_to_url`: Utilities.
|
|
50
50
|
|
|
51
51
|
### 💻 Complete List of Terminal Commands
|
|
52
52
|
Use the alias **`/poll`** or **`/pollinations`**.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-pollinations-plugin",
|
|
3
3
|
"displayName": "Pollinations",
|
|
4
|
-
"version": "6.2.
|
|
4
|
+
"version": "6.2.2",
|
|
5
5
|
"description": "Native Pollinations.ai Provider Plugin for OpenCode",
|
|
6
6
|
"publisher": "pollinations",
|
|
7
7
|
"repository": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
],
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "tsc",
|
|
31
|
-
"test": "node scripts/test-suite.cjs",
|
|
31
|
+
"test": "node scripts/tests/test-suite.cjs",
|
|
32
32
|
"prepare": "npm run build",
|
|
33
33
|
"package": "npx vsce package"
|
|
34
34
|
},
|
package/bin/setup.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import fs from 'fs';
|
|
3
|
-
import path from 'path';
|
|
4
|
-
import os from 'os';
|
|
5
|
-
import { fileURLToPath } from 'url';
|
|
6
|
-
|
|
7
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
8
|
-
const __dirname = path.dirname(__filename);
|
|
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
|
-
|
|
19
|
-
console.log('🌸 Pollinations Plugin Setup');
|
|
20
|
-
|
|
21
|
-
// 1. Locate Config
|
|
22
|
-
const configDir = path.join(os.homedir(), '.config', 'opencode');
|
|
23
|
-
const configFile = path.join(configDir, 'opencode.json');
|
|
24
|
-
|
|
25
|
-
if (!fs.existsSync(configFile)) {
|
|
26
|
-
console.error(`❌ OpenCode config not found at: ${configFile}`);
|
|
27
|
-
console.log(' Please run OpenCode once to generate it.');
|
|
28
|
-
process.exit(1);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// 2. Read Config
|
|
32
|
-
let config;
|
|
33
|
-
try {
|
|
34
|
-
config = JSON.parse(fs.readFileSync(configFile, 'utf8'));
|
|
35
|
-
} catch (err) {
|
|
36
|
-
console.error('❌ Failed to parse opencode.json');
|
|
37
|
-
process.exit(1);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// 3. Detect Plugin Path
|
|
41
|
-
// We use the absolute path of THIS package installation to be safe
|
|
42
|
-
const pluginPath = path.resolve(__dirname, '..');
|
|
43
|
-
console.log(`📍 Plugin Path: ${pluginPath}`);
|
|
44
|
-
|
|
45
|
-
// 4. Update Config
|
|
46
|
-
if (!config.plugin) {
|
|
47
|
-
config.plugin = [];
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
const pluginName = 'opencode-pollinations-plugin';
|
|
51
|
-
const alreadyExists = config.plugin.some(p => p === pluginName || p.includes('opencode-pollinations-plugin'));
|
|
52
|
-
|
|
53
|
-
if (!alreadyExists) {
|
|
54
|
-
// We strive to use the CLEAN name if possible, but fallback to absolute path if installed locally
|
|
55
|
-
// For global installs, absolute path is safest across envs
|
|
56
|
-
config.plugin.push(pluginPath);
|
|
57
|
-
console.log('✅ Added plugin to configuration.');
|
|
58
|
-
|
|
59
|
-
// Backup
|
|
60
|
-
fs.writeFileSync(configFile + '.bak', fs.readFileSync(configFile));
|
|
61
|
-
|
|
62
|
-
// Write
|
|
63
|
-
fs.writeFileSync(configFile, JSON.stringify(config, null, 2));
|
|
64
|
-
console.log(`✨ Configuration saved: ${configFile}`);
|
|
65
|
-
} else {
|
|
66
|
-
console.log('✅ Plugin already configured.');
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
console.log('\n🚀 Setup Complete! Restart OpenCode to see models.');
|