opencode-pollinations-plugin 6.2.7-1 → 6.3.0

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 (47) hide show
  1. package/README.de.md +9 -1
  2. package/README.es.md +9 -1
  3. package/README.fr.md +9 -1
  4. package/README.it.md +9 -1
  5. package/README.md +35 -16
  6. package/README.zh.md +9 -1
  7. package/dist/locales/de.json +94 -6
  8. package/dist/locales/en.json +94 -6
  9. package/dist/locales/es.json +94 -6
  10. package/dist/locales/fr.json +94 -6
  11. package/dist/locales/index.js +3 -1
  12. package/dist/locales/it.json +94 -6
  13. package/dist/locales/zh.json +461 -0
  14. package/dist/server/commands.d.ts +8 -0
  15. package/dist/server/commands.js +203 -13
  16. package/dist/server/connect-response.js +1 -1
  17. package/dist/server/quota.js +29 -8
  18. package/dist/server/tier-info.d.ts +9 -4
  19. package/dist/server/tier-info.js +29 -18
  20. package/dist/tools/index.d.ts +2 -1
  21. package/dist/tools/index.js +14 -1
  22. package/dist/tools/pollinations/gen_edit_image_free.d.ts +14 -0
  23. package/dist/tools/pollinations/gen_edit_image_free.js +146 -0
  24. package/dist/tools/pollinations/gen_video_free.d.ts +19 -0
  25. package/dist/tools/pollinations/gen_video_free.js +246 -0
  26. package/dist/tools/pollinations/polli_config.js +1 -1
  27. package/dist/tools/pollinations/polli_login.d.ts +13 -0
  28. package/dist/tools/pollinations/polli_login.js +30 -0
  29. package/dist/tools/pollinations/polli_quests.d.ts +3 -0
  30. package/dist/tools/pollinations/polli_quests.js +135 -0
  31. package/package.json +2 -2
  32. package/dist/server/index.d.ts +0 -2
  33. package/dist/server/index.js +0 -158
  34. package/dist/server/scripts/test_cost_endpoints.d.ts +0 -1
  35. package/dist/server/scripts/test_cost_endpoints.js +0 -61
  36. package/dist/server/scripts/test_dynamic_pricing.d.ts +0 -1
  37. package/dist/server/scripts/test_dynamic_pricing.js +0 -39
  38. package/dist/server/scripts/test_freetier_audit.d.ts +0 -11
  39. package/dist/server/scripts/test_freetier_audit.js +0 -215
  40. package/dist/server/scripts/test_parallel_cost.d.ts +0 -1
  41. package/dist/server/scripts/test_parallel_cost.js +0 -104
  42. package/dist/tools/pollinations/deepsearch.d.ts +0 -7
  43. package/dist/tools/pollinations/deepsearch.js +0 -80
  44. package/dist/tools/pollinations/search_crawl_scrape.d.ts +0 -7
  45. package/dist/tools/pollinations/search_crawl_scrape.js +0 -85
  46. package/dist/tools/pollinations/test_estimators.d.ts +0 -1
  47. package/dist/tools/pollinations/test_estimators.js +0 -22
package/README.de.md CHANGED
@@ -1,4 +1,12 @@
1
- # 🌸 Pollinations AI Plugin für OpenCode (v6.2.7)
1
+ # 🌸 Pollinations AI Plugin für OpenCode (v6.3.0)
2
+
3
+ ## ✨ Neu in v6.3.0
4
+
5
+ - 🎯 **Quests & Gamification** : `polli_quests` + `/poll quests` — sieh deine Quests und das **einlösbare kostenlose Pollen**. Die Nutzung des Plugins schließt Quests rückwirkend ab!
6
+ - 🆓 **Kostenlose Bild- & Videogenerierung (ohne Schlüssel!)** : `gen_edit_image_free` (erstellen + bearbeiten, ~20/Tag) und `gen_video_free` (Text→Video + Bild/Audio, ~5/Tag), für jedes Modell.
7
+ - 🔐 **1-Klick-Login** : `/poll login` + `polli_login` (Device Flow wie `gh auth login`), Browser öffnet automatisch. `/poll connect sk_...` bleibt für permanente Schlüssel verfügbar.
8
+ - 🇨🇳 **Chinesisch hinzugefügt** : Oberfläche in 6 Sprachen (en, fr, es, de, it, zh).
9
+
2
10
 
3
11
  <div align="center">
4
12
  <img src="https://avatars.githubusercontent.com/u/88394740?s=400&v=4" alt="Pollinations.ai Logo" width="180">
package/README.es.md CHANGED
@@ -1,4 +1,12 @@
1
- # 🌸 Pollinations AI Plugin para OpenCode (v6.2.7)
1
+ # 🌸 Pollinations AI Plugin para OpenCode (v6.3.0)
2
+
3
+ ## ✨ Novedades v6.3.0
4
+
5
+ - 🎯 **Misiones y Gamificación** : `polli_quests` + `/poll quests` — mira tus misiones y el **Pollen gratis por reclamar**. ¡Usar el plugin completa misiones retroactivamente!
6
+ - 🆓 **Imagen y Vídeo gratis (¡sin clave!)** : `gen_edit_image_free` (generar + editar, ~20/día) y `gen_video_free` (texto→vídeo + imagen/audio, ~5/día), para cualquier modelo.
7
+ - 🔐 **Inicio 1 clic** : `/poll login` + `polli_login` (device flow como `gh auth login`), el navegador se abre solo. `/poll connect sk_...` sigue disponible para clave permanente.
8
+ - 🇨🇳 **Chino añadido** : interfaz en 6 idiomas (en, fr, es, de, it, zh).
9
+
2
10
 
3
11
  <div align="center">
4
12
  <img src="https://avatars.githubusercontent.com/u/88394740?s=400&v=4" alt="Pollinations.ai Logo" width="180">
package/README.fr.md CHANGED
@@ -1,4 +1,12 @@
1
- # 🌸 Plugin Pollinations AI pour OpenCode (v6.2.7)
1
+ # 🌸 Plugin Pollinations AI pour OpenCode (v6.3.0)
2
+
3
+ ## ✨ Nouveautés v6.3.0
4
+
5
+ - 🎯 **Quêtes & Gamification** : `polli_quests` + `/poll quests` — voyez vos quêtes et le **Pollen gratuit à réclamer**. Utiliser le plugin complète des quêtes rétroactivement !
6
+ - 🆓 **Image & Vidéo gratuites (sans clé !)** : `gen_edit_image_free` (génération + édition, ~20/j) et `gen_video_free` (texte→vidéo + image/audio, ~5/j), pour n'importe quel modèle.
7
+ - 🔐 **Connexion 1 clic** : `/poll login` + `polli_login` (device flow façon `gh auth login`), le navigateur s'ouvre tout seul. `/poll connect sk_...` reste dispo pour une clé permanente.
8
+ - 🇨🇳 **Chinois ajouté** : interface disponible en 6 langues (en, fr, es, de, it, zh).
9
+
2
10
 
3
11
  <div align="center">
4
12
  <img src="https://avatars.githubusercontent.com/u/88394740?s=400&v=4" alt="Pollinations.ai Logo" width="180">
package/README.it.md CHANGED
@@ -1,4 +1,12 @@
1
- # 🌸 Pollinations AI Plugin per OpenCode (v6.2.7)
1
+ # 🌸 Pollinations AI Plugin per OpenCode (v6.3.0)
2
+
3
+ ## ✨ Novità v6.3.0
4
+
5
+ - 🎯 **Quest e Gamification** : `polli_quests` + `/poll quests` — guarda le tue quest e il **Pollen gratuito da riscattare**. Usare il plugin completa quest retroattivamente!
6
+ - 🆓 **Immagini e Video gratis (senza chiave!)** : `gen_edit_image_free` (genera + modifica, ~20/giorno) e `gen_video_free` (testo→video + immagine/audio, ~5/giorno), per qualsiasi modello.
7
+ - 🔐 **Accesso 1 clic** : `/poll login` + `polli_login` (device flow come `gh auth login`), il browser si apre da solo. `/poll connect sk_...` resta disponibile per chiave permanente.
8
+ - 🇨🇳 **Cinese aggiunto** : interfaccia in 6 lingue (en, fr, es, de, it, zh).
9
+
2
10
 
3
11
  <div align="center">
4
12
  <img src="https://avatars.githubusercontent.com/u/88394740?s=400&v=4" alt="Pollinations.ai Logo" width="180">
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # 🌸 Pollinations AI Plugin for OpenCode (v6.2.7)
1
+ # 🌸 Pollinations AI Plugin for OpenCode (v6.3.0)
2
2
 
3
3
  <div align="center">
4
4
  <img src="https://avatars.githubusercontent.com/u/88394740?s=400&v=4" alt="Pollinations.ai Logo" width="180">
@@ -27,12 +27,15 @@
27
27
 
28
28
  ---
29
29
 
30
- ## ✨ What's new in V6.2.7?
30
+ ## ✨ What's new in V6.3.0?
31
31
 
32
- - ⏱️ **Hourly Quotas**: Say goodbye to daily limits! Developer tiers now reset **every single hour** at `:00`, ensuring you always have fresh credits available throughout your coding sessions.
33
- - **100% Dynamic Engine**: Hardcoded model lists, default configurations, and fixed prices are gone! In V6.2, OpenCode's AI agent now fetches the latest LLMs (`[💎 Paid]`, `[🌿 Free]`, limits), and cost approximations dynamically from the Pollinations APIs.
34
- - 🛡️ **Robust Security**: Protection against path traversal and strict URL verifications are fully integrated.
35
- - 🔍 **Improved Web Search**: The `polli_web_search` component maps seamlessly to current web-enabled and specialized groundings options like Google Gemini Fast, Perplexity, and Custom assistants.
32
+ - 🎯 **Quests & Gamification**: New `polli_quests` tool + `/poll quests` command. See your Pollinations quests by category and the **free Pollen waiting to be claimed**. Just using this plugin (text, image & audio models) completes several quests **retroactively** — you may already have free Pollen waiting!
33
+ - 🆓 **Free Image & Video Tools (no key required!)**: Two brand-new bonus tools usable by **any** OpenCode model, even without a Pollinations account:
34
+ - `gen_edit_image_free` generate **and edit** images (~20/day).
35
+ - `gen_video_free` text-to-video with optional first-frame image & audio (~5/day).
36
+ - 🔐 **1-Click Device Login**: New `/poll login` command + `polli_login` tool (like `gh auth login`). Opens your browser automatically and connects the plugin — no manual key copy-paste needed. The old `/poll connect sk_...` still works for permanent keys.
37
+ - 🇨🇳 **Chinese added**: The interface is now available in **6 languages** (en, fr, es, de, it, **zh**).
38
+ - 🛠️ **Tier fixes**: Full alignment with the official Pollinations tier config (added `router` 🐝, `anonymous`), crash fixes on no-refill tiers, and quest-based progression replacing the deprecated dev-points system.
36
39
 
37
40
  ---
38
41
 
@@ -47,14 +50,18 @@ Beyond text discussion, connecting your key gives OpenCode Agents access to our
47
50
  - 🎙️ `polli_stt` : High-flying voice transcription (Whisper V3).
48
51
  - 🌐 `polli_web_search` : Connected Web & Specialized Search context (`gemini-search`, `perplexity...`).
49
52
 
50
- ### 🧰 Free Creator Bonus Tools (Always available)
53
+ ### 🧰 Free Creator Bonus Tools (Always available — no API key needed)
54
+ - 🆓 `gen_edit_image_free` : Generate **and edit** images for free (~20/day, any model, no key).
55
+ - 🆓 `gen_video_free` : Free text-to-video with optional first-frame image & audio (~5/day, no key).
51
56
  - ✂️ `remove_background` : Built-in ultra-fast AI image background removal.
52
- - 🛠️ `gen_qrcode`, `gen_diagram`, `extract_frames`, `extract_audio`, `file_to_url`: Dev utilities.
57
+ - 🛠️ `gen_qrcode`, `gen_diagram`, `gen_palette`, `extract_frames`, `extract_audio`, `file_to_url`: Dev utilities.
53
58
 
54
59
  ### 💻 Complete List of Terminal Commands
55
60
  Use the alias **`/poll`** or **`/pollinations`** anytime inside your conversation terminal:
56
61
  - `/poll help` : Displays the interactive help table.
57
- - `/poll connect` : Bring Your Own Key configuration tool (Interactive).
62
+ - `/poll login` : **1-click browser login** (device flow) creates & connects a key automatically.
63
+ - `/poll connect <key>` : Bring Your Own Key (manual `sk_...`, permanent key).
64
+ - `/poll quests` : See your quests & free Pollen ready to claim. 🎯
58
65
  - `/poll usage full` : Real-time dashboard (Stats), active Freetiers, and Wallet Balance.
59
66
  - `/poll config` : Finely adjust Cost Guards, Logs, Language, and Display.
60
67
  - `/poll models` : Check the status of available Models.
@@ -83,14 +90,17 @@ In the past, Pollinations mainly relied on ad-funded network traffic. Today, run
83
90
 
84
91
  | Tier | Hourly Reload ⏱️ | Daily Estimate* | Condition |
85
92
  | :--- | :--- | :--- | :--- |
86
- | 🦠 **Microbe** | **0.01 Pollen / hour** | ~0.24 / day | Just register! |
93
+ | 🦠 **Microbe** | **0 Pollen / hour** | ~0 / day | Just register! |
87
94
  | 🍄 **Spore** | **0.01 Pollen / hour** | ~0.24 / day | Automatic verification |
88
- | 🌱 **Seed** | **0.15 Pollen / hour** | ~3.6 / day | Active GitHub Developer (8+ points) |
89
- | 🌸 **Flower** | **0.40 Pollen / hour** | ~9.6 / day | **Publish an App** (Like this Plugin!) |
90
- | 🍯 **Nectar** | **0.80 Pollen / hour** | ~19.2 / day | Coming soon 🔮 |
95
+ | 🌱 **Seed** | **0.15 Pollen / hour** | ~3.6 / day | Active community member |
96
+ | 🌸 **Flower** | **0.40 Pollen / hour** | ~9.6 / day | Publish an App (like this Plugin!) |
97
+ | 🍯 **Nectar** | **0.80 Pollen / hour** | ~19.2 / day | Top contributor |
98
+ | 🐝 **Router** | **10 Pollen / hour** | ~240 / day | Special / invite-only |
91
99
 
92
100
  _*Daily estimates are approximate (~24h × hourly rate). Actual reset occurs automatically at the top of every hour (XX:00)._
93
101
 
102
+ > 🎯 **Earn even more free Pollen by completing Quests!** Just using this plugin completes several quests retroactively. Run `/poll quests` to see what you can claim.
103
+
94
104
  > 🎁 **Get your Free Personal Key (BYOK) on [Pollinations.ai](https://enter.pollinations.ai/authorize?redirect_url=https://github.com/fkom13/opencode-pollinations-plugin) to boost OpenCode!**
95
105
 
96
106
  **How It Works:**
@@ -125,11 +135,20 @@ This plugin is **fully cross-platform** (Windows, macOS, Linux) and detects Open
125
135
  *(Or inject it manually into `~/.config/opencode/opencode.json`)*
126
136
 
127
137
  ### 🔑 2. Interactive Onboarding
128
- Once inside OpenCode, simply type the following command in the Agent Terminal:
138
+
139
+ Once inside OpenCode, connect your Pollinations account with **one** of these:
140
+
141
+ **Option A — 1-click login (recommended):**
142
+ ```bash
143
+ /poll login
144
+ ```
145
+ Your browser opens automatically. Sign in with GitHub and click **Authorize** — the plugin connects itself, no copy-paste. 💡 On the consent form, keep **Profile + Usage** granted; clear the **Budget** and **Expiry** fields for an unlimited, never-expiring key.
146
+
147
+ **Option B — manual key:**
129
148
  ```bash
130
- /poll connect
149
+ /poll connect sk_your_key_here
131
150
  ```
132
- An interactive conversational assistant will guide you to inject your Pollinations Key and configure your workspace. *(Restart OpenCode to update the UI models list).*
151
+ Create a **Secret** key yourself on [enter.pollinations.ai](https://enter.pollinations.ai) and paste it. *(Restart OpenCode to update the UI models list.)*
133
152
 
134
153
  ---
135
154
 
package/README.zh.md CHANGED
@@ -1,4 +1,12 @@
1
- # 🌸 Pollinations AI 插件 - OpenCode版 (v6.2.7)
1
+ # 🌸 Pollinations AI 插件 - OpenCode版 (v6.3.0)
2
+
3
+ ## ✨ v6.3.0 新功能
4
+
5
+ - 🎯 **任务与游戏化** :`polli_quests` + `/poll quests` — 查看你的任务和**可领取的免费 Pollen**。使用本插件会追溯性地完成多个任务!
6
+ - 🆓 **免费图像和视频 (无需密钥!)** :`gen_edit_image_free` (生成 + 编辑,约 20/天) 和 `gen_video_free` (文本→视频 + 图像/音频,约 5/天),适用于任何模型。
7
+ - 🔐 **一键登录** :`/poll login` + `polli_login` (设备流程,类似 `gh auth login`),浏览器自动打开。`/poll connect sk_...` 仍可用于永久密钥。
8
+ - 🇨🇳 **新增中文** :界面支持 6 种语言 (en, fr, es, de, it, zh)。
9
+
2
10
 
3
11
  <div align="center">
4
12
  <img src="https://avatars.githubusercontent.com/u/88394740?s=400&v=4" alt="Pollinations.ai Logo" width="180">
@@ -5,7 +5,7 @@
5
5
  "alias_note": "*(Der Alias `/poll` wird unterstützt und anstelle von `/pollinations` empfohlen!)*",
6
6
  "mode_usage": "**Modus & Nutzung**\n- **`/poll mode [modus]`**: Modus ändern (manual, alwaysfree, pro).\n- **`/poll usage [full]`**: Dashboard anzeigen (full = Details).\n- **`/poll fallback <main> [agent]`**: Sicherheitsnetz konfigurieren.",
7
7
  "configuration": "**Konfiguration**\n- **`/poll config [schlüssel] [wert]`**:\n - `lang`: en, fr, de, es, it, etc.\n - `status_gui`: none, alert, all\n - `logs_gui`: none, error, verbose\n - `threshold_tier` / `threshold_wallet`: 0-100\n - `status_bar`: true/false\n - `cost_estimator`: true/false (Kosten in Ausgaben anzeigen)\n - `enablePaidTools`: true/false (Wallet-Schutz)\n - `costThreshold`: Limit in Pollen (Standard: 0.15)\n - `costConfirmationRequired`: true/false (Ausgabenbestätigung)",
8
- "models_pricing": "**Modelle & Preise**\n- **`/poll models [typ]`**: Modelle auflisten (Typ: image, video, audio, text)\n- **`/poll pricing`**: Detaillierte Preistabelle\n- **`/poll infos`**: Erklärungen zu Tiers und Pollen\n\n> 💡 **RMBG-Schlüssel**: Verwende das Tool `rmbg_keys` (funktioniert mit jedem Modell)."
8
+ "models_pricing": "**Modelle & Preise**\n- **`/poll models [typ]`**: Modelle auflisten (Typ: image, video, audio, text)\n- **`/poll pricing`**: Detaillierte Preistabelle\n- **`/poll infos`**: Erklärungen zu Tiers und Pollen\n- **`/poll quests`**: Deine Quests & einlösbares kostenloses Pollen anzeigen\n\n> 💡 **RMBG-Schlüssel**: Verwende das Tool `rmbg_keys` (funktioniert mit jedem Modell)."
9
9
  },
10
10
  "config": {
11
11
  "title": "## ⚙️ Pollinations Konfiguration (v{version})",
@@ -53,7 +53,7 @@
53
53
  "tier": "- **Stufe:** {emoji} {tier} (Limit: {limit} 🌻)\n",
54
54
  "quota": "- **Verbraucht:** {remaining} von {limit}\n",
55
55
  "usage_bar": "- **Nutzung:** {bar}\n",
56
- "wallet": "- **Brieftasche:** {balance} 🌻 übrig\n\n",
56
+ "wallet": "- **Guthaben (Bezahlt + Quests):** {balance} 🌻\n\n",
57
57
  "reset": "### 🕒 Zurücksetzen\n- **Nächster Reset:** {date} (in {duration})\n\n",
58
58
  "restricted_key": "⚠️ API-Schlüssel eingeschränkt. Keine Details verfügbar.\n",
59
59
  "period_detail": "### 📈 Zeitraum (seit {time})\n",
@@ -102,20 +102,34 @@
102
102
  "features_free": "**🛠️ Integrierte kostenlose Tools (Immer verfügbar):**\n- `gen_qrcode` / `gen_diagram` / `gen_palette` : Visuelle & Dev-Utilities.\n- `remove_background` : Natives Entfernen von Hintergründen.\n- `extract_frames` / `extract_audio` : Schnelle Medienextraktion.\n- `file_to_url` : Sofortiges Online-Hosting lokaler Dateien.",
103
103
  "features_pro": "**💎 Pollinations Tools (Premium - Automatisiert mit Key):**\n- `polli_gen_image` : Bildgen (Flux, Gemini) + Image-to-Image.\n- `polli_gen_video` : Text-to-Video / Image-to-Video (Veo, Wan...).\n- `polli_gen_audio`/`polli_stt` : Whisper STT, ElevenLabs TTS.\n- `polli_gen_music` : Generative Musik-Engine.\n- `polli_web_search` : Verbundene Websuche.",
104
104
  "features_config": "- **Granulare Konfiguration**, Modus- und Token-Management, Kostenschutz...",
105
- "tiers_title": "> **Ihre Stufen:** {emoji} {tier}",
105
+ "tiers_title": "> **Ihre Stufe:** {emoji} {tier}",
106
106
  "about": "## 🌍 Was ist pollinations.ai?\npollinations.ai ist eine Open-Source-KI-Plattform. Wir bieten eine einheitliche API für Bild, Text, Audio und Video. Alles ist offen: Code, Roadmap, Konversationen. Machen Sie mit!\n\nKeine Blackboxes. Keine Anbieterbindung. Nur eine freundliche API und ein Discord voller hilfsbereiter Menschen.",
107
- "levels_title": "## 📈 Erhöhen Sie Ihr Level",
107
+ "levels_title": "## 📈 Stufen & Stündliches Pollen",
108
108
  "levels_list": "Für Entwickler, die mit pollinations.ai erstellen. Steigen Sie auf, um täglich mehr Pollen zu verdienen.\n\n- 🦠 **Microbe** (0.1 Pollen/Tag) : Registrieren\n- 🍄 **Spore** (1 Pollen/Tag) : Automatische Verifizierung\n- 🌱 **Seed** (3 Pollen/Tag) : 8+ Dev Points\n- 🌸 **Flower** (10 Pollen/Tag) : Eine App veröffentlichen\n- 🍯 **Nectar** (20 Pollen/Tag) : Demnächst 🔮",
109
109
  "beta_note": "✨ *Wir sind in der Beta! Wir lernen, was am besten funktioniert.*",
110
110
  "pollen_title": "## 💎 Was ist Pollen?",
111
111
  "pollen_get": "Das Ausführen von KI-Modellen kostet Geld. Pollen ist unser Weg, Server am Laufen zu halten, ohne Werbung. Ein einfaches, einheitliches Guthaben für alle Modelle.\n\n**$1 ≈ 1 Pollen**. Sie geben es für API-Aufrufe aus.",
112
- "pollen_spend": "## 🛒 Wie bekommt man Pollen?\nSie können Pollen durch Teilnahme an der Community sammeln oder direkt im Dashboard kaufen."
112
+ "pollen_spend": "## 🛒 Wie bekommt man Pollen?\nSie können Pollen durch Teilnahme an der Community sammeln oder direkt im Dashboard kaufen.",
113
+ "quests": "## 🎯 Quests — Verdiene kostenloses Pollen\nPollen wird jetzt hauptsächlich durch das Abschließen von **Quests** verdient. Gute Nachricht: Die bloße Nutzung dieses Plugins (Text-, Bild- & Audiomodelle) schließt mehrere Quests **rückwirkend** ab — möglicherweise wartet bereits kostenloses Pollen auf dich!\n\n👉 Überprüfe und beanspruche deine Belohnungen im [Dashboard](https://enter.pollinations.ai). _Das Einlösen erfolgt nur im Dashboard._\n\n> 💡 Quest-Pollen funktioniert mit allen Standardmodellen. 💎 Kostenpflichtige Modelle erfordern weiterhin gekauftes Pollen.",
114
+ "hourly_note": "> ⚠️ Kontingente sind **stündlich** (Auffüllung um :00). Der Tageswert ist eine Schätzung (~24h × Stundenrate)."
113
115
  },
114
116
  "pricing_units": {
115
117
  "tokens": "~tokens",
116
118
  "img": "🌻/Bild",
117
119
  "s": "🌻/s",
118
120
  "tok": "🌻/tok"
121
+ },
122
+ "login": {
123
+ "prompt": "## 🔐 Schnell-Login (Device Flow)\n\n**1.** Öffne: **{uri_complete}**\n_(oder gehe zu {uri} und gib den Code unten ein)_\n\n**2.** Dein Code: **`{code}`**\n\n**3.** Melde dich mit GitHub an, dann im Zustimmungsformular:\n • ✅ Behalte **Profile** + **Usage** gewährt (nötig für Kontingent, Quests & Always-Free)\n • 💡 Für einen **unbegrenzten Schlüssel**: leere das Feld **Budget** (→ Unbegrenzt) und **Expiry** (→ Nie)\n • Klicke **Authorize**\n\nDas Plugin wartet und verbindet sich **automatisch** nach Zustimmung (ein Toast bestätigt ✅).\n\n💡 _Lieber einen manuell erstellten Schlüssel? Nutze `/poll connect sk_...`._",
124
+ "already_running": "⏳ Ein Login läuft bereits. Schließe die Autorisierung im Browser ab oder warte einen Moment.",
125
+ "code_error": "❌ Login konnte nicht gestartet werden: {error}\n💡 Du kannst weiterhin `/poll connect sk_...` manuell verwenden.",
126
+ "expired": "⏱️ Login-Code abgelaufen. Führe /poll login erneut aus.",
127
+ "success_toast": "✅ Über Device-Login verbunden! Pro-Modelle freigeschaltet.",
128
+ "validate_error": "❌ Schlüsselvalidierung fehlgeschlagen: {error}",
129
+ "nothing_pending": "ℹ️ Kein Login im Gange. Führe zuerst polli_login (ohne wait) aus, um einen Code zu erhalten.",
130
+ "opened": "🌐 Browser wird zur Autorisierung geöffnet…",
131
+ "still_waiting": "⏳ Warte noch auf deine Autorisierung im Browser. Sobald du zustimmst, rufe polli_login erneut mit wait:true auf, um zu bestätigen.",
132
+ "success_limited": "⚠️ Verbunden, aber dein Schlüssel scheint eingeschränkt (Profile/Usage nicht gewährt). Kontingentanzeige, Always-Free-Fallback und Wallet-Kontrolle funktionieren evtl. nicht. Führe Login erneut aus und gewähre Profile + Usage, oder nutze einen vollständigen Schlüssel."
119
133
  }
120
134
  },
121
135
  "proxy": {
@@ -350,6 +364,70 @@
350
364
  "err_auth": "❌ Ungültiger API-Key.",
351
365
  "err_large": "❌ Datei zu groß.",
352
366
  "err_stt": "❌ Fehler: {error}"
367
+ },
368
+ "polli_quests": {
369
+ "desc": "Listet deine Pollinations-Quests auf und zeigt, wie viel kostenloses Pollen du beanspruchen kannst. Schreibgeschützt. Das Abschließen von Quests (auch nur durch Nutzung dieses Plugins) bringt Pollen; das Einlösen erfolgt im Dashboard.",
370
+ "arg_filter": "Filter: 'all' (Standard), 'available' (offene Quests) oder 'claimable' (verdient, aber noch nicht eingelöst).",
371
+ "no_key": "🔑 Kein API-Schlüssel konfiguriert. Verwende zuerst `/poll connect <key>`.",
372
+ "error": "⚠️ Quests konnten nicht abgerufen werden: {error}",
373
+ "empty": "Keine Quests für dieses Konto gefunden.",
374
+ "title": "## 🎯 Pollinations Quests",
375
+ "claimable": "> 🎁 **Du hast {count} Belohnung(en) = {pollen} 🌻 zum Einlösen bereit!**",
376
+ "none_claimable": "✅ Derzeit nichts einzulösen. Nutze das Plugin weiter, um mehr zu verdienen!",
377
+ "claim_hint": "👉 Löse deine Belohnungen im [Dashboard](https://enter.pollinations.ai) ein (nur im Dashboard möglich).",
378
+ "legend": "_Legende: 🎁 einlösbar · ✅ eingelöst · ✔️ abgeschlossen · 🔜 bald · ⬜ offen_"
379
+ },
380
+ "gen_edit_image_free": {
381
+ "desc": "🆓 BONUS — Immer kostenlose Bildgenerierung & -bearbeitung. Kein Pollinations-Schlüssel nötig, funktioniert mit jedem Modell. Aus einem Prompt generieren oder 1-3 Bilder über `images` BEARBEITEN. Über ein öffentliches Playground von deiner eigenen IP: ~20 kostenlose Anfragen/Tag (Generierung und Bearbeitung TEILEN denselben Tageszähler). Nach dem Kontingent `polli_gen_image` (Pollinations) verwenden.",
382
+ "arg_prompt": "Beschreibung des zu generierenden Bildes oder die Bearbeitungsanweisung beim Bearbeiten.",
383
+ "arg_images": "Optional. 1 bis 3 Bilder zum BEARBEITEN (lokaler Pfad, http(s)-URL oder data: URI). Falls angegeben, wird in den Bearbeitungsmodus gewechselt.",
384
+ "arg_aspect": "Seitenverhältnis für die Generierung (16:9 Standard, 1:1, 9:16). Beim Bearbeiten ignoriert.",
385
+ "arg_save_to": "Ausgabeverzeichnis oder vollständiger Dateipfad.",
386
+ "arg_filename": "Benutzerdefinierter Dateiname (ohne Erweiterung).",
387
+ "too_many_images": "❌ Der Bearbeitungsmodus akzeptiert maximal 1 bis 3 Bilder.",
388
+ "quota_exhausted": "🆓 Tägliches kostenloses Kontingent erreicht ({max}/Tag für diese IP, Gen+Bearbeitung geteilt). Es wird alle 24h zurückgesetzt.\n💡 Verwende in der Zwischenzeit `polli_gen_image` mit deinem Pollinations-Schlüssel.",
389
+ "working": "Kostenlose {mode} läuft…",
390
+ "failed": "Kostenloses Bild fehlgeschlagen: {error}",
391
+ "api_error": "⚠️ Der kostenlose Bilddienst hat einen Fehler zurückgegeben: {error}\n💡 Versuche es erneut oder verwende `polli_gen_image` (Pollinations).",
392
+ "res_title_gen": "🆓 Kostenloses Bild generiert",
393
+ "res_title_edit": "🆓 Kostenloses Bild bearbeitet",
394
+ "res_prompt": "Prompt: {prompt}",
395
+ "res_file": "Datei: {path}",
396
+ "res_size": "Größe: {size}",
397
+ "res_quota": "Kostenloses Kontingent heute übrig: {remaining}/{max} (Gen+Bearbeitung geteilt, pro IP)",
398
+ "res_note": "_🆓 Bonus-Tool — kostenlos, außerhalb der Pollinations-Ökonomie. Auflösung 1344×768. Nach dem Kontingent `polli_gen_image` verwenden._",
399
+ "success": "Kostenlose {mode} fertig ✓",
400
+ "degraded": "⚠️ Kostenloser Bilddienst nicht verfügbar ({error}).\n💡 Ausweich: verwende `polli_gen_image` / `polli_gen_video` mit deinem Pollinations-Schlüssel."
401
+ },
402
+ "gen_video_free": {
403
+ "desc": "🆓 BONUS — Immer kostenlose Videogenerierung. Kein Pollinations-Schlüssel nötig, funktioniert mit jedem Modell. Text-zu-Video, mit OPTIONALEM Erstframe-`image` und OPTIONALEM `audio` zum Hinzufügen. Über ein öffentliches Pruna-Playground von deiner eigenen IP: ~5 kostenlose Videos/Tag (getrennt vom Bildkontingent). Asynchrone Generierung (kann 1-3 Min dauern). Nach dem Kontingent `polli_gen_video` (Pollinations) verwenden.",
404
+ "arg_prompt": "Beschreibung des Videos (Bewegung, Kamera, Szene, Audio-Hinweise).",
405
+ "arg_image": "Optional. Erstframe-/Referenzbild (lokaler Pfad, http(s)-URL oder data: URI).",
406
+ "arg_audio": "Optional. Hinzuzufügende Audiospur (lokaler Pfad, http(s)-URL oder data: URI).",
407
+ "arg_duration": "Dauer in Sekunden (Standard: 5, max: 10).",
408
+ "arg_aspect": "Seitenverhältnis (16:9 Standard, 9:16, 1:1).",
409
+ "arg_resolution": "Auflösung (480p, 720p Standard, 1080p).",
410
+ "arg_save_to": "Ausgabeverzeichnis oder vollständiger Dateipfad.",
411
+ "arg_filename": "Benutzerdefinierter Dateiname (ohne Erweiterung).",
412
+ "quota_exhausted": "🆓 Tägliches kostenloses Video-Kontingent erreicht ({max}/Tag für diese IP). Es wird alle 24h zurückgesetzt.\n💡 Verwende in der Zwischenzeit `polli_gen_video` mit deinem Pollinations-Schlüssel.",
413
+ "working": "Kostenlose Videogenerierung gestartet (asynchron, 1-3 Min)…",
414
+ "failed": "Kostenloses Video fehlgeschlagen: {error}",
415
+ "api_error": "⚠️ Der kostenlose Videodienst hat einen Fehler zurückgegeben: {error}\n💡 Versuche es erneut oder verwende `polli_gen_video` (Pollinations).",
416
+ "res_title": "🆓 Kostenloses Video generiert",
417
+ "res_prompt": "Prompt: {prompt}",
418
+ "res_params": "Params: {duration}s · {resolution} · {aspect}",
419
+ "res_image": "Bild: ✅ als Referenz verwendet",
420
+ "res_audio": "Audio: ✅ hinzugefügt",
421
+ "res_file": "Datei: {path}",
422
+ "res_size": "Größe: {size}",
423
+ "res_quota": "Kostenloses Kontingent heute übrig: {remaining}/{max} (Videos, pro IP)",
424
+ "res_note": "_🆓 Bonus-Tool — kostenlos, außerhalb der Pollinations-Ökonomie. Nach dem Kontingent `polli_gen_video` verwenden._",
425
+ "success": "Kostenloses Video fertig ✓",
426
+ "degraded": "⚠️ Kostenloser Videodienst nicht verfügbar ({error}).\n💡 Ausweich: verwende `polli_gen_video` mit deinem Pollinations-Schlüssel."
427
+ },
428
+ "polli_login": {
429
+ "desc": "🔐 Startet einen schnellen Pollinations-Login (Device Flow) für den Benutzer. Zeigt einen kurzen Code + URL; der Benutzer meldet sich im Browser mit GitHub an, und das Plugin verbindet sich AUTOMATISCH nach Genehmigung (ein Toast bestätigt). Kein API-Schlüssel zum Ausführen nötig. Verwende dies, wenn der Benutzer sein Pollinations-Konto einfach verbinden möchte, ohne einen Schlüssel zu kopieren. Für einen permanenten Schlüssel sage ihm, `/poll connect sk_...` zu verwenden.",
430
+ "arg_wait": "Wenn true, wartet auf den Abschluss eines laufenden Logins und gibt das Endergebnis zurück (✅ verbunden / abgelaufen). Rufe zuerst ohne wait auf, um den Code anzuzeigen, dann erneut mit wait:true, nachdem du den Benutzer zur Autorisierung aufgefordert hast."
353
431
  }
354
432
  },
355
433
  "connect_response": {
@@ -359,7 +437,7 @@
359
437
  "resources": "### 📚 Links\n* **Website:** [pollinations.ai](https://pollinations.ai)\n* **Discord:** [Treten Sie der Community bei](https://discord.gg/8HqSRhJVmK)",
360
438
  "free_models_success": "Verfügbare Modelle: {models}",
361
439
  "free_models_error": "⚠️ Modelle konnten nicht abgerufen werden.",
362
- "onboarding": "## 🌸 Willkommen beim Pollinations Plugin\n\n**Sofortiger kostenloser Zugang — kein API-Schlüssel erforderlich**\nDieses Plugin bietet eine komplette Umgebung für Chat, Code-Generierung und Medienmanipulation (Bild-, Video-, Audio-Erstellung, Extraktions-Tools...).\n\nWähle ein `pollinations/free/*` Modell aus der Liste und beginne zu chatten.\n{freeText}\n\n---\n\n## 🚀 Multimedia-Agenten und Tools für Entwickler integriert\n\nClaude Opus, GPT-5, Gemini 3, Veo & Wan Video Gen, ElevenLabs Music... schalte die volle Leistung der Pollinations-API frei!\n\nDieses Plugin nutzt ein **BYOK** (Bring Your Own Key)-Modell: Durch die Verwendung deines eigenen API-Schlüssels erhält der OpenCode-Agent die Fähigkeit, direkt mit Premium-Tools zu interagieren und deine Multimedia-Dateien in deinem Arbeitsbereich zu erstellen.\n\n**Schritt 1 — Erstelle ein Konto mit $10 Gratis!**\nUnterstütze das Plugin, indem du diesen Link verwendest:\n👉 **https://enter.pollinations.ai/authorize?redirect_url=https://github.com/fkom13/opencode-pollinations-plugin**\n\n**Schritt 2 — Erstelle deinen API-Schlüssel**\nErstelle im Abschnitt **API Keys** auf `enter.pollinations.ai` einen **Secret** Schlüssel (`sk_...`).\n\n**Schritt 3 — Verbinde den Schlüssel**\n```bash\n/poll connect sk_dein_schluessel_hier\n```\n*(Der Schlüssel wird sofort in deiner OpenCode-Umgebung registriert und schaltet Pro-Modelle frei!)*\n\n---\n\n## 💰 Pollen-System und Tiers\nJeder Entwickler erhält einen **kostenlosen täglichen Zuschuss (Tier Grant)**, um diese Premium-Dienste zu nutzen:\n- 🦠 **Microbe** (0.1 Pollen/Tag) : Zum Freischalten: Registrieren\n- 🍄 **Spore** (1 Pollen/Tag) : Zum Freischalten: Automatische Verifizierung (Verifiziert bei der Anmeldung)\n- 🌱 **Seed** (3 Pollen/Tag) : Zum Freischalten: 8+ Dev-Punkte (Wöchentliches automatisches Upgrade)\n- 🌸 **Flower** (10 Pollen/Tag) : Zum Freischalten: Veröffentlichung einer Anwendung\n- 🍯 **Nectar** (20 Pollen/Tag) : Demnächst 🔮\n\nSobald das kostenlose Kontingent aufgebraucht ist, verbrauchst du Pollen aus deiner Wallet ($1 ≈ 1 Pollen, kein Abonnement, kein Verfall).\n\n**Brauchst du Hilfe?**\n- Tippe `/poll help` für die Befehlsliste ein.\n- Offizieller Discord: https://discord.gg/pollinations-ai-885844321461485618"
440
+ "onboarding": "## 🌸 Willkommen beim Pollinations-Plugin\n\n**Sofortiger kostenloser Zugang — kein Schlüssel nötig**\nDieses Plugin bietet eine vollständige Umgebung für Chat, Codegenerierung und Medienbearbeitung (Bild-, Video-, Audiogenerierung, Extraktionstools...).\n\nWähle ein `pollinations/free/*`-Modell aus der Liste und beginne zu chatten.\n{freeText}\n\n**🆓 Kostenlose Bonus-Tools (kein Schlüssel):** `gen_edit_image_free` und `gen_video_free` — generiere/bearbeite Bilder (~20/Tag) und Videos (~5/Tag) sofort, für jedes Modell.\n\n---\n\n## 🚀 Multimedia-Agenten und Tools für Entwickler\n\nClaude Opus, GPT-5, Gemini 3, Veo & Wan Videogenerierung, ElevenLabs Musik... entfessle die volle Kraft der Pollinations-API!\n\nDieses Plugin nutzt ein **BYOK**-Modell (Bring Your Own Key): mit deinem eigenen API-Schlüssel kann der OpenCode-Agent direkt mit Premium-Tools interagieren und deine Mediendateien in deinem Workspace erstellen.\n\n**Schritt 1 — Kostenloses Konto erstellen**\n👉 **https://enter.pollinations.ai**\n\n**Schritt 2 — API-Schlüssel generieren**\nErstelle im Bereich **API Keys** auf `enter.pollinations.ai` einen **Secret**-Schlüssel (`sk_...`).\n\n**Schritt 3 — Schlüssel verbinden**\n```bash\n/poll connect sk_dein_schluessel\n```\n*(Der Schlüssel wird sofort in deiner OpenCode-Umgebung registriert und schaltet Pro-Modelle frei!)*\n\n---\n\n## 💰 Pollen, Stufen & Quests\nDeine **Stufe** gibt dir ein stündliches kostenloses Pollen-Guthaben (z. B. 🌸 Flower 0,4/h). Zusätzlich belohnen dich **Quests** mit kostenlosem Pollen und allein die Nutzung dieses Plugins schließt mehrere rückwirkend ab! Siehe `/poll quests`.\n\nWenn das kostenlose Pollen aufgebraucht ist, zahlst du aus deiner Wallet ($1 ≈ 1 Pollen, kein Abo, kein Ablauf).\n\n**Hilfe?** Gib `/poll help` ein. Offizieller Discord: https://discord.gg/pollinations-ai-885844321461485618"
363
441
  },
364
442
  "cost_guard": {
365
443
  "cost_validated_max": "💰 Kosten validiert (Theoretisches Max: {maxCost})",
@@ -370,5 +448,15 @@
370
448
  "reason_fixed": "Die geschätzten Kosten dieser Aktion ({cost}) überschreiten das Limit ({limit}).",
371
449
  "estimated_max": "💰 Geschätzte Durchschnittskosten: {cost} (Max: {maxCost})",
372
450
  "estimated": "💰 Geschätzte Kosten: {cost}"
451
+ },
452
+ "tier": {
453
+ "condition": {
454
+ "signup": "Einfach registrieren!",
455
+ "auto_verify": "Automatische Verifizierung",
456
+ "community": "Aktives Community-Mitglied",
457
+ "publish_app": "Eine App veröffentlichen",
458
+ "top_contributor": "Top-Mitwirkender",
459
+ "special": "Speziell / nur auf Einladung"
460
+ }
373
461
  }
374
462
  }
@@ -5,7 +5,7 @@
5
5
  "alias_note": "*(The alias `/poll` is supported and recommended instead of `/pollinations` !)*",
6
6
  "mode_usage": "**Mode & Usage**\n- **`/poll mode [mode]`**: Change mode (manual, alwaysfree, pro).\n- **`/poll usage [full]`**: Display dashboard (full = details).\n- **`/poll fallback <main> [agent]`**: Configure Safety Net.",
7
7
  "configuration": "**Configuration**\n- **`/poll config [key] [value]`**:\n - `lang`: en, fr, etc.\n - `status_gui`: none, alert, all\n - `logs_gui`: none, error, verbose\n - `threshold_tier` / `threshold_wallet`: 0-100\n - `status_bar`: true/false\n - `cost_estimator`: true/false (show cost in outputs)\n - `enablePaidTools`: true/false (wallet protection)\n - `costThreshold`: limit in pollen (default: 0.15)\n - `costConfirmationRequired`: true/false (spend confirmation)",
8
- "models_pricing": "**Models & Pricing**\n- **`/poll models [type]`**: List models (type: image, video, audio, text)\n- **`/poll pricing`**: Detailed pricing table\n- **`/poll infos`**: Explanations on Tiers and Pollen\n\n> 💡 **RMBG keys**: Use the `rmbg_keys` tool (works with any model)."
8
+ "models_pricing": "**Models & Pricing**\n- **`/poll models [type]`**: List models (type: image, video, audio, text)\n- **`/poll pricing`**: Detailed pricing table\n- **`/poll infos`**: Explanations on Tiers and Pollen\n- **`/poll quests`**: View your quests & claimable free Pollen\n\n> 💡 **RMBG keys**: Use the `rmbg_keys` tool (works with any model)."
9
9
  },
10
10
  "config": {
11
11
  "title": "## ⚙️ Pollinations Configuration (v{version})",
@@ -53,7 +53,7 @@
53
53
  "tier": "- **Tier:** {emoji} {tier} (Limit: {limit} 🌻)\n",
54
54
  "quota": "- **Period:** {remaining} spent / {limit} total limit\n",
55
55
  "usage_bar": "- **Usage:** {bar}\n",
56
- "wallet": "- **Wallet:** {balance} 🌻 remaining\n\n",
56
+ "wallet": "- **Balance (Paid + Quest):** {balance} 🌻\n\n",
57
57
  "reset": "### 🕒 Reset Info\n- **Next Reset:** {date} (in {duration})\n\n",
58
58
  "restricted_key": "⚠️ Restricted API key. Details unavailable.\n",
59
59
  "period_detail": "### 📈 Period detail (since {time})\n",
@@ -101,20 +101,34 @@
101
101
  "features_free": "**🛠️ Integrated Free Tools (Always Available) :**\n- `gen_qrcode` / `gen_diagram` / `gen_palette` : Visuals and dev utilities.\n- `remove_background` : Native background removal.\n- `extract_frames` / `extract_audio` : Fast media extraction.\n- `file_to_url` : Instant online hosting of local files.",
102
102
  "features_pro": "**💎 Pollinations Tools (Premium - Automated with Key) :**\n- `polli_gen_image` : Image gen (Flux, Seedream, Gemini) + Image-to-Image.\n- `polli_gen_video` : Text-to-video / Image-to-video (Veo, Wan, LTX...).\n- `polli_gen_audio`/`polli_stt` : Whisper STT, ElevenLabs TTS.\n- `polli_gen_music` : Generative music engine.\n- `polli_web_search` : Connected web search.",
103
103
  "features_config": "- **Granular configuration**, mode and token management, tool cost protections...",
104
- "tiers_title": "> **Your tiers:** {emoji} {tier}",
104
+ "tiers_title": "> **Your tier:** {emoji} {tier}",
105
105
  "about": "## 🌍 What is pollinations.ai ?\npollinations.ai is an open-source AI platform built by and for the community. We provide a unified API for Image, Text, Audio, and Video. Everything is open: our code, roadmap, conversations. Hundreds of devs are already building apps, games, bots, and crazy experiments with us. Join us!\n\nNo black boxes. No vendor lock-in. Just a friendly API and a Discord full of helpful people.",
106
- "levels_title": "## 📈 Upgrade Your Tier",
106
+ "levels_title": "## 📈 Tiers & Hourly Pollen",
107
107
  "levels_list": "For developers creating with pollinations.ai. Level up to earn more Pollen.\n\n{tier_table}\n\n> ⚠️ **v6.2.4+**: Quotas are now **hourly** (reset at :00). Daily quota is an estimate (~24h × hourly rate).",
108
108
  "beta_note": "✨ *We are in beta! Learning what works best for our community.*",
109
109
  "pollen_title": "## 💎 What is Pollen ?",
110
110
  "pollen_get": "Running AI models costs money. Pollen is our way to keep servers running without ads or selling data. A simple, unified credit for all models — predictable, transparent, no surprises.\n\n**$1 ≈ 1 Pollen** (prices subject to change). You spend it on API calls.",
111
- "pollen_spend": "## 🛒 How to get Pollen ?\nYou can add Pollen by participating in the community, or buying it directly on the dashboard."
111
+ "pollen_spend": "## 🛒 How to get Pollen ?\nYou can add Pollen by participating in the community, or buying it directly on the dashboard.",
112
+ "quests": "## 🎯 Quests — Earn Free Pollen\nPollen is now mainly earned by completing **Quests**. Good news: just using this plugin (text, image & audio models) completes several quests **retroactively** — you may already have free Pollen waiting!\n\n👉 Review & claim your rewards on the [dashboard](https://enter.pollinations.ai). _Claiming is dashboard-only._\n\n> 💡 Quest Pollen works on all standard models. 💎 Paid-only models still require purchased Pollen.",
113
+ "hourly_note": "> ⚠️ Quotas are **hourly** (refill at :00). Daily figure is an estimate (~24h × hourly rate)."
112
114
  },
113
115
  "pricing_units": {
114
116
  "tokens": "~tokens",
115
117
  "img": "🌻/img",
116
118
  "s": "🌻/s",
117
119
  "tok": "🌻/tok"
120
+ },
121
+ "login": {
122
+ "prompt": "## 🔐 Quick Login (Device Flow)\n\n**1.** Open: **{uri_complete}**\n_(or go to {uri} and enter the code below)_\n\n**2.** Your code: **`{code}`**\n\n**3.** Sign in with GitHub, then on the consent form:\n • ✅ Keep **Profile** + **Usage** granted (needed for quota, quests & always-free)\n • 💡 For an **unlimited key**: clear the **Budget** field (→ Unlimited) and the **Expiry** field (→ Never)\n • Click **Authorize**\n\nThe plugin is waiting and connects **automatically** once you approve (a toast confirms ✅).\n\n💡 _Prefer a manually-created key? Use `/poll connect sk_...` instead._",
123
+ "already_running": "⏳ A login is already in progress. Finish authorizing in your browser, or wait a moment.",
124
+ "code_error": "❌ Could not start login: {error}\n💡 You can still use `/poll connect sk_...` manually.",
125
+ "expired": "⏱️ Login code expired. Run /poll login again.",
126
+ "success_toast": "✅ Connected via device login! Pro models unlocked.",
127
+ "validate_error": "❌ Login key validation failed: {error}",
128
+ "nothing_pending": "ℹ️ No login in progress. Run polli_login (without wait) first to get a code.",
129
+ "opened": "🌐 Opening your browser to authorize…",
130
+ "still_waiting": "⏳ Still waiting for your authorization in the browser. Once you approve, call polli_login with wait:true again to confirm.",
131
+ "success_limited": "⚠️ Connected, but your key looks limited (you didn't grant Profile/Usage). Quota display, always-free fallback and wallet control may not work. Re-run login and grant Profile + Usage, or use a full key."
118
132
  }
119
133
  },
120
134
  "proxy": {
@@ -349,6 +363,70 @@
349
363
  "err_auth": "❌ Invalid or unauthorized API key.",
350
364
  "err_large": "❌ Audio file too large.\n💡 Try compressing or splitting the audio.",
351
365
  "err_stt": "❌ Transcription error: {error}"
366
+ },
367
+ "polli_quests": {
368
+ "desc": "List your Pollinations Quests and show how much free Pollen you can claim. Read-only. Completing quests (including just using this plugin) earns Pollen; claiming is done on the dashboard.",
369
+ "arg_filter": "Filter: 'all' (default), 'available' (open quests), or 'claimable' (earned but not yet claimed).",
370
+ "no_key": "🔑 No API key configured. Use `/poll connect <key>` first.",
371
+ "error": "⚠️ Could not fetch quests: {error}",
372
+ "empty": "No quests found for this account.",
373
+ "title": "## 🎯 Pollinations Quests",
374
+ "claimable": "> 🎁 **You have {count} reward(s) = {pollen} 🌻 waiting to be claimed!**",
375
+ "none_claimable": "✅ Nothing to claim right now. Keep using the plugin to earn more!",
376
+ "claim_hint": "👉 Claim your rewards on the [dashboard](https://enter.pollinations.ai) (claiming is dashboard-only).",
377
+ "legend": "_Legend: 🎁 ready to claim · ✅ claimed · ✔️ completed · 🔜 coming soon · ⬜ open_"
378
+ },
379
+ "gen_edit_image_free": {
380
+ "desc": "🆓 BONUS — Always-free image generation & editing. No Pollinations key required, works for any model. Generate from a text prompt, or EDIT 1-3 images by passing them in `images`. Backed by a public playground from your own IP: ~20 free requests/day (generation and editing SHARE the same daily counter). Past the quota, use `polli_gen_image` (Pollinations).",
381
+ "arg_prompt": "Description of the image to generate, or the edit instruction when editing.",
382
+ "arg_images": "Optional. 1 to 3 images to EDIT (local path, http(s) URL, or data: URI). If provided, switches to edit mode.",
383
+ "arg_aspect": "Aspect ratio for generation (16:9 default, 1:1, 9:16). Ignored when editing.",
384
+ "arg_save_to": "Custom output directory or full file path.",
385
+ "arg_filename": "Custom filename (without extension).",
386
+ "too_many_images": "❌ Edit mode accepts 1 to 3 images maximum.",
387
+ "quota_exhausted": "🆓 Daily free quota reached ({max}/day for this IP, shared gen+edit). It resets every 24h.\n💡 Meanwhile, use `polli_gen_image` with your Pollinations key.",
388
+ "working": "Free {mode} in progress…",
389
+ "failed": "Free image failed: {error}",
390
+ "api_error": "⚠️ Free image service returned an error: {error}\n💡 Try again, or use `polli_gen_image` (Pollinations).",
391
+ "res_title_gen": "🆓 Free Image Generated",
392
+ "res_title_edit": "🆓 Free Image Edited",
393
+ "res_prompt": "Prompt: {prompt}",
394
+ "res_file": "File: {path}",
395
+ "res_size": "Size: {size}",
396
+ "res_quota": "Free quota left today: {remaining}/{max} (shared gen+edit, per IP)",
397
+ "res_note": "_🆓 Bonus tool — free, outside the Pollinations economy. Resolution 1344×768. Past the daily quota, use `polli_gen_image`._",
398
+ "success": "Free {mode} done ✓",
399
+ "degraded": "⚠️ Free image service unavailable ({error}).\n💡 Fallback: use `polli_gen_image` / `polli_gen_video` with your Pollinations key."
400
+ },
401
+ "gen_video_free": {
402
+ "desc": "🆓 BONUS — Always-free video generation. No Pollinations key required, works for any model. Text-to-video, with OPTIONAL first-frame `image` and OPTIONAL `audio` to join. Backed by a public Pruna playground from your own IP: ~5 free videos/day (separate from the image quota). Async generation (may take 1-3 min). Past the quota, use `polli_gen_video` (Pollinations).",
403
+ "arg_prompt": "Description of the video (motion, camera, scene, audio cues).",
404
+ "arg_image": "Optional. A first-frame / reference image (local path, http(s) URL, or data: URI).",
405
+ "arg_audio": "Optional. An audio track to join (local path, http(s) URL, or data: URI).",
406
+ "arg_duration": "Duration in seconds (default: 5, max: 10).",
407
+ "arg_aspect": "Aspect ratio (16:9 default, 9:16, 1:1).",
408
+ "arg_resolution": "Resolution (480p, 720p default, 1080p).",
409
+ "arg_save_to": "Custom output directory or full file path.",
410
+ "arg_filename": "Custom filename (without extension).",
411
+ "quota_exhausted": "🆓 Daily free video quota reached ({max}/day for this IP). It resets every 24h.\n💡 Meanwhile, use `polli_gen_video` with your Pollinations key.",
412
+ "working": "Free video generation started (async, 1-3 min)…",
413
+ "failed": "Free video failed: {error}",
414
+ "api_error": "⚠️ Free video service returned an error: {error}\n💡 Try again, or use `polli_gen_video` (Pollinations).",
415
+ "res_title": "🆓 Free Video Generated",
416
+ "res_prompt": "Prompt: {prompt}",
417
+ "res_params": "Params: {duration}s · {resolution} · {aspect}",
418
+ "res_image": "Image: ✅ used as reference",
419
+ "res_audio": "Audio: ✅ joined",
420
+ "res_file": "File: {path}",
421
+ "res_size": "Size: {size}",
422
+ "res_quota": "Free quota left today: {remaining}/{max} (videos, per IP)",
423
+ "res_note": "_🆓 Bonus tool — free, outside the Pollinations economy. Past the daily quota, use `polli_gen_video`._",
424
+ "success": "Free video done ✓",
425
+ "degraded": "⚠️ Free video service unavailable ({error}).\n💡 Fallback: use `polli_gen_video` with your Pollinations key."
426
+ },
427
+ "polli_login": {
428
+ "desc": "🔐 Start a quick Pollinations login (device flow) for the user. Shows a short code + URL; the user signs in with GitHub in their browser, and the plugin connects AUTOMATICALLY once approved (a toast confirms). No API key needed to run this. Use when the user wants to connect their Pollinations account easily, without copy-pasting a key. For a permanent key instead, tell them to use `/poll connect sk_...`.",
429
+ "arg_wait": "If true, waits for an in-progress login to complete and returns the final result (✅ connected / expired). Call once without wait to show the code, then again with wait:true after telling the user to authorize."
352
430
  }
353
431
  },
354
432
  "connect_response": {
@@ -358,7 +436,7 @@
358
436
  "resources": "### 📚 Resources\n* **Website:** [pollinations.ai](https://pollinations.ai)\n* **Discord:** [Join the Community](https://discord.gg/8HqSRhJVmK)\n* **Top-Up Wallet:** [Recharge Balance](https://pollinations.ai/topup)",
359
437
  "free_models_success": "Available free models: {models}",
360
438
  "free_models_error": "⚠️ Couldn't fetch free models.",
361
- "onboarding": "## 🌸 Welcome to the Pollinations Plugin\n\n**Immediate free access — no key required**\nThis plugin provides a complete environment for chat, code generation, and media manipulation (Image, Video, Audio Generation, Extraction Tools...).\n\nSelect a `pollinations/free/*` model from the list and start chatting.\n{freeText}\n\n---\n\n## 🚀 Multimedia Agents and Tools Integrated for Developers\n\nClaude Opus, GPT-5, Gemini 3, Veo & Wan Video Gen, ElevenLabs Music... unlock the full power of the Pollinations API!\n\nThis plugin adopts a **BYOK** (Bring Your Own Key) model: by using your own API key, the OpenCode Agent gains the ability to interact directly with Premium tools, creating your multimedia files in your Workspace.\n\n**Step 1 — Create an account with $10 Free!**\nSupport the plugin by using this link:\n👉 **https://enter.pollinations.ai/authorize?redirect_url=https://github.com/fkom13/opencode-pollinations-plugin**\n\n**Step 2 — Generate your API key**\nIn the **API Keys** section on `enter.pollinations.ai`, create a **Secret** key (`sk_...`).\n\n**Step 3 — Connect the key**\n```bash\n/poll connect sk_your_key_here\n```\n*(The key is immediately registered in your OpenCode environment, unlocking Pro models!)*\n\n---\n\n## 💰 Pollen System and Tiers\nEvery developer receives a **Free Daily Grant (Tier Grant)** to use these Premium services:\n- 🦠 **Microbe** (0.1 pollen/day) : To unlock: Sign up\n- 🍄 **Spore** (1 pollen/day) : To unlock: Automatic verification (Verified upon signup)\n- 🌱 **Seed** (3 pollen/day) : To unlock: 8+ dev points (Weekly automatic upgrade)\n- 🌸 **Flower** (10 pollen/day) : To unlock: Publish an application\n- 🍯 **Nectar** (20 pollen/day) : Coming soon 🔮\n\nOnce the free quota is exhausted, you consume Pollen from your wallet ($1 ≈ 1 Pollen, no subscription, no expiration).\n\n**Need help?**\n- Type `/poll help` for the list of commands.\n- Official Discord: https://discord.gg/pollinations-ai-885844321461485618"
439
+ "onboarding": "## 🌸 Welcome to the Pollinations Plugin\n\n**Immediate free access — no key required**\nThis plugin provides a complete environment for chat, code generation, and media manipulation (Image, Video, Audio Generation, Extraction Tools...).\n\nSelect a `pollinations/free/*` model from the list and start chatting.\n{freeText}\n\n**🆓 Bonus free tools (no key needed):** `gen_edit_image_free` and `gen_video_free` — generate/edit images (~20/day) and videos (~5/day) right away, for any model.\n\n---\n\n## 🚀 Multimedia Agents and Tools for Developers\n\nClaude Opus, GPT-5, Gemini 3, Veo & Wan Video Gen, ElevenLabs Music... unlock the full power of the Pollinations API!\n\nThis plugin uses a **BYOK** (Bring Your Own Key) model: with your own API key, the OpenCode Agent can interact directly with Premium tools, creating your media files in your Workspace.\n\n**Step 1 — Create a free account**\n👉 **https://enter.pollinations.ai**\n\n**Step 2 — Generate your API key**\nIn the **API Keys** section on `enter.pollinations.ai`, create a **Secret** key (`sk_...`).\n\n**Step 3 — Connect the key**\n```bash\n/poll connect sk_your_key_here\n```\n*(The key is immediately registered in your OpenCode environment, unlocking Pro models!)*\n\n---\n\n## 💰 Pollen, Tiers & Quests\nYour **tier** gives you an hourly free Pollen grant (e.g. 🌸 Flower 0.4/h). On top of that, **Quests** reward you with free Pollen and simply using this plugin completes several of them retroactively! Check `/poll quests`.\n\nOnce free Pollen runs out, you spend from your wallet ($1 ≈ 1 Pollen, no subscription, no expiration).\n\n**Need help?** Type `/poll help`. Official Discord: https://discord.gg/pollinations-ai-885844321461485618"
362
440
  },
363
441
  "cost_guard": {
364
442
  "cost_validated_max": "💰 Cost validated (Max theoretical: {maxCost})",
@@ -369,5 +447,15 @@
369
447
  "reason_fixed": "The estimated cost of this action ({cost}) exceeds the defined threshold ({limit}).",
370
448
  "estimated_max": "💰 Average estimated cost: {cost} (Max: {maxCost})",
371
449
  "estimated": "💰 Estimated cost: {cost}"
450
+ },
451
+ "tier": {
452
+ "condition": {
453
+ "signup": "Just register",
454
+ "auto_verify": "Automatic verification",
455
+ "community": "Active community member",
456
+ "publish_app": "Publish an app",
457
+ "top_contributor": "Top contributor",
458
+ "special": "Special / invite-only"
459
+ }
372
460
  }
373
461
  }