=== JadirGabriel Editorial AI ===
Contributors: jadirgabriel
Tags: artificial intelligence, rss, content automation, editorial workflow, ai writing
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.34
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Find content from RSS sources, prepare AI-assisted drafts, and organize your editorial workflow inside WordPress.

== Description ==

JadirGabriel Editorial AI helps WordPress publishers reduce repetitive editorial work without requiring complicated technical configuration.

With the free plugin you can:

* add RSS sources that you are authorized to monitor;
* manually fetch new content ideas;
* organize incoming items in a simple queue;
* prepare drafts with Google Gemini or OpenAI;
* review every draft before publishing;
* reduce duplicate imports;
* inspect local activity logs.

The free version does not publish automatically. You choose an item, generate a draft, review it, and decide when to publish it.

= External services =

JadirGabriel Editorial AI connects to external services only when you explicitly configure or use them.

1. **RSS sources you add:** the plugin sends an HTTP request to each RSS URL you configure in order to retrieve feed content.
2. **Google Gemini:** when Gemini is selected, the title and available source content for the selected item are sent to Google's Gemini API to generate the draft. Terms: https://ai.google.dev/terms — Privacy: https://policies.google.com/privacy
3. **OpenAI:** when OpenAI is selected, the title and available source content for the selected item are sent to the OpenAI API to generate the draft. Terms: https://openai.com/policies/terms-of-use/ — Privacy: https://openai.com/policies/privacy-policy/

You must provide your own API key for the AI provider you choose. API usage limits and charges are determined by that provider.

JadirGabriel Editorial AI does not send telemetry to the plugin developer and does not require an account or paid license to use the free version.

= Editorial responsibility =

Only monitor sources you are authorized to use and respect applicable copyright and editorial rules. JadirGabriel Editorial AI is an editorial assistance tool. Review and publication decisions remain under the user's control.

= Free and Pro editions =

Editor IA Pro is a separate commercial product with additional automation and advanced workflow features. Premium code is not included in this free plugin. Links shown inside the Free plugin only provide information about the separate Pro product.

== Installation ==

1. Upload the `jadirgabriel-editorial-ai` folder to `/wp-content/plugins/` or install the plugin from the WordPress Plugins screen.
2. Activate JadirGabriel Editorial AI.
3. Open **JadirGabriel Editorial AI > Easy Mode**.
4. Choose Gemini or OpenAI and enter your own API key.
5. Add one or more RSS sources under **Sites I follow**.
6. Click **Fetch news now**.
7. Open **Incoming news** and choose an item to prepare with AI.

== Frequently Asked Questions ==

= Do I need programming knowledge? =

No. The main setup is designed to be completed through Easy Mode and the built-in tutorial.

= Does the free plugin publish automatically? =

No. The free version creates WordPress drafts for you to review.

= Does the free version expire? =

No. JadirGabriel Editorial AI Free does not require a paid license and does not expire.

= Do I need an AI API key? =

Yes, if you want to generate AI-assisted drafts. You can use your own Google Gemini or OpenAI API key.

= What happens if an RSS feed contains malformed XML? =

JadirGabriel Editorial AI first uses the standard WordPress feed reader and includes a tolerant fallback for some malformed XML feeds.

= Is there a Pro version? =

Yes. Editor IA Pro is a separate product for workflows that require more automation and advanced controls.

== Screenshots ==

1. Easy Mode overview with the essential plugin setup and current status.
2. Step-by-step tutorial for configuring an AI provider and preparing the first draft.
3. Resources screen showing the features available in the free plugin and the separate Pro edition.
4. RSS source management for sites the user is authorized to monitor.
5. Incoming news queue with items ready to be turned into WordPress drafts.
6. AI configuration screen with provider, API key, model and custom instruction settings.
7. Basic logs and privacy-safe support diagnostics.
8. About screen with Free edition information and help shortcuts.

== Changelog ==

= 1.0.34 =
* Renames the plugin to JadirGabriel Editorial AI with the distinct slug and text domain `jadirgabriel-editorial-ai`.
* Moves admin CSS and JavaScript to properly enqueued asset files.
* Keeps existing Free settings and data keys unchanged for compatibility with migration to Editor IA Pro.

= 1.0.33 =
* Torna traduzível a mensagem de fallback de erros HTTP das APIs OpenAI e Gemini, sem alterar o tratamento das respostas.

= 1.0.31 =
* Corrige tradução redundante na mensagem de lista vazia dos Logs.

= 1.0.30 =
* Prepara para tradução o diagnóstico de suporte e os cartões de recursos Free/Pro, sem alterar o comportamento do plugin.

= 1.0.29 =
* Completa a preparação para tradução dos textos restantes na tela de fontes RSS, sem alterar o comportamento do plugin.

= 1.0.28 =
* Prepara para tradução os cabeçalhos Site, RSS e Ação na tabela de fontes.

= 1.0.27 =
* Corrige a resposta de acesso negado para retornar efetivamente HTTP 403 usando a assinatura correta de `wp_die()`.

= 1.0.26 =
* Limita a 1 MB as respostas HTTP da OpenAI e do Gemini, reduzindo consumo de memória diante de respostas anormalmente grandes sem alterar o fluxo normal da IA.

= 1.0.25 =
* Completa a preparação para tradução dos rótulos restantes na configuração avançada de IA, sem alterar o funcionamento do plugin.

= 1.0.24 =
* Completa a preparação para tradução de textos restantes nas telas administrativas, configurações e apresentação de recursos.
* Mantém prompts, RSS, IA, fila e criação de rascunhos sem alteração funcional.

= 1.0.23 =
* Remove o carregamento manual do text domain e deixa o WordPress usar o carregamento automático de traduções.
* Evita carregamento antecipado de traduções em versões atuais do WordPress, sem alterar RSS, IA, fila ou criação de rascunhos.

= 1.0.22 =
* Evita dupla codificação das mensagens exibidas após redirecionamentos administrativos.
* Mantém sanitização e escape na saída, sem alterar RSS, IA, fila ou criação de rascunhos.

= 1.0.21 =
* Completa a preparação para tradução das telas de tutorial, fila e logs, sem alterar o comportamento do plugin.
* Mantém inalterados os fluxos de RSS, IA e criação de rascunhos.

= 1.0.20 =
* Remove a dependência direta da extensão PHP mbstring ao limitar a meta description, usando uma função nativa do WordPress.
* Mantém inalterados os fluxos de RSS, IA, fila e criação de rascunhos.

= 1.0.19 =
* Completa a preparação para tradução dos textos exibidos no Modo Fácil, sem alterar o fluxo de RSS, IA, fila ou criação de rascunhos.

= 1.0.18 =
* Limita a 2 MB a resposta do modo tolerante de RSS, evitando downloads anormalmente grandes sem alterar o fluxo normal de leitura.

= 1.0.17 =
* Reforça o tratamento das respostas HTTP da OpenAI e do Gemini quando a API retorna sucesso com corpo vazio ou JSON inválido.

= 1.0.16 =
* Padroniza o tratamento de entradas administrativas com wp_unslash() antes da sanitização.
* Mantém intactos os fluxos de RSS, IA, fila e criação de rascunhos.

= 1.0.15 =
* Torna seguro o redirecionamento após a criação de rascunhos, com retorno para a fila caso a URL de edição não esteja disponível.

= 1.0.14 =
* Reforço de segurança: ações administrativas de alteração passam a aceitar somente requisições POST, mantendo permissões e nonces existentes.

= 1.0.13 =
* Adds explicit output escaping to remaining dynamic status indicators in the admin interface.
* No changes to RSS, AI processing, queue behavior, diagnostics, or draft creation.

= 1.0.12 =
* Makes operational notices, RSS errors, queue messages and local log messages translation-ready.
* Keeps RSS fetching, AI requests, queue logic and draft creation behavior unchanged.

= 1.0.11 =
* Makes the main plugin navigation and Help entry point fully translation-ready.
* Synchronizes the translation template with the current interface labels.
* No changes to RSS, AI processing, queue behavior, or draft creation.

= 1.0.10 =
* Adds a privacy-safe support diagnostic block to the Logs screen.
* Adds one-click copy for plugin, WordPress, PHP, provider, source and recent event information.
* API keys are never included and URLs in recent log messages are redacted.

= 1.0.9 =
* Sends the Google Gemini API key in the recommended `x-goog-api-key` HTTP header instead of the request URL.
* Reduces the chance of API keys appearing in URL logs or diagnostics.
* No changes to the editorial workflow, RSS handling, queue, or publishing behavior.

= 1.0.8 =
* Adds WordPress translation infrastructure and a languages directory.
* Makes primary navigation and onboarding labels translation-ready.
* No changes to RSS, AI processing, queue behavior, or publishing.

= 1.0.7 =
* Adds a clear "Start here" block to Easy Mode.
* Provides three onboarding paths: built-in tutorial, visual guide, and help center.
* Adds a direct visual guide shortcut to the About screen.
* Keeps the free and premium codebases separate.


= 1.0.6 =
* Adds a direct Help link to the official JadirGabriel Editorial AI help center.
* Opens the help center in a new browser tab from the plugin navigation.
* Keeps the submitted 1.0.5 release unchanged while preparing the next update.

= 1.0.5 =
* Converts the WordPress.org readme description to standard English.
* Removes unsupported readme tags.
* Removes an unused Domain Path declaration.
* Improves API key input sanitization.
* Avoids unnecessary nonce warnings for read-only admin navigation parameters.

= 1.0.4 =
* Preparation for WordPress.org submission.
* Corrects the internal plugin version.
* Updates declared compatibility to WordPress 7.1.
* Restricts plugin settings and operations to administrators.
* Updates the editable default Gemini model.

= 1.0.3 =
* Updates Pro buttons to the dedicated Editor IA Pro upgrade page.
* Pro links open the external upgrade page in a new browser tab.
* Premium code remains separate from the free plugin.

= 1.0.2 =
* Adds a guided setup tutorial.
* Adds official links for creating Google AI Studio and OpenAI API keys.
* Guides the user from API key setup to the first draft.

= 1.0.1 =
* Adds a Resources screen with Free and Pro feature cards.
* Pro cards link to the separate Editor IA Pro product.
* No premium code is bundled with the free plugin.

= 1.0.0 =
* First public free release.
* Easy Mode.
* Manual RSS source management and fetching.
* Incoming content queue.
* Draft generation with Gemini and OpenAI.
* Basic duplicate control.
* Tolerant RSS reading.
* Local logs.

== Privacy ==

JadirGabriel Editorial AI does not send telemetry to the developer. When you use an AI provider, the data required for draft generation is sent directly from your WordPress site to the selected provider, as described in the External services section.
