=== Moduify AI Connector ===
Contributors: devthemenet, moduify
Tags: elementor, wpbakery, ai, page builder, components
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 0.4.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Generate Elementor widgets and WPBakery add-ons from WordPress using your shared Moduify library.

== Description ==

Moduify AI Connector connects a WordPress site to the Moduify service through a server-side API key. Site administrators can submit prompts from the WordPress admin area and generate Elementor widgets or WPBakery add-ons through the same account library and generation pipeline used by the Moduify application.

New connector-generated add-ons are stored in the connected account's shared Moduify Generated Items library. The WordPress.org connector displays item metadata and design previews, but it does not download, install, or execute generated add-on code.

= External service =

This plugin connects to the Moduify service to generate Elementor widgets and WPBakery add-ons. A Moduify account and connector API key are required.

When you save the connection, the plugin sends the site URL, site name, WordPress version, PHP version, and plugin version to Moduify so the service can register and verify the connected site.

When you generate an add-on, the plugin sends the prompt, selected builder, component name, and connected site ID to Moduify. Moduify saves the generated add-on in the same Generated Items history used by the web application. After generation, the plugin renders the sanitized static preview in the administrator's browser, captures a 590 by 300 pixel JPEG, and sends that image to Moduify so the same thumbnail is available in the shared library. The connector reads library metadata and static preview images from Moduify; preview scripts and generated PHP are not returned to or executed by this plugin.

The connector library includes a link to the Moduify web application. Add-on downloads require the user to sign in to Moduify and take place on the Moduify website. This plugin does not retrieve, install, activate, or update downloaded add-ons.

Terms of Service: https://moduify.com/terms
Privacy Policy: https://moduify.com/privacy
Pricing: https://moduify.com/pricing

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/moduify-ai-connector` directory, or install the plugin through the WordPress Plugins screen.
2. Activate the plugin through the Plugins screen.
3. Open Moduify > Connection in the WordPress admin.
4. Paste a connector API key from your Moduify dashboard and save the connection.

== Frequently Asked Questions ==

= Does this plugin add a shortcode or block? =

No. The connector is admin-only and does not register a shortcode or Gutenberg block.

= Does this plugin download, install, or execute generated add-on code? =

No. Generation runs as a documented Moduify service, and this WordPress.org connector only displays job results, library metadata, and static preview images. It does not retrieve generated PHP or preview JavaScript, write generated plugins, or activate generated add-ons.

= How do I download an add-on? =

Open the connector Library and select "Open Moduify Library." Sign in to Moduify, choose an add-on, and download it from the Moduify website. Installation is a separate manual action performed by the site administrator.

= Do I need a Moduify account? =

Yes. A Moduify account and connector API key are required because generation happens through the Moduify service.

== Changelog ==

= 0.4.1 =
* Ensure the Generate button arrow icon has a visible high-contrast color.

= 0.4.0 =
* Capture and save connector-generated preview images in the shared Moduify library.
* Keep a database-backed preview when the direct thumbnail host is temporarily unavailable.
* Reduce the job-status polling delay for faster completion feedback.
* Avoid duplicate WPBakery artifact uploads while preserving design, compile, and validation checks.

= 0.3.0 =
* Resume an active generation after the WordPress admin page is reloaded.
* Retry temporary job-status failures instead of ending generation immediately.
* Recover queued jobs and safely fail stale jobs so token reservations are not left locked.
* Save usable generated PHP with validation findings as a draft that needs attention.
* Display validation findings in the connector library for both Elementor and WPBakery.
* Improve gateway error messages and status codes.

= 0.2.0 =
* Initial public release.
* Connect a Moduify account through a revocable connector API key.
* Generate Elementor and WPBakery add-ons through the Moduify service.
* Browse account-owned and Moduify-published items with static preview images.
* Open the Moduify web library to download selected add-ons.
