opencode-pollinations-plugin 6.4.5 → 6.4.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.
- package/dist/locales/de.json +24 -9
- package/dist/locales/en.json +24 -9
- package/dist/locales/es.json +24 -9
- package/dist/locales/fr.json +23 -8
- package/dist/locales/it.json +24 -9
- package/dist/locales/zh.json +24 -9
- package/dist/server/commands.js +17 -10
- package/dist/server/connect-response.js +15 -9
- package/dist/server/quota.js +10 -10
- package/dist/server/toast.d.ts +1 -0
- package/dist/server/toast.js +7 -2
- package/dist/tools/index.js +8 -0
- package/dist/tools/pollinations/gen_edit_image_free.js +4 -3
- package/dist/tools/pollinations/gen_video_free.js +3 -2
- package/dist/tools/pollinations/image_enhancer.d.ts +2 -0
- package/dist/tools/pollinations/image_enhancer.js +62 -0
- package/dist/tools/pollinations/image_upscaler.d.ts +2 -0
- package/dist/tools/pollinations/image_upscaler.js +61 -0
- package/dist/tools/pollinations/imgtools/clients.d.ts +11 -0
- package/dist/tools/pollinations/imgtools/clients.js +182 -0
- package/dist/tools/pollinations/imgtools/config.d.ts +42 -0
- package/dist/tools/pollinations/imgtools/config.js +81 -0
- package/dist/tools/pollinations/imgtools/crypto.d.ts +4 -0
- package/dist/tools/pollinations/imgtools/crypto.js +34 -0
- package/dist/tools/pollinations/imgtools/helpers.d.ts +24 -0
- package/dist/tools/pollinations/imgtools/helpers.js +111 -0
- package/dist/tools/pollinations/object_remover.d.ts +2 -0
- package/dist/tools/pollinations/object_remover.js +62 -0
- package/dist/tools/power/remove_background.js +16 -60
- package/package.json +1 -1
package/dist/locales/de.json
CHANGED
|
@@ -116,19 +116,19 @@
|
|
|
116
116
|
"infos": {
|
|
117
117
|
"title": "## 🍯💚 POLLINATIONS OPENCODE PLUGIN 💚🍯\n\nWillkommen **{name}** beim Pollinations OpenCode Plugin!\n\nDieses Plugin ermöglicht es, Code und Bilder zu generieren, Videos zu analysieren und nahtlos mit den besten KI-Modellen zu interagieren. Greifen Sie über Chat, Refactoring oder Terminal auf erstklassige LLMs zu.",
|
|
118
118
|
"features_title": "**Was dieses Plugin Ihnen bietet! :**",
|
|
119
|
-
"features_free": "**🛠️
|
|
119
|
+
"features_free": "**🛠️ Kostenlose Tools (Immer verfugbar):**\n- `gen_qrcode` / `gen_diagram` / `gen_palette` : Visuals und Dev-Tools.\n- `remove_background` : Hintergrundentfernung.\n- `extract_frames` / `extract_audio` : Medien-Extraktion.\n- `file_to_url` : Online-Hosting.\n- `gen_edit_image_free` : Kostenlose Bild-Generierung & Bearbeitung (~20/Tag).\n- `gen_video_free` : Kostenlose Video-Generierung (~5/Tag).\n- `object_remover` : Suppression d’objets par prompt (gratuit, direct).\n- `image_upscaler` : Agrandissement 2x/4x (gratuit, direct).\n- `image_enhancer` : Amélioration IA d’image (gratuit, direct).",
|
|
120
120
|
"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.",
|
|
121
121
|
"features_config": "- **Granulare Konfiguration**, Modus- und Token-Management, Kostenschutz...",
|
|
122
|
-
"tiers_title": "> **
|
|
122
|
+
"tiers_title": "> **Dein Quest Pollen Refill:** {emoji} {tier}",
|
|
123
123
|
"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.",
|
|
124
|
-
"levels_title": "## 📈
|
|
125
|
-
"levels_list": "
|
|
126
|
-
"beta_note": "✨ *Wir sind in der Beta! Wir lernen, was am besten funktioniert.*",
|
|
124
|
+
"levels_title": "## 📈 Stundlicher Quest Pollen Refill",
|
|
125
|
+
"levels_list": "Dein stundlicher Refill hangt von deinem Beitragslevel ab. Quest Pollen sammelt sich an und verfallt nie (solange dein Konto aktiv bleibt).\n\n{tier_table}\n\n> ⚠️ Der Refill erfolgt **stundlich** (Reset um :00). Die Tagessumme ist eine Schatzung (~24h x Stundensatz).",
|
|
127
126
|
"pollen_title": "## 💎 Was ist Pollen?",
|
|
128
127
|
"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.",
|
|
129
|
-
"pollen_spend": "## 🛒 Wie
|
|
128
|
+
"pollen_spend": "## 🛒 Wie bekomme ich Pollen?\n1. 🎯 **Quests** — Erledige Aufgaben im Dashboard (`/poll quests`).\n2. 💳 **Kaufen** — Per Kreditkarte auf enter.pollinations.ai.\n3. 🌻 **Dev Earnings** — Aktiviere Entwickler-Einnahmen auf deinem App Key.",
|
|
130
129
|
"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.",
|
|
131
|
-
"hourly_note": "> ⚠️ Kontingente sind **stündlich** (Auffüllung um :00). Der Tageswert ist eine Schätzung (~24h × Stundenrate)."
|
|
130
|
+
"hourly_note": "> ⚠️ Kontingente sind **stündlich** (Auffüllung um :00). Der Tageswert ist eine Schätzung (~24h × Stundenrate).",
|
|
131
|
+
"get_started": "## 🔑 Los gehts\n\n**1.** Erstelle ein kostenloses Konto auf enter.pollinations.ai\n**2.** Verbinde dich mit 1 Klick: `/poll login`\n**3.** Oder verwende einen manuellen Key: `/poll connect sk_...`\n\nGib `/poll help` ein fur alle Befehle."
|
|
132
132
|
},
|
|
133
133
|
"pricing_units": {
|
|
134
134
|
"tokens": "~tokens",
|
|
@@ -445,13 +445,28 @@
|
|
|
445
445
|
"polli_login": {
|
|
446
446
|
"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.",
|
|
447
447
|
"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."
|
|
448
|
+
},
|
|
449
|
+
"object_remover": {
|
|
450
|
+
"file_not_found": "❗ File not found: {path}",
|
|
451
|
+
"no_result": "❗ No result received.",
|
|
452
|
+
"error": "❗ Error: {error}"
|
|
453
|
+
},
|
|
454
|
+
"image_upscaler": {
|
|
455
|
+
"file_not_found": "❗ File not found: {path}",
|
|
456
|
+
"no_result": "❗ No result received.",
|
|
457
|
+
"error": "❗ Error: {error}"
|
|
458
|
+
},
|
|
459
|
+
"image_enhancer": {
|
|
460
|
+
"file_not_found": "❗ File not found: {path}",
|
|
461
|
+
"no_result": "❗ No result received.",
|
|
462
|
+
"error": "❗ Error: {error}"
|
|
448
463
|
}
|
|
449
464
|
},
|
|
450
465
|
"connect_response": {
|
|
451
466
|
"title_key": "## 🍯💚 POLLINATIONS PLUGIN VERBUNDEN 💚🍯\n\nWillkommen **{name}** beim Pollinations Agent Plugin!\n**Aktueller Modus**: `{mode}`",
|
|
452
|
-
"tools_intro": "### 🚀 Multimedia Tools\n\nDieses Plugin ermöglicht es, Code und Bilder zu generieren, Videos zu analysieren und mit den besten KI-Modellen zu interagieren.\n\n**🛠️ Kostenlose Tools:**\n- `gen_qrcode` / `gen_diagram` / `gen_palette`\n- `remove_background`\n- `extract_frames` / `extract_audio`\n- `file_to_url`\n\n**💎 Premium Tools:**\n- `polli_gen_image`\n- `polli_gen_video`\n- `polli_gen_audio`/`polli_stt`\n- `polli_gen_music`\n- `polli_web_search`",
|
|
467
|
+
"tools_intro": "### 🚀 Multimedia Tools\n\nDieses Plugin ermöglicht es, Code und Bilder zu generieren, Videos zu analysieren und mit den besten KI-Modellen zu interagieren.\n\n**🛠️ Kostenlose Tools:**\n- `gen_qrcode` / `gen_diagram` / `gen_palette`\n- `remove_background`\n- `extract_frames` / `extract_audio`\n- `file_to_url`\n- `gen_edit_image_free` (Bild-Gen & Edit, ~20/Tag)\n- `gen_video_free` (Video-Gen, ~5/Tag)\n- `object_remover`\n- `image_upscaler`\n- `image_enhancer`\n\n**💎 Premium Tools:**\n- `polli_gen_image`\n- `polli_gen_video`\n- `polli_gen_audio`/`polli_stt`\n- `polli_gen_music`\n- `polli_web_search`",
|
|
453
468
|
"terminal_cmds": "### 💻 Terminal Befehle\nVerwenden Sie `/poll help` um alle Befehle anzuzeigen.",
|
|
454
|
-
"resources": "### 📚
|
|
469
|
+
"resources": "### 📚 Ressourcen\n* **Dashboard:** enter.pollinations.ai\n* **Discord:** Community beitreten\n* **Plugin:** github.com/fkom13/opencode-pollinations-plugin",
|
|
455
470
|
"free_models_success": "Verfügbare Modelle: {models}",
|
|
456
471
|
"free_models_error": "⚠️ Modelle konnten nicht abgerufen werden.",
|
|
457
472
|
"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"
|
package/dist/locales/en.json
CHANGED
|
@@ -115,19 +115,19 @@
|
|
|
115
115
|
"infos": {
|
|
116
116
|
"title": "## 🍯💚 POLLINATIONS OPENCODE PLUGIN 💚🍯\n\nWelcome **{name}** to the Pollinations OpenCode plugin!\n\nThis plugin empowers you to generate code, images, analyze videos, and interact with top-tier AI models seamlessly within your dev environment. Access state-of-the-art LLMs via chat, refactoring, or terminal.",
|
|
117
117
|
"features_title": "**What this plugin brings to you! :**",
|
|
118
|
-
"features_free": "**🛠️ Integrated Free Tools (Always Available)
|
|
118
|
+
"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.\n- `gen_edit_image_free` : Free image gen & edit (~20/day).\n- `gen_video_free` : Free video gen (~5/day).\n- `object_remover` : Suppression d’objets par prompt (gratuit, direct).\n- `image_upscaler` : Agrandissement 2x/4x (gratuit, direct).\n- `image_enhancer` : Amélioration IA d’image (gratuit, direct).",
|
|
119
119
|
"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.",
|
|
120
120
|
"features_config": "- **Granular configuration**, mode and token management, tool cost protections...",
|
|
121
|
-
"tiers_title": "> **Your
|
|
121
|
+
"tiers_title": "> **Your Quest Pollen refill:** {emoji} {tier}",
|
|
122
122
|
"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.",
|
|
123
|
-
"levels_title": "## 📈
|
|
124
|
-
"levels_list": "
|
|
125
|
-
"beta_note": "✨ *We are in beta! Learning what works best for our community.*",
|
|
123
|
+
"levels_title": "## 📈 Hourly Quest Pollen Refill",
|
|
124
|
+
"levels_list": "Your hourly refill depends on your contribution level. Quest Pollen accumulates and never expires (as long as your account stays active).\n\n{tier_table}\n\n> ⚠️ Refill is **hourly** (reset at :00). Daily total is an estimate (~24h × hourly rate).",
|
|
126
125
|
"pollen_title": "## 💎 What is Pollen ?",
|
|
127
126
|
"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.",
|
|
128
|
-
"pollen_spend": "## 🛒 How to get Pollen
|
|
127
|
+
"pollen_spend": "## 🛒 How to get Pollen?\n1. 🎯 **Quests** — Complete tasks on the dashboard (`/poll quests`).\n2. 💳 **Buy** — By credit card at enter.pollinations.ai.\n3. 🌻 **Dev earnings** — Enable developer earnings on your App Key.",
|
|
129
128
|
"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.",
|
|
130
|
-
"hourly_note": "> ⚠️ Quotas are **hourly** (refill at :00). Daily figure is an estimate (~24h × hourly rate)."
|
|
129
|
+
"hourly_note": "> ⚠️ Quotas are **hourly** (refill at :00). Daily figure is an estimate (~24h × hourly rate).",
|
|
130
|
+
"get_started": "## 🔑 Getting Started\n\n**1.** Create a free account at enter.pollinations.ai\n**2.** Connect in 1 click: `/poll login`\n**3.** Or use a manual key: `/poll connect sk_...`\n\nType `/poll help` for all commands."
|
|
131
131
|
},
|
|
132
132
|
"pricing_units": {
|
|
133
133
|
"tokens": "~tokens",
|
|
@@ -444,13 +444,28 @@
|
|
|
444
444
|
"polli_login": {
|
|
445
445
|
"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_...`.",
|
|
446
446
|
"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."
|
|
447
|
+
},
|
|
448
|
+
"object_remover": {
|
|
449
|
+
"file_not_found": "❗ File not found: {path}",
|
|
450
|
+
"no_result": "❗ No result received.",
|
|
451
|
+
"error": "❗ Error: {error}"
|
|
452
|
+
},
|
|
453
|
+
"image_upscaler": {
|
|
454
|
+
"file_not_found": "❗ File not found: {path}",
|
|
455
|
+
"no_result": "❗ No result received.",
|
|
456
|
+
"error": "❗ Error: {error}"
|
|
457
|
+
},
|
|
458
|
+
"image_enhancer": {
|
|
459
|
+
"file_not_found": "❗ File not found: {path}",
|
|
460
|
+
"no_result": "❗ No result received.",
|
|
461
|
+
"error": "❗ Error: {error}"
|
|
447
462
|
}
|
|
448
463
|
},
|
|
449
464
|
"connect_response": {
|
|
450
465
|
"title_key": "## 🍯💚 POLLINATIONS PLUGIN CONNECTED 💚🍯\n\nWelcome **{name}** to the Pollinations Agent plugin!\n**Current Mode**: `{mode}`",
|
|
451
|
-
"tools_intro": "### 🚀 Multimedia Tools Integrated to Development\n\nThis plugin allows you to generate code, images, analyze videos and interact with the best AI models seamlessly. Access state-of-the-art LLMs via chat, refactoring, or terminal.\n\n**What this plugin brings to you:**\n\n**🛠️ Free Integrated Tools:**\n- `gen_qrcode` / `gen_diagram` / `gen_palette`\n- `remove_background`\n- `extract_frames` / `extract_audio`\n- `file_to_url`\n\n**💎 Pollinations Tools (Premium):**\n- `polli_gen_image`\n- `polli_gen_video`\n- `polli_gen_audio`/`polli_stt`\n- `polli_gen_music`\n- `polli_web_search`",
|
|
466
|
+
"tools_intro": "### 🚀 Multimedia Tools Integrated to Development\n\nThis plugin allows you to generate code, images, analyze videos and interact with the best AI models seamlessly. Access state-of-the-art LLMs via chat, refactoring, or terminal.\n\n**What this plugin brings to you:**\n\n**🛠️ Free Integrated Tools (Always Available):**\n- `gen_qrcode` / `gen_diagram` / `gen_palette`\n- `remove_background`\n- `extract_frames` / `extract_audio`\n- `file_to_url`\n- `gen_edit_image_free` (image gen & edit, ~20/day)\n- `gen_video_free` (video gen, ~5/day)\n- `object_remover`\n- `image_upscaler`\n- `image_enhancer`\n\n**💎 Pollinations Tools (Premium):**\n- `polli_gen_image`\n- `polli_gen_video`\n- `polli_gen_audio`/`polli_stt`\n- `polli_gen_music`\n- `polli_web_search`",
|
|
452
467
|
"terminal_cmds": "### 💻 Terminal Commands\nUse `/poll help` to see all commands. Try `/poll models` to discover the catalog or `/poll usage` to tracking remaining pollen.",
|
|
453
|
-
"resources": "### 📚 Resources\n* **
|
|
468
|
+
"resources": "### 📚 Resources\n* **Dashboard:** enter.pollinations.ai\n* **Discord:** Join the Community\n* **Plugin:** github.com/fkom13/opencode-pollinations-plugin",
|
|
454
469
|
"free_models_success": "Available free models: {models}",
|
|
455
470
|
"free_models_error": "⚠️ Couldn't fetch free models.",
|
|
456
471
|
"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"
|
package/dist/locales/es.json
CHANGED
|
@@ -116,19 +116,19 @@
|
|
|
116
116
|
"infos": {
|
|
117
117
|
"title": "## 🍯💚 PLUGIN POLLINATIONS OPENCODE 💚🍯\n\n¡Bienvenido **{name}** al plugin Pollinations OpenCode!\n\nEste plugin te permite generar código, imágenes, analizar videos e interactuar con los mejores modelos de IA sin problemas desde tu entorno de desarrollo. Accede a LLMs avanzados a través del chat, reestructuración o terminal.",
|
|
118
118
|
"features_title": "**¡Lo que este plugin trae para ti!:**",
|
|
119
|
-
"features_free": "**🛠️ Herramientas
|
|
119
|
+
"features_free": "**🛠️ Herramientas Gratuitas (Siempre Disponibles):**\n- `gen_qrcode` / `gen_diagram` / `gen_palette` : Visuales y utilidades.\n- `remove_background` : Eliminacion de fondo nativa.\n- `extract_frames` / `extract_audio` : Extraccion rapida de medios.\n- `file_to_url` : Alojamiento online instantaneo.\n- `gen_edit_image_free` : Gen y edicion de imagenes gratis (~20/dia).\n- `gen_video_free` : Gen de video gratis (~5/dia).\n- `object_remover` : Suppression d’objets par prompt (gratuit, direct).\n- `image_upscaler` : Agrandissement 2x/4x (gratuit, direct).\n- `image_enhancer` : Amélioration IA d’image (gratuit, direct).",
|
|
120
120
|
"features_pro": "**💎 Herramientas Pollinations (Premium - Automatizado con Clave):**\n- `polli_gen_image` : Gen de imágenes (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` : Motor de música generativa.\n- `polli_web_search` : Búsqueda web contectada.",
|
|
121
121
|
"features_config": "- **Configuración granular**, gestión de modos y tokens, protección de costos...",
|
|
122
|
-
"tiers_title": "> **Tu
|
|
122
|
+
"tiers_title": "> **Tu refill Quest Pollen:** {emoji} {tier}",
|
|
123
123
|
"about": "## 🌍 ¿Qué es pollinations.ai?\npollinations.ai es una plataforma de IA de código abierto creada por y para la comunidad. Ofrecemos una API unificada para Imagen, Texto, Audio y Video. Todo es abierto: nuestro código, roadmap, conversaciones. ¡Únete a nosotros!\n\nSin cajas negras. Sin bloqueos. Solo una API amigable y un Discord lleno de gente dispuesta a ayudar.",
|
|
124
|
-
"levels_title": "## 📈
|
|
125
|
-
"levels_list": "
|
|
126
|
-
"beta_note": "✨ *¡Estamos en beta! Aprendiendo qué funciona mejor para nuestra comunidad.*",
|
|
124
|
+
"levels_title": "## 📈 Refill Quest Pollen por Hora",
|
|
125
|
+
"levels_list": "Tu refill por hora depende de tu nivel de contribucion. El Quest Pollen se acumula y no expira (mientras tu cuenta este activa).\n\n{tier_table}\n\n> ⚠️ El refill es **por hora** (reset a :00). El total diario es una estimacion (~24h x tasa horaria).",
|
|
127
126
|
"pollen_title": "## 💎 ¿Qué es el Pollen?",
|
|
128
127
|
"pollen_get": "Ejecutar modelos de IA cuesta dinero. El Pollen es nuestra forma de mantener los servidores funcionando sin anuncios ni vendiendo datos. Un crédito simple para todos los modelos — predecible y transparente.\n\n**$1 ≈ 1 Pollen**. Se gasta en llamadas API.",
|
|
129
|
-
"pollen_spend": "## 🛒
|
|
128
|
+
"pollen_spend": "## 🛒 Como obtener Pollen?\n1. 🎯 **Quests** — Completa tareas en el dashboard (`/poll quests`).\n2. 💳 **Comprar** — Con tarjeta en enter.pollinations.ai.\n3. 🌻 **Dev earnings** — Activa ganancias de desarrollador en tu App Key.",
|
|
130
129
|
"quests": "## 🎯 Misiones — Gana Pollen gratis\nAhora el Pollen se gana principalmente completando **Misiones**. Buenas noticias: usar este plugin (modelos de texto, imagen y audio) completa varias misiones **retroactivamente** — ¡quizás ya tengas Pollen gratis esperando!\n\n👉 Revisa y reclama tus recompensas en el [panel](https://enter.pollinations.ai). _Reclamar solo se hace en el panel._\n\n> 💡 El Pollen de misión funciona en todos los modelos estándar. Los modelos 💎 de pago requieren Pollen comprado.",
|
|
131
|
-
"hourly_note": "> ⚠️ Las cuotas son **por hora** (recarga a las :00). La cifra diaria es una estimación (~24h × tasa horaria)."
|
|
130
|
+
"hourly_note": "> ⚠️ Las cuotas son **por hora** (recarga a las :00). La cifra diaria es una estimación (~24h × tasa horaria).",
|
|
131
|
+
"get_started": "## 🔑 Para empezar\n\n**1.** Crea una cuenta gratis en enter.pollinations.ai\n**2.** Conectate en 1 clic: `/poll login`\n**3.** O usa una clave manual: `/poll connect sk_...`\n\nEscribe `/poll help` para ver todos los comandos."
|
|
132
132
|
},
|
|
133
133
|
"pricing_units": {
|
|
134
134
|
"tokens": "~tokens",
|
|
@@ -445,13 +445,28 @@
|
|
|
445
445
|
"polli_login": {
|
|
446
446
|
"desc": "🔐 Inicia un acceso rápido a Pollinations (device flow) para el usuario. Muestra un código corto + URL; el usuario inicia sesión con GitHub en su navegador, y el plugin se conecta AUTOMÁTICAMENTE tras aprobar (un aviso confirma). No se necesita clave API para ejecutarlo. Úsalo cuando el usuario quiera conectar su cuenta de Pollinations fácilmente, sin copiar y pegar una clave. Para una clave permanente, dile que use `/poll connect sk_...`.",
|
|
447
447
|
"arg_wait": "Si es true, espera a que termine un inicio de sesión en curso y devuelve el resultado final (✅ conectado / caducado). Llama primero sin wait para mostrar el código, luego de nuevo con wait:true tras pedir al usuario que autorice."
|
|
448
|
+
},
|
|
449
|
+
"object_remover": {
|
|
450
|
+
"file_not_found": "❗ File not found: {path}",
|
|
451
|
+
"no_result": "❗ No result received.",
|
|
452
|
+
"error": "❗ Error: {error}"
|
|
453
|
+
},
|
|
454
|
+
"image_upscaler": {
|
|
455
|
+
"file_not_found": "❗ File not found: {path}",
|
|
456
|
+
"no_result": "❗ No result received.",
|
|
457
|
+
"error": "❗ Error: {error}"
|
|
458
|
+
},
|
|
459
|
+
"image_enhancer": {
|
|
460
|
+
"file_not_found": "❗ File not found: {path}",
|
|
461
|
+
"no_result": "❗ No result received.",
|
|
462
|
+
"error": "❗ Error: {error}"
|
|
448
463
|
}
|
|
449
464
|
},
|
|
450
465
|
"connect_response": {
|
|
451
466
|
"title_key": "## 🍯💚 PLUGIN POLLINATIONS CONECTADO 💚🍯\n\n¡Bienvenido **{name}** al plugin de Pollinations Agent!\n**Modo actual**: `{mode}`",
|
|
452
|
-
"tools_intro": "### 🚀 Herramientas Multimedia Integradas\n\nEste plugin te permite generar código, imágenes, analizar videos e interactuar con los mejores modelos de IA sin problemas. Accede a los LLM más avanzados a través del chat, reestructuración o terminal.\n\n**Lo que este plugin trae para ti:**\n\n**🛠️ Herramientas gratuitas (Siempre Disponibles):**\n- `gen_qrcode` / `gen_diagram` / `gen_palette`\n- `remove_background`\n- `extract_frames` / `extract_audio`\n- `file_to_url`\n\n**💎 Herramientas Pollinations (Premium):**\n- `polli_gen_image`\n- `polli_gen_video`\n- `polli_gen_audio`/`polli_stt`\n- `polli_gen_music`\n- `polli_web_search`",
|
|
467
|
+
"tools_intro": "### 🚀 Herramientas Multimedia Integradas\n\nEste plugin te permite generar código, imágenes, analizar videos e interactuar con los mejores modelos de IA sin problemas. Accede a los LLM más avanzados a través del chat, reestructuración o terminal.\n\n**Lo que este plugin trae para ti:**\n\n**🛠️ Herramientas gratuitas (Siempre Disponibles):**\n- `gen_qrcode` / `gen_diagram` / `gen_palette`\n- `remove_background`\n- `extract_frames` / `extract_audio`\n- `file_to_url`\n- `gen_edit_image_free` (gen & edición, ~20/día)\n- `gen_video_free` (gen video, ~5/día)\n- `object_remover`\n- `image_upscaler`\n- `image_enhancer`\n\n**💎 Herramientas Pollinations (Premium):**\n- `polli_gen_image`\n- `polli_gen_video`\n- `polli_gen_audio`/`polli_stt`\n- `polli_gen_music`\n- `polli_web_search`",
|
|
453
468
|
"terminal_cmds": "### 💻 Comandos de Terminal\nUsa `/poll help` para ver todos los comandos. Prueba `/poll models` para descubrir el catálogo o `/poll usage` para seguir tu consumo de pollen.",
|
|
454
|
-
"resources": "### 📚 Recursos\n* **
|
|
469
|
+
"resources": "### 📚 Recursos\n* **Dashboard:** enter.pollinations.ai\n* **Discord:** Unete a la comunidad\n* **Plugin:** github.com/fkom13/opencode-pollinations-plugin",
|
|
455
470
|
"free_models_success": "Modelos gratuitos disponibles: {models}",
|
|
456
471
|
"free_models_error": "⚠️ No se pudieron obtener los modelos gratuitos.",
|
|
457
472
|
"onboarding": "## 🌸 Bienvenido al plugin Pollinations\n\n**Acceso gratis inmediato — sin clave**\nEste plugin ofrece un entorno completo para chat, generación de código y manipulación de medios (generación de imágenes, vídeos, audio, herramientas de extracción...).\n\nSelecciona un modelo `pollinations/free/*` de la lista y empieza a chatear.\n{freeText}\n\n**🆓 Herramientas gratis bonus (sin clave):** `gen_edit_image_free` y `gen_video_free` — genera/edita imágenes (~20/día) y vídeos (~5/día) de inmediato, para cualquier modelo.\n\n---\n\n## 🚀 Agentes y herramientas multimedia para desarrolladores\n\nClaude Opus, GPT-5, Gemini 3, generación de vídeo Veo y Wan, música ElevenLabs... ¡desbloquea todo el poder de la API de Pollinations!\n\nEste plugin usa un modelo **BYOK** (Bring Your Own Key): con tu propia clave API, el agente OpenCode puede interactuar directamente con las herramientas Premium y crear tus archivos en tu Workspace.\n\n**Paso 1 — Crea una cuenta gratis**\n👉 **https://enter.pollinations.ai**\n\n**Paso 2 — Genera tu clave API**\nEn la sección **API Keys** en `enter.pollinations.ai`, crea una clave **Secret** (`sk_...`).\n\n**Paso 3 — Conecta la clave**\n```bash\n/poll connect sk_tu_clave_aqui\n```\n*(¡La clave se registra de inmediato en tu entorno OpenCode, desbloqueando modelos Pro!)*\n\n---\n\n## 💰 Pollen, Niveles y Misiones\nTu **nivel** te da una recarga horaria de Pollen gratis (p. ej. 🌸 Flower ≈ 0.4/h). Además, las **Misiones** te recompensan con Pollen gratis — ¡y usar este plugin completa varias retroactivamente! Consulta `/poll quests`.\n\nCuando se agota el Pollen gratis, gastas de tu monedero ($1 ≈ 1 Pollen, sin suscripción, sin caducidad).\n\n**¿Necesitas ayuda?** Escribe `/poll help`. Discord oficial: https://discord.gg/pollinations-ai-885844321461485618"
|
package/dist/locales/fr.json
CHANGED
|
@@ -115,17 +115,17 @@
|
|
|
115
115
|
"infos": {
|
|
116
116
|
"title": "## 🍯💚 POLLINATIONS OPENCODE PLUGIN 💚🍯\n\nBienvenue **{name}** sur le plugin Pollinations pour OpenCode !\n\nCe plugin vous permet de générer du code, des images, d'analyser des vidéos et d'interagir avec les meilleurs modèles d'Intelligence Artificielle de manière totalement transparente et intégrée à votre environnement de travail. Accédez aux capacités des LLMs de pointe, que ce soit via des requêtes de chat, la refonte de votre base de code, ou directement dans le terminal.",
|
|
117
117
|
"features_title": "**Ce Que ce plugin vous apporte en plus ! :**",
|
|
118
|
-
"features_free": "**🛠️ Outils Gratuits Intégrés (Toujours disponibles) :**\n- `gen_qrcode` / `gen_diagram` / `gen_palette` : Outils visuels et dev.\n- `remove_background` : Détourage d'image natif.\n- `extract_frames` / `extract_audio` : Extraction rapide de contenu média.\n- `file_to_url` : Hébergement instantané de vos fichiers locaux en ligne.",
|
|
118
|
+
"features_free": "**🛠️ Outils Gratuits Intégrés (Toujours disponibles) :**\n- `gen_qrcode` / `gen_diagram` / `gen_palette` : Outils visuels et dev.\n- `remove_background` : Détourage d'image natif.\n- `extract_frames` / `extract_audio` : Extraction rapide de contenu média.\n- `file_to_url` : Hébergement instantané de vos fichiers locaux en ligne.\n- `gen_edit_image_free` : Génération & édition d'images gratuite (~20/jour).\n- `gen_video_free` : Génération vidéo gratuite (~5/jour).\n- `object_remover` : Suppression d’objets par prompt (gratuit, direct).\n- `image_upscaler` : Agrandissement 2x/4x (gratuit, direct).\n- `image_enhancer` : Amélioration IA d’image (gratuit, direct).",
|
|
119
119
|
"features_pro": "**💎 Outils Pollinations (Premium - Automatisés avec votre Clé) :**\n- `polli_gen_image` : Génération d'images (Flux, Seedream, Gemini) + support Image-to-Image.\n- `polli_gen_video` : Génération vidéo text-to-video / image-to-video (Veo, Wan, LTX...).\n- `polli_gen_audio`/`polli_stt` : Transcription Whisper, Text-to-Speech ElevenLabs.\n- `polli_gen_music` : Moteur de musique générative.\n- `polli_web_search` : Recherche connectée pour étendre la base de contexte de l'agent.",
|
|
120
120
|
"features_config": "- **Une configuration granulaire**, des modes de gestions de vos tokens et de vos outils, de la sécurisation des coûts des outils consommant du pollen...",
|
|
121
|
-
"tiers_title": "> **Votre
|
|
121
|
+
"tiers_title": "> **Votre refill Quest Pollen :** {emoji} {tier}",
|
|
122
|
+
"get_started": "## 🔑 Pour commencer\n\n**1.** Créez un compte gratuit sur enter.pollinations.ai\n**2.** Connectez-vous en 1 clic : `/poll login`\n**3.** Ou utilisez une clé manuelle : `/poll connect sk_...`\n\nTapez `/poll help` pour voir toutes les commandes.",
|
|
122
123
|
"about": "## 🌍 Qu'est-ce que pollinations.ai ?\npollinations.ai est une plateforme d'IA open-source construite par et pour la communauté. Nous offrons une API unifiée pour les images, le texte, l'audio et la vidéo. Tout fonctionne de manière ouverte : notre code, notre feuille de route, nos conversations. Des centaines de développeurs construisent déjà des outils, des jeux, des bots et des expériences farfelues avec nous. Vous êtes les bienvenus !\n\nPas de boîtes noires. Pas de dépendance exclusive (vendor lock-in). Juste une API conviviale et un Discord rempli de personnes qui s'entraident réellement.",
|
|
123
|
-
"levels_title": "## 📈
|
|
124
|
-
"levels_list": "
|
|
125
|
-
"beta_note": "✨ *Nous sommes en bêta ! Nous apprenons ce qui fonctionne le mieux pour notre communauté.*",
|
|
124
|
+
"levels_title": "## 📈 Refill Quest Pollen Horaire",
|
|
125
|
+
"levels_list": "Votre refill horaire dépend de votre niveau de contribution. Le Pollen de quête s'accumule et ne s'efface pas (tant que votre compte reste actif).\n\n{tier_table}\n\n> ⚠️ Le refill est **horaire** (reset à :00). Le total journalier est une estimation (~24h × taux horaire).",
|
|
126
126
|
"pollen_title": "## 💎 Qu'est-ce que le Pollen ?",
|
|
127
127
|
"pollen_get": "Faire tourner des modèles d'IA coûte de l'argent. Le Pollen est notre moyen de faire fonctionner les serveurs sans publicité ni revente de vos données. Un crédit simple et unique pour tous les modèles — prévisible, transparent, sans surprises.\n\n**$1 ≈ 1 Pollen** (les prix peuvent évoluer). Vous le dépensez pour faire des appels API.",
|
|
128
|
-
"pollen_spend": "## 🛒 Comment obtenir du Pollen ?\
|
|
128
|
+
"pollen_spend": "## 🛒 Comment obtenir du Pollen ?\n1. 🎯 **Quêtes** — Complétez des tâches sur le dashboard (`/poll quests`).\n2. 💳 **Acheter** — Par carte bancaire sur enter.pollinations.ai.\n3. 🌻 **Dev earnings** — Activez les revenus développeur sur votre App Key.",
|
|
129
129
|
"quests": "## 🎯 Quêtes — Gagnez du Pollen gratuit\nLe Pollen se gagne désormais surtout en complétant des **Quêtes**. Bonne nouvelle : utiliser ce plugin (modèles texte, image & audio) complète plusieurs quêtes **rétroactivement** — vous avez peut-être déjà du Pollen gratuit en attente !\n\n👉 Consultez et réclamez vos récompenses sur le [dashboard](https://enter.pollinations.ai). _La réclamation se fait uniquement sur le dashboard._\n\n> 💡 Le Pollen de quête fonctionne sur tous les modèles standard. Les modèles 💎 payants nécessitent toujours du Pollen acheté.",
|
|
130
130
|
"hourly_note": "> ⚠️ Les quotas sont **horaires** (recharge à :00). Le quota journalier est une estimation (~24h × taux horaire)."
|
|
131
131
|
},
|
|
@@ -444,13 +444,28 @@
|
|
|
444
444
|
"polli_login": {
|
|
445
445
|
"desc": "🔐 Démarre une connexion Pollinations rapide (device flow) pour l'utilisateur. Affiche un code court + une URL ; l'utilisateur se connecte avec GitHub dans son navigateur, et le plugin se connecte AUTOMATIQUEMENT une fois approuvé (un toast confirme). Aucune clé API nécessaire pour lancer ceci. À utiliser quand l'utilisateur veut connecter son compte Pollinations facilement, sans copier-coller de clé. Pour une clé permanente, dites-lui d'utiliser `/poll connect sk_...`.",
|
|
446
446
|
"arg_wait": "Si true, attend la fin d'une connexion en cours et retourne le résultat final (✅ connecté / expiré). Appelez d'abord sans wait pour afficher le code, puis à nouveau avec wait:true après avoir dit à l'utilisateur d'autoriser."
|
|
447
|
+
},
|
|
448
|
+
"object_remover": {
|
|
449
|
+
"file_not_found": "❗ File not found: {path}",
|
|
450
|
+
"no_result": "❗ No result received.",
|
|
451
|
+
"error": "❗ Error: {error}"
|
|
452
|
+
},
|
|
453
|
+
"image_upscaler": {
|
|
454
|
+
"file_not_found": "❗ File not found: {path}",
|
|
455
|
+
"no_result": "❗ No result received.",
|
|
456
|
+
"error": "❗ Error: {error}"
|
|
457
|
+
},
|
|
458
|
+
"image_enhancer": {
|
|
459
|
+
"file_not_found": "❗ File not found: {path}",
|
|
460
|
+
"no_result": "❗ No result received.",
|
|
461
|
+
"error": "❗ Error: {error}"
|
|
447
462
|
}
|
|
448
463
|
},
|
|
449
464
|
"connect_response": {
|
|
450
465
|
"title_key": "## 🍯💚 PLUGIN POLLINATIONS CONNECTÉ 💚🍯\n\nBienvenue **{name}** dans le plugin Pollinations Agent !\n**Mode actuel** : `{mode}`",
|
|
451
|
-
"tools_intro": "### 🚀 Outils Multimédias Intégrés au Développement\n\nCe plugin vous permet de générer du code, des images, d'analyser des vidéos et d'interagir avec les meilleurs modèles IA. Accédez aux meilleurs LLMs.\n\n**Ce que ce plugin vous apporte :**\n\n**🛠️ Outils Libres Intégrés :**\n- `gen_qrcode` / `gen_diagram` / `gen_palette`\n- `remove_background`\n- `extract_frames` / `extract_audio`\n- `file_to_url`\n\n**💎 Outils Pollinations (Premium) :**\n- `polli_gen_image`\n- `polli_gen_video`\n- `polli_gen_audio`/`polli_stt`\n- `polli_gen_music`\n- `polli_web_search`",
|
|
466
|
+
"tools_intro": "### 🚀 Outils Multimédias Intégrés au Développement\n\nCe plugin vous permet de générer du code, des images, d'analyser des vidéos et d'interagir avec les meilleurs modèles IA. Accédez aux meilleurs LLMs.\n\n**Ce que ce plugin vous apporte :**\n\n**🛠️ Outils Libres Intégrés :**\n- `gen_qrcode` / `gen_diagram` / `gen_palette`\n- `remove_background`\n- `extract_frames` / `extract_audio`\n- `file_to_url`\n- `gen_edit_image_free` (génération & édition, ~20/jour)\n- `gen_video_free` (génération vidéo, ~5/jour)\n- `object_remover`\n- `image_upscaler`\n- `image_enhancer`\n\n**💎 Outils Pollinations (Premium) :**\n- `polli_gen_image`\n- `polli_gen_video`\n- `polli_gen_audio`/`polli_stt`\n- `polli_gen_music`\n- `polli_web_search`",
|
|
452
467
|
"terminal_cmds": "### 💻 Commandes par Terminal\nUtilisez `/poll help` pour voir toutes les commandes. Essayez `/poll models` pour découvrir le catalogue ou `/poll usage` pour suivre votre pollen restant.",
|
|
453
|
-
"resources": "### 📚 Ressources\n* **
|
|
468
|
+
"resources": "### 📚 Ressources\n* **Dashboard:** enter.pollinations.ai\n* **Discord:** Rejoindre la communauté\n* **Plugin:** github.com/fkom13/opencode-pollinations-plugin",
|
|
454
469
|
"free_models_success": "Modèles gratuits disponibles : {models}",
|
|
455
470
|
"free_models_error": "⚠️ Impossible de récupérer la liste des modèles gratuits.",
|
|
456
471
|
"onboarding": "## 🌸 Bienvenue sur le plugin Pollinations\n\n**Accès gratuit immédiat — aucune clé requise**\nCe plugin offre un environnement complet pour le chat, la génération de code et la manipulation média (génération d'images, vidéos, audio, outils d'extraction...).\n\nSélectionnez un modèle `pollinations/free/*` dans la liste et commencez à discuter.\n{freeText}\n\n**🆓 Outils gratuits bonus (sans clé) :** `gen_edit_image_free` et `gen_video_free` — générez/éditez des images (~20/jour) et des vidéos (~5/jour) immédiatement, pour n'importe quel modèle.\n\n---\n\n## 🚀 Agents et outils multimédias pour développeurs\n\nClaude Opus, GPT-5, Gemini 3, génération vidéo Veo & Wan, musique ElevenLabs... libérez toute la puissance de l'API Pollinations !\n\nCe plugin adopte un modèle **BYOK** (Bring Your Own Key) : avec votre propre clé API, l'agent OpenCode peut interagir directement avec les outils Premium et créer vos fichiers média dans votre Workspace.\n\n**Étape 1 — Créez un compte gratuit**\n👉 **https://enter.pollinations.ai**\n\n**Étape 2 — Générez votre clé API**\nDans la section **API Keys** sur `enter.pollinations.ai`, créez une clé **Secret** (`sk_...`).\n\n**Étape 3 — Connectez la clé**\n```bash\n/poll connect sk_votre_cle_ici\n```\n*(La clé est immédiatement enregistrée dans votre environnement OpenCode, débloquant les modèles Pro !)*\n\n---\n\n## 💰 Pollen, Paliers & Quêtes\nVotre **palier** vous donne une recharge horaire de Pollen gratuit (ex. 🌸 Flower ≈ 0,4/h). En plus, les **Quêtes** vous récompensent en Pollen gratuit — et utiliser simplement ce plugin en complète plusieurs rétroactivement ! Consultez `/poll quests`.\n\nUne fois le Pollen gratuit épuisé, vous puisez dans votre wallet (1 $ ≈ 1 Pollen, sans abonnement, sans expiration).\n\n**Besoin d'aide ?** Tapez `/poll help`. Discord officiel : https://discord.gg/pollinations-ai-885844321461485618"
|
package/dist/locales/it.json
CHANGED
|
@@ -116,19 +116,19 @@
|
|
|
116
116
|
"infos": {
|
|
117
117
|
"title": "## 🍯💚 PLUGIN POLLINATIONS OPENCODE 💚🍯\n\nBenvenuto **{name}** nel plugin OpenCode di Pollinations!\n\nQuesto plugin ti consente di generare codice, immagini, analizzare video e interagire senza problemi con i migliori modelli di IA. Accedi agli LLM più avanzati tramite chat, refactoring o terminale.",
|
|
118
118
|
"features_title": "**Cosa ti offre questo plugin! :**",
|
|
119
|
-
"features_free": "**🛠️ Strumenti
|
|
119
|
+
"features_free": "**🛠️ Strumenti Gratuiti (Sempre Disponibili):**\n- `gen_qrcode` / `gen_diagram` / `gen_palette` : Visual e dev.\n- `remove_background` : Rimozione sfondo nativa.\n- `extract_frames` / `extract_audio` : Estrazione media rapida.\n- `file_to_url` : Hosting online istantaneo.\n- `gen_edit_image_free` : Gen e modifica immagini gratis (~20/giorno).\n- `gen_video_free` : Gen video gratis (~5/giorno).\n- `object_remover` : Suppression d’objets par prompt (gratuit, direct).\n- `image_upscaler` : Agrandissement 2x/4x (gratuit, direct).\n- `image_enhancer` : Amélioration IA d’image (gratuit, direct).",
|
|
120
120
|
"features_pro": "**💎 Strumenti Pollinations (Premium - Automatizzato con Chiave):**\n- `polli_gen_image` : Gen immagine (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` : Motore di musica generativa.\n- `polli_web_search` : Ricerca web connessa.",
|
|
121
121
|
"features_config": "- **Configurazione granulare**, gestione di modalità/token, protezioni costi...",
|
|
122
|
-
"tiers_title": "> **Il tuo
|
|
122
|
+
"tiers_title": "> **Il tuo refill Quest Pollen:** {emoji} {tier}",
|
|
123
123
|
"about": "## 🌍 Cos'è pollinations.ai?\npollinations.ai è una piattaforma IA open-source costruita per la community. Offriamo un'API per Immagini, Testo, Audio e Video. Tutto è aperto: codice, roadmap, conversazioni. Unisciti a noi!\n\nNessuna scatola nera. Nessun lock-in. Solo un'API amichevole.",
|
|
124
|
-
"levels_title": "## 📈
|
|
125
|
-
"levels_list": "
|
|
126
|
-
"beta_note": "✨ *Siamo in beta! Scopriamo cosa funziona meglio.*",
|
|
124
|
+
"levels_title": "## 📈 Refill Quest Pollen Orario",
|
|
125
|
+
"levels_list": "Il tuo refill orario dipende dal tuo livello di contributo. Il Quest Pollen si accumula e non scade (finche il tuo account resta attivo).\n\n{tier_table}\n\n> ⚠️ Il refill e **orario** (reset alle :00). Il totale giornaliero e una stima (~24h x tariffa oraria).",
|
|
127
126
|
"pollen_title": "## 💎 Cos'è il Pollen?",
|
|
128
127
|
"pollen_get": "L'esecuzione di modelli costa denaro. Il Pollen è il nostro modo per mantenere attivi i server senza pubblicità o vendere dati. Un credito semplice e unificato per tutti i modelli.\n\n**$1 ≈ 1 Pollen**. Lo spendi per le chiamate API.",
|
|
129
|
-
"pollen_spend": "## 🛒 Come ottenere Pollen?\
|
|
128
|
+
"pollen_spend": "## 🛒 Come ottenere Pollen?\n1. 🎯 **Quests** — Completa attivita sulla dashboard (`/poll quests`).\n2. 💳 **Acquista** — Con carta su enter.pollinations.ai.\n3. 🌻 **Dev earnings** — Attiva i guadagni sviluppatore sulla tua App Key.",
|
|
130
129
|
"quests": "## 🎯 Quest — Guadagna Pollen gratis\nIl Pollen ora si guadagna principalmente completando le **Quest**. Buone notizie: usare questo plugin (modelli di testo, immagini e audio) completa diverse quest **retroattivamente** — potresti già avere Pollen gratis in attesa!\n\n👉 Controlla e richiedi le tue ricompense sulla [dashboard](https://enter.pollinations.ai). _Il riscatto avviene solo dalla dashboard._\n\n> 💡 Il Pollen delle quest funziona su tutti i modelli standard. I modelli 💎 a pagamento richiedono comunque Pollen acquistato.",
|
|
131
|
-
"hourly_note": "> ⚠️ Le quote sono **orarie** (ricarica alle :00). Il valore giornaliero è una stima (~24h × tasso orario)."
|
|
130
|
+
"hourly_note": "> ⚠️ Le quote sono **orarie** (ricarica alle :00). Il valore giornaliero è una stima (~24h × tasso orario).",
|
|
131
|
+
"get_started": "## 🔑 Per iniziare\n\n**1.** Crea un account gratuito su enter.pollinations.ai\n**2.** Connettiti in 1 clic: `/poll login`\n**3.** Oppure usa una chiave manuale: `/poll connect sk_...`\n\nDigita `/poll help` per tutti i comandi."
|
|
132
132
|
},
|
|
133
133
|
"pricing_units": {
|
|
134
134
|
"tokens": "~tokens",
|
|
@@ -445,13 +445,28 @@
|
|
|
445
445
|
"polli_login": {
|
|
446
446
|
"desc": "🔐 Avvia un accesso rapido a Pollinations (device flow) per l'utente. Mostra un codice breve + URL; l'utente accede con GitHub nel browser, e il plugin si connette AUTOMATICAMENTE una volta approvato (un toast conferma). Nessuna chiave API necessaria per eseguirlo. Usalo quando l'utente vuole connettere il suo account Pollinations facilmente, senza copiare e incollare una chiave. Per una chiave permanente, digli di usare `/poll connect sk_...`.",
|
|
447
447
|
"arg_wait": "Se true, attende il completamento di un accesso in corso e restituisce il risultato finale (✅ connesso / scaduto). Chiama prima senza wait per mostrare il codice, poi di nuovo con wait:true dopo aver chiesto all'utente di autorizzare."
|
|
448
|
+
},
|
|
449
|
+
"object_remover": {
|
|
450
|
+
"file_not_found": "❗ File not found: {path}",
|
|
451
|
+
"no_result": "❗ No result received.",
|
|
452
|
+
"error": "❗ Error: {error}"
|
|
453
|
+
},
|
|
454
|
+
"image_upscaler": {
|
|
455
|
+
"file_not_found": "❗ File not found: {path}",
|
|
456
|
+
"no_result": "❗ No result received.",
|
|
457
|
+
"error": "❗ Error: {error}"
|
|
458
|
+
},
|
|
459
|
+
"image_enhancer": {
|
|
460
|
+
"file_not_found": "❗ File not found: {path}",
|
|
461
|
+
"no_result": "❗ No result received.",
|
|
462
|
+
"error": "❗ Error: {error}"
|
|
448
463
|
}
|
|
449
464
|
},
|
|
450
465
|
"connect_response": {
|
|
451
466
|
"title_key": "## 🍯💚 PLUGIN POLLINATIONS CONNESSO 💚🍯\n\nBenvenuto **{name}** al plugin Pollinations Agent!\n**Modalità attuale**: `{mode}`",
|
|
452
|
-
"tools_intro": "### 🚀 Strumenti Multimediali\n\nQuesto plugin ti permette di generare codice, immagini, analizzare video.\n\n**🛠️ Strumenti Gratuiti:**\n- `gen_qrcode` / `gen_diagram` / `gen_palette`\n- `remove_background`\n- `extract_frames` / `extract_audio`\n- `file_to_url`\n\n**💎 Strumenti Premium:**\n- `polli_gen_image`\n- `polli_gen_video`\n- `polli_gen_audio`/`polli_stt`\n- `polli_gen_music`\n- `polli_web_search`",
|
|
467
|
+
"tools_intro": "### 🚀 Strumenti Multimediali\n\nQuesto plugin ti permette di generare codice, immagini, analizzare video.\n\n**🛠️ Strumenti Gratuiti:**\n- `gen_qrcode` / `gen_diagram` / `gen_palette`\n- `remove_background`\n- `extract_frames` / `extract_audio`\n- `file_to_url`\n- `gen_edit_image_free` (gen & modifica, ~20/giorno)\n- `gen_video_free` (gen video, ~5/giorno)\n- `object_remover`\n- `image_upscaler`\n- `image_enhancer`\n\n**💎 Strumenti Premium:**\n- `polli_gen_image`\n- `polli_gen_video`\n- `polli_gen_audio`/`polli_stt`\n- `polli_gen_music`\n- `polli_web_search`",
|
|
453
468
|
"terminal_cmds": "### 💻 Comandi del Terminale\nUsa `/poll help` per visualizzare tutti i comandi disponibili.",
|
|
454
|
-
"resources": "### 📚
|
|
469
|
+
"resources": "### 📚 Risorse\n* **Dashboard:** enter.pollinations.ai\n* **Discord:** Unisciti alla community\n* **Plugin:** github.com/fkom13/opencode-pollinations-plugin",
|
|
455
470
|
"free_models_success": "Modelli disponibili: {models}",
|
|
456
471
|
"free_models_error": "⚠️ Impossibile recuperare i modelli gratuiti.",
|
|
457
472
|
"onboarding": "## 🌸 Benvenuto nel plugin Pollinations\n\n**Accesso gratuito immediato — nessuna chiave richiesta**\nQuesto plugin offre un ambiente completo per chat, generazione di codice e manipolazione multimediale (generazione di immagini, video, audio, strumenti di estrazione...).\n\nSeleziona un modello `pollinations/free/*` dall'elenco e inizia a chattare.\n{freeText}\n\n**🆓 Strumenti gratuiti bonus (senza chiave):** `gen_edit_image_free` e `gen_video_free` — genera/modifica immagini (~20/giorno) e video (~5/giorno) subito, per qualsiasi modello.\n\n---\n\n## 🚀 Agenti e strumenti multimediali per sviluppatori\n\nClaude Opus, GPT-5, Gemini 3, generazione video Veo e Wan, musica ElevenLabs... sblocca tutta la potenza dell'API Pollinations!\n\nQuesto plugin usa un modello **BYOK** (Bring Your Own Key): con la tua chiave API, l'agente OpenCode può interagire direttamente con gli strumenti Premium e creare i tuoi file multimediali nel tuo Workspace.\n\n**Passo 1 — Crea un account gratuito**\n👉 **https://enter.pollinations.ai**\n\n**Passo 2 — Genera la tua chiave API**\nNella sezione **API Keys** su `enter.pollinations.ai`, crea una chiave **Secret** (`sk_...`).\n\n**Passo 3 — Connetti la chiave**\n```bash\n/poll connect sk_la_tua_chiave\n```\n*(La chiave viene registrata subito nel tuo ambiente OpenCode, sbloccando i modelli Pro!)*\n\n---\n\n## 💰 Pollen, Livelli e Quest\nIl tuo **livello** ti dà una ricarica oraria di Pollen gratuito (es. 🌸 Flower ≈ 0,4/h). Inoltre, le **Quest** ti premiano con Pollen gratuito — e usare semplicemente questo plugin ne completa diverse retroattivamente! Controlla `/poll quests`.\n\nUna volta esaurito il Pollen gratuito, spendi dal tuo wallet ($1 ≈ 1 Pollen, senza abbonamento, senza scadenza).\n\n**Serve aiuto?** Digita `/poll help`. Discord ufficiale: https://discord.gg/pollinations-ai-885844321461485618"
|
package/dist/locales/zh.json
CHANGED
|
@@ -115,19 +115,19 @@
|
|
|
115
115
|
"infos": {
|
|
116
116
|
"title": "## 🍯💚 POLLINATIONS OPENCODE 插件 💚🍯\n\n欢迎 **{name}** 使用 Pollinations OpenCode 插件!\n\n本插件让你能够在开发环境中无缝生成代码、图像、分析视频,并与顶级 AI 模型交互。通过聊天、重构或终端访问最先进的 LLM。",
|
|
117
117
|
"features_title": "**本插件为你带来的功能:**",
|
|
118
|
-
"features_free": "**🛠️
|
|
118
|
+
"features_free": "**🛠️ 免费工具 (始终可用):**\n- `gen_qrcode` / `gen_diagram` / `gen_palette` : 视觉和开发工具.\n- `remove_background` : 原生背景移除.\n- `extract_frames` / `extract_audio` : 快速媒体提取.\n- `file_to_url` : 即时在线托管.\n- `gen_edit_image_free` : 免费图像生成和编辑 (~20/天).\n- `gen_video_free` : 免费视频生成 (~5/天).\n- `object_remover` : Suppression d’objets par prompt (gratuit, direct).\n- `image_upscaler` : Agrandissement 2x/4x (gratuit, direct).\n- `image_enhancer` : Amélioration IA d’image (gratuit, direct).",
|
|
119
119
|
"features_pro": "**💎 Pollinations 工具 (高级 - 使用密钥自动化):**\n- `polli_gen_image`:图像生成 (Flux, Seedream, Gemini) + 图生图。\n- `polli_gen_video`:文生视频 / 图生视频 (Veo, Wan, LTX...)。\n- `polli_gen_audio`/`polli_stt`:Whisper 语音转文字, ElevenLabs 文字转语音。\n- `polli_gen_music`:生成式音乐引擎。\n- `polli_web_search`:联网搜索。",
|
|
120
120
|
"features_config": "- **精细化配置**、模式与令牌管理、工具费用保护...",
|
|
121
|
-
"tiers_title": ">
|
|
121
|
+
"tiers_title": "> **你的 Quest Pollen 补充:** {emoji} {tier}",
|
|
122
122
|
"about": "## 🌍 什么是 pollinations.ai?\npollinations.ai 是一个由社区为社区构建的开源 AI 平台。我们为图像、文本、音频和视频提供统一的 API。一切都是开放的:我们的代码、路线图、对话。已有数百名开发者在用我们构建应用、游戏、机器人和各种疯狂的实验。加入我们吧!\n\n没有黑箱。没有供应商锁定。只有友好的 API 和一个充满热心人的 Discord。",
|
|
123
|
-
"levels_title": "## 📈
|
|
124
|
-
"levels_list": "
|
|
125
|
-
"beta_note": "✨ *我们正处于测试阶段!正在了解什么最适合我们的社区。*",
|
|
123
|
+
"levels_title": "## 📈 每小时 Quest Pollen 补充",
|
|
124
|
+
"levels_list": "你的每小时补充取决于你的贡献等级. Quest Pollen 会累积且永不过期(只要你的账户保持活跃).\n\n{tier_table}\n\n> ⚠️ 补充是 **每小时** 的 (在 :00 重置). 每日总量是估算值 (~24h x 每小时速率).",
|
|
126
125
|
"pollen_title": "## 💎 什么是 Pollen?",
|
|
127
126
|
"pollen_get": "运行 AI 模型需要花钱。Pollen 是我们在不投放广告或出售数据的情况下维持服务器运行的方式。一种适用于所有模型的简单、统一的额度 — 可预测、透明、无意外。\n\n**$1 ≈ 1 Pollen** (价格可能变动)。你用它来调用 API。",
|
|
128
|
-
"pollen_spend": "## 🛒 如何获取 Pollen
|
|
127
|
+
"pollen_spend": "## 🛒 如何获取 Pollen?\n1. 🎯 **任务** — 在 dashboard 完成任务 (`/poll quests`).\n2. 💳 **购买** — 在 enter.pollinations.ai 用信用卡购买.\n3. 🌻 **开发者收益** — 在你的 App Key 上启用开发者收益.",
|
|
129
128
|
"quests": "## 🎯 任务 — 赚取免费 Pollen\n现在 Pollen 主要通过完成**任务**来赚取。好消息:仅仅使用本插件 (文本、图像和音频模型) 就能**追溯性地**完成多个任务 — 你可能已经有免费 Pollen 在等着领取了!\n\n👉 在[仪表盘](https://enter.pollinations.ai)查看并领取你的奖励。_领取只能在仪表盘进行。_\n\n> 💡 任务 Pollen 适用于所有标准模型。💎 仅付费模型仍需要购买的 Pollen。",
|
|
130
|
-
"hourly_note": "> ⚠️ 配额按**小时**计算 (在 :00 充值)。每日数值为估算 (~24小时 × 每小时速率)。"
|
|
129
|
+
"hourly_note": "> ⚠️ 配额按**小时**计算 (在 :00 充值)。每日数值为估算 (~24小时 × 每小时速率)。",
|
|
130
|
+
"get_started": "## 🔑 开始使用\n\n**1.** 在 enter.pollinations.ai 创建免费账户\n**2.** 一键连接: `/poll login`\n**3.** 或使用手动密钥: `/poll connect sk_...`\n\n输入 `/poll help` 查看所有命令."
|
|
131
131
|
},
|
|
132
132
|
"pricing_units": {
|
|
133
133
|
"tokens": "~tokens",
|
|
@@ -444,13 +444,28 @@
|
|
|
444
444
|
"polli_login": {
|
|
445
445
|
"desc": "🔐 为用户启动快速 Pollinations 登录 (设备流程)。显示一个短代码 + URL;用户在浏览器中用 GitHub 登录,批准后插件会自动连接 (有提示确认)。运行此功能无需 API 密钥。当用户想要轻松连接其 Pollinations 账户而无需复制粘贴密钥时使用。如需永久密钥,请告诉他们使用 `/poll connect sk_...`。",
|
|
446
446
|
"arg_wait": "如果为 true,则等待进行中的登录完成并返回最终结果 (✅ 已连接 / 已过期)。先不带 wait 调用以显示代码,然后在告知用户授权后再带 wait:true 调用。"
|
|
447
|
+
},
|
|
448
|
+
"object_remover": {
|
|
449
|
+
"file_not_found": "❗ File not found: {path}",
|
|
450
|
+
"no_result": "❗ No result received.",
|
|
451
|
+
"error": "❗ Error: {error}"
|
|
452
|
+
},
|
|
453
|
+
"image_upscaler": {
|
|
454
|
+
"file_not_found": "❗ File not found: {path}",
|
|
455
|
+
"no_result": "❗ No result received.",
|
|
456
|
+
"error": "❗ Error: {error}"
|
|
457
|
+
},
|
|
458
|
+
"image_enhancer": {
|
|
459
|
+
"file_not_found": "❗ File not found: {path}",
|
|
460
|
+
"no_result": "❗ No result received.",
|
|
461
|
+
"error": "❗ Error: {error}"
|
|
447
462
|
}
|
|
448
463
|
},
|
|
449
464
|
"connect_response": {
|
|
450
465
|
"title_key": "## 🍯💚 POLLINATIONS 插件已连接 💚🍯\n\n欢迎 **{name}** 使用 Pollinations 代理插件!\n**当前模式**:`{mode}`",
|
|
451
|
-
"tools_intro": "### 🚀 集成到开发中的多媒体工具\n\n本插件让你能够无缝生成代码、图像、分析视频并与最佳 AI 模型交互。通过聊天、重构或终端访问最先进的 LLM。\n\n**本插件为你带来:**\n\n**🛠️ 免费集成工具:**\n- `gen_qrcode` / `gen_diagram` / `gen_palette`\n- `remove_background`\n- `extract_frames` / `extract_audio`\n- `file_to_url`\n\n**💎 Pollinations 工具 (高级):**\n- `polli_gen_image`\n- `polli_gen_video`\n- `polli_gen_audio`/`polli_stt`\n- `polli_gen_music`\n- `polli_web_search`",
|
|
466
|
+
"tools_intro": "### 🚀 集成到开发中的多媒体工具\n\n本插件让你能够无缝生成代码、图像、分析视频并与最佳 AI 模型交互。通过聊天、重构或终端访问最先进的 LLM。\n\n**本插件为你带来:**\n\n**🛠️ 免费集成工具:**\n- `gen_qrcode` / `gen_diagram` / `gen_palette`\n- `remove_background`\n- `extract_frames` / `extract_audio`\n- `file_to_url`\n- `gen_edit_image_free` (图像生成和编辑, ~20/天)\n- `gen_video_free` (视频生成, ~5/天)\n- `object_remover`\n- `image_upscaler`\n- `image_enhancer`\n\n**💎 Pollinations 工具 (高级):**\n- `polli_gen_image`\n- `polli_gen_video`\n- `polli_gen_audio`/`polli_stt`\n- `polli_gen_music`\n- `polli_web_search`",
|
|
452
467
|
"terminal_cmds": "### 💻 终端命令\n使用 `/poll help` 查看所有命令。试试 `/poll models` 发现目录,或 `/poll usage` 跟踪剩余 Pollen。",
|
|
453
|
-
"resources": "### 📚 资源\n*
|
|
468
|
+
"resources": "### 📚 资源\n* **Dashboard:** enter.pollinations.ai\n* **Discord:** 加入社区\n* **Plugin:** github.com/fkom13/opencode-pollinations-plugin",
|
|
454
469
|
"free_models_success": "可用免费模型:{models}",
|
|
455
470
|
"free_models_error": "⚠️ 无法获取免费模型。",
|
|
456
471
|
"onboarding": "## 🌸 欢迎使用 Pollinations 插件\n\n**即时免费访问 — 无需密钥**\n本插件提供完整的聊天、代码生成和媒体处理环境 (图像、视频、音频生成、提取工具...)。\n\n从列表中选择一个 `pollinations/free/*` 模型并开始聊天。\n{freeText}\n\n---\n\n## 🚀 为开发者集成的多媒体代理和工具\n\nClaude Opus, GPT-5, Gemini 3, Veo 和 Wan 视频生成, ElevenLabs 音乐... 释放 Pollinations API 的全部威力!\n\n本插件采用 **BYOK** (自带密钥) 模式:通过使用你自己的 API 密钥,OpenCode 代理获得直接与高级工具交互的能力,在你的工作区创建多媒体文件。\n\n**第 1 步 — 创建账户,获赠 $10!**\n通过此链接支持本插件:\n👉 **https://enter.pollinations.ai/authorize?redirect_url=https://github.com/fkom13/opencode-pollinations-plugin**\n\n**第 2 步 — 生成你的 API 密钥**\n在 `enter.pollinations.ai` 的 **API Keys** 部分,创建一个 **Secret** 密钥 (`sk_...`)。\n\n**第 3 步 — 连接密钥**\n```bash\n/poll connect sk_your_key_here\n```\n*(密钥会立即注册到你的 OpenCode 环境,解锁 Pro 模型!)*\n\n---\n\n## 💰 Pollen 系统与任务\n现在 Pollen 主要通过完成**任务**来赚取 — 仅仅使用本插件就能追溯性地完成多个任务。在[仪表盘](https://enter.pollinations.ai)查看并领取你的免费 Pollen。\n\n你的等级提供每小时免费的 Pollen 充值额度,用于这些高级服务。免费额度耗尽后,你将从钱包消费 Pollen ($1 ≈ 1 Pollen,无订阅,无过期)。\n\n**需要帮助?**\n- 输入 `/poll help` 查看命令列表。\n- 官方 Discord:https://discord.gg/pollinations-ai-885844321461485618"
|
package/dist/server/commands.js
CHANGED
|
@@ -766,6 +766,9 @@ ${t('commands.config.table_divider')}
|
|
|
766
766
|
return { handled: true, response: `✅ refillOverride = ${override} 🌻/h` };
|
|
767
767
|
}
|
|
768
768
|
if (key === 'questStashInFreeMode' && value) {
|
|
769
|
+
if (value !== 'true' && value !== 'false') {
|
|
770
|
+
return { handled: true, error: 'Valeurs supportées: true, false' };
|
|
771
|
+
}
|
|
769
772
|
const enabled = value === 'true';
|
|
770
773
|
saveConfig({ questStashInFreeMode: enabled });
|
|
771
774
|
return { handled: true, response: `✅ questStashInFreeMode = ${enabled}${enabled ? ' (le stash Quest compte comme free)' : ' (seul le refill horaire compte)'}` };
|
|
@@ -951,26 +954,30 @@ export async function handleInfosCommand() {
|
|
|
951
954
|
const config = loadConfig();
|
|
952
955
|
let name = "Developer";
|
|
953
956
|
let tier = "anonymous";
|
|
957
|
+
let tierEmoji = '👤';
|
|
954
958
|
if (config.apiKey) {
|
|
959
|
+
try {
|
|
960
|
+
const quota = await getQuotaStatus(true);
|
|
961
|
+
tier = quota.tier || 'anonymous';
|
|
962
|
+
tierEmoji = quota.tierEmoji || '👤';
|
|
963
|
+
}
|
|
964
|
+
catch (e) {
|
|
965
|
+
// Ignorer l'erreur réseau et garder les valeurs par défaut
|
|
966
|
+
}
|
|
955
967
|
try {
|
|
956
968
|
const res = await fetch('https://gen.pollinations.ai/account/profile', {
|
|
957
969
|
headers: { 'Authorization': `Bearer ${config.apiKey}` }
|
|
958
970
|
});
|
|
959
971
|
if (res.ok) {
|
|
960
972
|
const data = await res.json();
|
|
961
|
-
if (data.
|
|
962
|
-
name = data.
|
|
963
|
-
tier = data.tier || "anonymous";
|
|
973
|
+
if (data.githubUsername)
|
|
974
|
+
name = data.githubUsername;
|
|
964
975
|
}
|
|
965
976
|
}
|
|
966
977
|
catch (e) {
|
|
967
|
-
// Ignorer
|
|
978
|
+
// Ignorer
|
|
968
979
|
}
|
|
969
980
|
}
|
|
970
|
-
const emojis = {
|
|
971
|
-
microbe: '🦠', spore: '🍄', seed: '🌱', flower: '🌸', nectar: '🍯', router: '🐝', anonymous: '👤'
|
|
972
|
-
};
|
|
973
|
-
const tierEmoji = emojis[tier] || '❓';
|
|
974
981
|
// Get dynamic tier table based on user's language
|
|
975
982
|
const userLang = (config.lang || 'en');
|
|
976
983
|
const tierTable = formatTierTable(userLang);
|
|
@@ -983,6 +990,8 @@ ${t('commands.infos.features_pro')}
|
|
|
983
990
|
${t('commands.infos.features_config')}
|
|
984
991
|
|
|
985
992
|
${t('commands.infos.tiers_title', { emoji: tierEmoji, tier: tier.toUpperCase() })}
|
|
993
|
+
${t('commands.infos.get_started')}
|
|
994
|
+
|
|
986
995
|
${t('commands.infos.about')}
|
|
987
996
|
|
|
988
997
|
${t('commands.infos.levels_title')}
|
|
@@ -991,8 +1000,6 @@ ${tierTable}
|
|
|
991
1000
|
|
|
992
1001
|
${t('commands.infos.hourly_note')}
|
|
993
1002
|
|
|
994
|
-
${t('commands.infos.beta_note')}
|
|
995
|
-
|
|
996
1003
|
${t('commands.infos.quests')}
|
|
997
1004
|
|
|
998
1005
|
${t('commands.infos.pollen_title')}
|
|
@@ -1,33 +1,39 @@
|
|
|
1
1
|
import { t } from '../locales/index.js';
|
|
2
|
+
import { getQuotaStatus } from './quota.js';
|
|
2
3
|
export async function buildConnectResponse(config) {
|
|
3
4
|
const hasKey = !!config.apiKey;
|
|
4
5
|
const mode = config.mode;
|
|
5
6
|
let name = "Developer";
|
|
6
7
|
let tier = "anonymous";
|
|
8
|
+
let tierEmoji = '👤';
|
|
7
9
|
if (hasKey) {
|
|
10
|
+
try {
|
|
11
|
+
// Use getQuotaStatus which deduces allowance from usage (tier no longer in /account/profile)
|
|
12
|
+
const quota = await getQuotaStatus(true);
|
|
13
|
+
tier = quota.tier || 'anonymous';
|
|
14
|
+
tierEmoji = quota.tierEmoji || '👤';
|
|
15
|
+
}
|
|
16
|
+
catch (e) {
|
|
17
|
+
// Ignorer l'erreur réseau et garder les valeurs par défaut
|
|
18
|
+
}
|
|
8
19
|
try {
|
|
9
20
|
const res = await fetch('https://gen.pollinations.ai/account/profile', {
|
|
10
21
|
headers: { 'Authorization': `Bearer ${config.apiKey}` }
|
|
11
22
|
});
|
|
12
23
|
if (res.ok) {
|
|
13
24
|
const data = await res.json();
|
|
14
|
-
if (data.
|
|
15
|
-
name = data.
|
|
16
|
-
tier = data.tier || "anonymous";
|
|
25
|
+
if (data.githubUsername)
|
|
26
|
+
name = data.githubUsername;
|
|
17
27
|
}
|
|
18
28
|
}
|
|
19
29
|
catch (e) {
|
|
20
|
-
// Ignorer
|
|
30
|
+
// Ignorer
|
|
21
31
|
}
|
|
22
32
|
}
|
|
23
|
-
const emojis = {
|
|
24
|
-
microbe: '🦠', spore: '🍄', seed: '🌱', flower: '🌸', nectar: '🍯', router: '🐝', anonymous: '👤'
|
|
25
|
-
};
|
|
26
|
-
const tierEmoji = emojis[tier] || '❓';
|
|
27
33
|
if (hasKey) {
|
|
28
34
|
return `${t('connect_response.title_key', { name, mode })}
|
|
29
35
|
|
|
30
|
-
> **Your
|
|
36
|
+
> **Your Tier:** ${tierEmoji} ${tier.toUpperCase()}
|
|
31
37
|
|
|
32
38
|
---
|
|
33
39
|
|
package/dist/server/quota.js
CHANGED
|
@@ -171,16 +171,7 @@ export async function getQuotaStatus(forceRefresh = false) {
|
|
|
171
171
|
const totalBalance = balanceRes.total
|
|
172
172
|
?? balanceRes.balance
|
|
173
173
|
?? 0;
|
|
174
|
-
|
|
175
|
-
const paidPollen = paidPollenNative !== undefined
|
|
176
|
-
? paidPollenNative
|
|
177
|
-
: Math.max(0, totalBalance - cleanTierRemaining);
|
|
178
|
-
const cleanWalletBalance = Math.max(0, parseFloat(paidPollen.toFixed(4)));
|
|
179
|
-
const tierAlertPercent = tierLimit > 0 ? (cleanTierRemaining / tierLimit * 100) : 0;
|
|
180
|
-
const tierNeedsAlert = tierLimit > 0 && tierAlertPercent <= config.thresholds.tier;
|
|
181
|
-
const walletNeedsAlert = cleanWalletBalance > 0 && cleanWalletBalance < (config.thresholds.wallet || 0.5);
|
|
182
|
-
logQuota(`Fetch Success. Allowance: ${allowance}, Paid: ${cleanWalletBalance}, Total: ${totalBalance}`);
|
|
183
|
-
// Fetch quest stash (cached 5 min)
|
|
174
|
+
// Fetch quest stash BEFORE paidPollen calculation (cached 5 min)
|
|
184
175
|
const nowStash = Date.now();
|
|
185
176
|
if (!cachedStash || (nowStash - lastStashFetch) > STASH_CACHE_TTL) {
|
|
186
177
|
try {
|
|
@@ -190,6 +181,15 @@ export async function getQuotaStatus(forceRefresh = false) {
|
|
|
190
181
|
catch { /* keep previous */ }
|
|
191
182
|
}
|
|
192
183
|
const questStash = cachedStash?.questStash ?? 0;
|
|
184
|
+
const paidPollenNative = balanceRes.pack;
|
|
185
|
+
const paidPollen = paidPollenNative !== undefined
|
|
186
|
+
? paidPollenNative
|
|
187
|
+
: Math.max(0, totalBalance - cleanTierRemaining - questStash);
|
|
188
|
+
const cleanWalletBalance = Math.max(0, parseFloat(paidPollen.toFixed(4)));
|
|
189
|
+
const tierAlertPercent = tierLimit > 0 ? (cleanTierRemaining / tierLimit * 100) : 0;
|
|
190
|
+
const tierNeedsAlert = tierLimit > 0 && tierAlertPercent <= config.thresholds.tier;
|
|
191
|
+
const walletNeedsAlert = cleanWalletBalance > 0 && cleanWalletBalance < (config.thresholds.wallet || 0.5);
|
|
192
|
+
logQuota(`Fetch Success. Allowance: ${allowance}, Stash: ${questStash}, Paid: ${cleanWalletBalance}, Total: ${totalBalance}`);
|
|
193
193
|
cachedQuota = {
|
|
194
194
|
tierRemaining: cleanTierRemaining,
|
|
195
195
|
tierUsed,
|